bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/22233] New: [2.29 Regression] gold segfault in relocate_erratu


From: doko at debian dot org
Subject: [Bug gold/22233] New: [2.29 Regression] gold segfault in relocate_erratum_stub on aarch64-linux-gnu
Date: Sun, 01 Oct 2017 18:10:09 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22233

            Bug ID: 22233
           Summary: [2.29 Regression] gold segfault in
                    relocate_erratum_stub on aarch64-linux-gnu
           Product: binutils
           Version: 2.29
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: doko at debian dot org
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 10497
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10497&action=edit
test case for aarch64

[forwarded from https://bugs.debian.org/876786]

That might be related to PR 21868, another issue when linking haskell code. Can
be reproduced with a cross binutils build as well.

$ aarch64-linux-gnu-ld.gold -shared -EL -maarch64linux --fix-cortex-a53-843419
-o libHSmarkdown.so -L. crti.o crtbeginS.o Block.dyn_o Inline.dyn_o Types.dyn_o
-lHStagsoup-0.14.1-8pLkYaTktRpFj0yxRd480b-ghc8.0.2 -lHSunix-2.7.2.1-ghc8.0.2
-lHSbase-4.9.1.0-ghc8.0.2 -lHSinteger-gmp-1.0.0.1-ghc8.0.2
-lHSghc-prim-0.5.0.0-ghc8.0.2 crtendS.o
Segmentation fault


Program received signal SIGSEGV, Segmentation fault.
(anonymous namespace)::Stub_table<64, false>::relocate_erratum_stub
(view=0x7ffff53c2fbc "", 
    estub=0x5555578f3220, this=0x5555578f8d70) at ../../gold/aarch64.cc:1636
1636          elfcpp::Swap<32, big_endian>::writeval(
(gdb) bt
#0  (anonymous namespace)::Stub_table<64, false>::relocate_erratum_stub
(view=0x7ffff53c2fbc "", 
    estub=0x5555578f3220, this=0x5555578f8d70) at ../../gold/aarch64.cc:1636
#1  (anonymous namespace)::AArch64_relobj<64,
false>::fix_errata_and_relocate_erratum_stubs (
    pviews=0x7fffffff4480, this=0x555555d916e0) at ../../gold/aarch64.cc:2042
#2  (anonymous namespace)::AArch64_relobj<64, false>::do_relocate_sections
(this=0x555555d916e0, 
    symtab=<optimized out>, layout=<optimized out>, pshdrs=<optimized out>,
of=<optimized out>, 
    pviews=0x7fffffff4480) at ../../gold/aarch64.cc:2152
#3  0x000055555585e202 in gold::Sized_relobj_file<64, false>::relocate_sections
(
    pviews=0x7fffffff4480, of=0x5555578a1900, pshdrs=<optimized out>,
layout=0x7fffffff4d70, 
    symtab=0x7fffffff4ab0, this=0x555555d916e0) at ../../gold/object.h:2661
#4  gold::Sized_relobj_file<64, false>::do_relocate (this=0x555555d916e0,
symtab=0x7fffffff4ab0, 
    layout=0x7fffffff4d70, of=0x5555578a1900) at ../../gold/reloc.cc:631
#5  0x000055555584dd5d in gold::Relobj::relocate (of=<optimized out>,
layout=<optimized out>, 
    symtab=<optimized out>, this=<optimized out>) at ../../gold/object.h:1280
#6  gold::Relocate_task::run (this=0x5555578a1d00) at ../../gold/reloc.cc:239
#7  0x0000555555894c28 in gold::Workqueue::find_and_run_task
(address@hidden, 
    address@hidden) at ../../gold/workqueue.cc:319
#8  0x000055555589503a in gold::Workqueue::process (this=0x7fffffff4780,
thread_number=0)
    at ../../gold/workqueue.cc:495
#9  0x00005555555cab9b in main (argc=<optimized out>, argv=<optimized out>) at
../../gold/main.cc:252

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]