bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/26200] New: ld terminated with signal 11 with LTO and -Wl,--th


From: mliska at suse dot cz
Subject: [Bug gold/26200] New: ld terminated with signal 11 with LTO and -Wl,--thread-count=2
Date: Fri, 03 Jul 2020 11:53:09 +0000

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

            Bug ID: 26200
           Summary: ld terminated with signal 11 with LTO and
                    -Wl,--thread-count=2
           Product: binutils
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: mliska at suse dot cz
                CC: ian at airs dot com
  Target Milestone: ---

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

$ g++ tc.ii -flto -c && g++ -shared -flto=auto -fPIC -fuse-ld=gold
-Wl,--threads -Wl,--thread-count=2 -Wl,--whole-archive Overlay.o
-Wl,--no-whole-archive
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.

valgrind says:

==15730== For lists of detected and suppressed errors, rerun with: -s
==15730== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)
==15728== Invalid read of size 1
==15728==    at 0x435110:
gold::Pluginobj::get_symbol_resolution_info(gold::Symbol_table*, int,
ld_plugin_symbol*, int) const (plugin.cc:1295)
==15728==    by 0x485B4DC: UnknownInlinedFun (lto-plugin.c:549)
==15728==    by 0x485B4DC: all_symbols_read_handler (lto-plugin.c:731)
==15728==    by 0x4334EE: all_symbols_read (plugin.cc:403)
==15728==    by 0x4334EE:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*,
gold::Task_token**) (plugin.cc:856)
==15728==    by 0x43362B: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1770)
==15728==    by 0x48E4E7: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==15728==    by 0x48E599: gold::Workqueue::process(int) (workqueue.cc:495)
==15728==    by 0x17957B: main (main.cc:252)
==15728==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==15728== 
==15728== 
==15728== Process terminating with default action of signal 11 (SIGSEGV)
==15728==  Access not within mapped region at address 0x10
==15728==    at 0x435110:
gold::Pluginobj::get_symbol_resolution_info(gold::Symbol_table*, int,
ld_plugin_symbol*, int) const (plugin.cc:1295)
==15728==    by 0x485B4DC: UnknownInlinedFun (lto-plugin.c:549)
==15728==    by 0x485B4DC: all_symbols_read_handler (lto-plugin.c:731)
==15728==    by 0x4334EE: all_symbols_read (plugin.cc:403)
==15728==    by 0x4334EE:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*,
gold::Task_token**) (plugin.cc:856)
==15728==    by 0x43362B: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1770)
==15728==    by 0x48E4E7: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==15728==    by 0x48E599: gold::Workqueue::process(int) (workqueue.cc:495)
==15728==    by 0x17957B: main (main.cc:252)
==15728==  If you believe this happened as a result of a stack
==15728==  overflow in your program's main thread (unlikely but
==15728==  possible), you can try to increase the size of the
==15728==  main thread stack using the --main-stacksize= flag.
==15728==  The main thread stack size used in this run was 8388608.

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