bug-binutils
[Top][All Lists]
Advanced

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

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


From: hjl.tools at gmail dot com
Subject: [Bug gold/26200] ld terminated with signal 11 with LTO and -Wl,--thread-count=2
Date: Fri, 03 Jul 2020 13:20:32 +0000

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(gdb) bt
#0  write_resolution ()
    at /export/gnu/import/git/sources/gcc-release/lto-plugin/lto-plugin.c:530
#1  0x00007ffff7fb3175 in all_symbols_read_handler ()
    at /export/gnu/import/git/sources/gcc-release/lto-plugin/lto-plugin.c:731
#2  0x00000000008502b9 in gold::Plugin::all_symbols_read (this=0xc041d0)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/plugin.cc:403
#3  0x000000000084cbb0 in gold::Plugin_manager::all_symbols_read (
    this=0xc08220, workqueue=0x7fffffff35e0, task=0xc58f50, 
    input_objects=0x7fffffff3570, symtab=0x7fffffff30e0, 
    dirpath=0x7fffffff2be0, mapfile=0x0, last_blocker=0xc58fb0)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/plugin.cc:856
#4  0x000000000084e377 in gold::Plugin_hook::run (this=0xc58f50, 
    workqueue=0x7fffffff35e0)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/plugin.cc:1770
#5  0x00000000008ed547 in gold::Workqueue::find_and_run_task (
    this=0x7fffffff35e0, thread_number=9)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/workqueue.cc:319
#6  0x00000000008edb74 in gold::Workqueue::process (this=0x7fffffff35e0, 
    thread_number=9)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/workqueue.cc:495
#7  0x00000000008ee337 in gold::Workqueue_threader_threadpool::process (
    thread_number=<optimized out>, this=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/workqueue-internal.h:92
#8  gold::Workqueue_thread::thread_body (arg=0xc585b0)
    at /export/gnu/import/git/gitlab/x86-binutils/gold/workqueue-threads.cc:117
#9  0x00007ffff7c1a422 in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffff7b46943 in clone () from /lib64/libc.so.6
(gdb) 

There are

 for (this->current_ = this->plugins_.begin();
       this->current_ != this->plugins_.end();
       ++this->current_)
    (*this->current_)->all_symbols_read();

all_symbols_read_handler has

  write_resolution ();

  free_1 (claimed_files, num_claimed_files);

/* Free all memory that is no longer needed after writing the symbol
   resolution. */

static void
free_1 (struct plugin_file_info *files, unsigned num_files)
{

After all_symbols_read_handler is called the first time, all memory are
freed.  When all_symbols_read_handler is called the second time, ....

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