https://sourceware.org/bugzilla/show_bug.cgi?id=23258
Bug ID: 23258 Summary: Linker cored dump at process_one_opcode Product: binutils Version: 2.25 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: lpham54321 at gmail dot com Target Milestone: --- When linking a shared library using object files compiled with clang 6.0.0 (clang++), the linker trapped and generated a core dump at the following call stack: Core was generated by `/usr/bin/ld --hash-style=gnu --no-add-needed --eh-frame-hdr -m elf_x86_64 -shar'. Program terminated with signal 11, Segmentation fault. #0 0x00000000006b065b in gold::Sized_dwarf_line_info<64, false>::process_one_opcode(unsigned char const*, gold::LineStateMachine*, unsigned long*) () Missing separate debuginfos, use: debuginfo-install binutils-2.25.1-32.base.el7_4.2.x86_64 (gdb) where #0 0x00000000006b065b in gold::Sized_dwarf_line_info<64, false>::process_one_opcode(unsigned char const*, gold::LineStateMachine*, unsigned long*) () #1 0x00000000006b0b3e in gold::Sized_dwarf_line_info<64, false>::read_lines(unsigned char const*, unsigned int) () #2 0x00000000006b3c03 in gold::Sized_dwarf_line_info<64, false>::read_line_mappings(unsigned int) () #3 0x00000000006b41c0 in gold::Sized_dwarf_line_info<64, false>::Sized_dwarf_line_info(gold::Object*, unsigned int) () #4 0x00000000005e6b85 in gold::Relocate_info<64, false>::location(unsigned long, long) const () #5 0x0000000000586a4d in void gold::gold_warning_at_location<64, false>(gold::Relocate_info<64, false> const*, unsigned long, long, char const*, ...) () #6 0x00000000004453c9 in (anonymous namespace)::Target_x86_64<64>::relocate_section(gold::Relocate_info<64, false> const*, unsigned int, unsigned char const*, unsigned long, gold::Output_section*, bool, unsigned char*, unsigned long, unsigned long, gold::Reloc_symbol_changes const*) () #7 0x000000000066541f in gold::Sized_relobj_file<64, false>::do_relocate_sections(gold::Symbol_table const*, gold::Layout const*, unsigned char const*, gold::Output_file*, std::vector<gold::Sized_relobj_file<64, false>::View_size, std::allocator<gold::Sized_relobj_file<64, false>::View_size> >*) () #8 0x000000000065fc0e in gold::Sized_relobj_file<64, false>::do_relocate(gold::Symbol_table const*, gold::Layout const*, gold::Output_file*) () #9 0x000000000065416d in gold::Relocate_task::run(gold::Workqueue*) () #10 0x000000000069d25d in gold::Workqueue::find_and_run_task(int) () #11 0x000000000069d58a in gold::Workqueue::process(int) () #12 0x0000000000406cf2 in main () -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils