bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/30524] New: ld.gold: internal error in do_layout, at object.cc


From: dmantipov at yandex dot ru
Subject: [Bug gold/30524] New: ld.gold: internal error in do_layout, at object.cc:1939
Date: Tue, 06 Jun 2023 18:29:05 +0000

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

            Bug ID: 30524
           Summary: ld.gold: internal error in do_layout, at
                    object.cc:1939
           Product: binutils
           Version: 2.41 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: dmantipov at yandex dot ru
                CC: ian at airs dot com
  Target Milestone: ---

Observed on Fedora 38 when linking LLVM tools with gold 2.39, confirmed with
gold from upstream at d3f340763bab7c74838ebb481fd7ff93acd9f00c:

gdb -q /home/antipov/.local/binutils/bin/ld.gold
Reading symbols from /home/antipov/.local/binutils/bin/ld.gold...
(gdb) b object.cc:1939
Breakpoint 1 at 0x788569: object.cc:1939. (4 locations)
(gdb) r -plugin /usr/libexec/gcc/x86_64-redhat-linux/13/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccEUMIjM.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id
--no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o bin/merge-fdata
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/13/crtbegin.o
-L/usr/lib/gcc/x86_64-redhat-linux/13
-L/usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/13/../../..
--gc-sections --emit-relocs
tools/bolt/tools/merge-fdata/CMakeFiles/merge-fdata.dir/merge-fdata.cpp.o
-rpath /../lib64: lib64/libLLVMSupport.a -lrt -ldl /usr/lib64/libz3.so
/usr/lib64/libz.so /usr/lib64/libzstd.so /usr/lib64/libtinfo.so
lib64/libLLVMDemangle.a -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/x86_64-redhat-linux/13/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/crtn.o
...
Breakpoint 1.3, gold::Sized_relobj_file<64, false>::do_layout (this=0xc6f5c0,
symtab=0x7fffffff3aa0, layout=0x7fffffff35c0, 
    sd=0xb879b0) at ../../upstream/gold/object.cc:1939
1939      gold_assert(!is_two_pass || reloc_sections.empty());
(gdb) p is_two_pass
$1 = true
(gdb) p reloc_sections
$2 = std::vector of length 8, capacity 8 = {4, 15, 21, 23, 25, 27, 29, 31}
(gdb) bt
#0  gold::Sized_relobj_file<64, false>::do_layout (this=0xc6f5c0,
symtab=0x7fffffff3aa0, layout=0x7fffffff35c0, sd=0xb879b0)
    at ../../upstream/gold/object.cc:1939
#1  0x00000000006cdd7c in gold::Object::layout (this=0xc6f5c0,
symtab=0x7fffffff3aa0, layout=0x7fffffff35c0, sd=0xb879b0)
    at ../../upstream/gold/object.h:696
#2  0x000000000082e19a in gold::Add_symbols::run (this=0xc6f9c0) at
../../upstream/gold/readsyms.cc:634
#3  0x00000000008b4fbe in gold::Workqueue::find_and_run_task
(this=0x7fffffff3fa0, thread_number=0)
    at ../../upstream/gold/workqueue.cc:319
#4  0x00000000008b55d1 in gold::Workqueue::process (this=0x7fffffff3fa0,
thread_number=0) at ../../upstream/gold/workqueue.cc:495
#5  0x000000000040640a in main (argc=50, argv=0x7fffffffd908) at
../../upstream/gold/main.cc:252
(gdb) c
Continuing.
/home/antipov/.local/binutils/bin/ld.gold: internal error in do_layout, at
../../upstream/gold/object.cc:1939
[Inferior 1 (process 775296) exited with code 01]

-- 
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]