public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rjones at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug go/114699] gcc-go -buildmode=c-shared doesn't use -Wl,-z,nodelete so libraries crash when dlclosed Date: Thu, 11 Apr 2024 21:45:20 +0000 [thread overview] Message-ID: <bug-114699-4-xyiMa6KYlw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114699-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114699 --- Comment #2 from Richard W.M. Jones <rjones at redhat dot com> --- This was the stack trace of the crashing thread with gcc-go: Thread 7 (Thread 0x7ff5c1af3a40 (LWP 2819340)): #0 0x00007ff5c24d67cb in __GI_munmap () at ../sysdeps/unix/syscall-template.S:117 #1 0x00007ff5c24c916a in _dl_unmap_segments (l=0x563fc0eba080) at ./dl-unmap-segments.h:32 #2 _dl_unmap (map=map@entry=0x563fc0eba080) at ../sysdeps/x86_64/tlsdesc.c:31 #3 0x00007ff5c24b5ff5 in _dl_close_worker (map=<optimized out>, map@entry=0x563fc0eb9a90, force=force@entry=false) at dl-close.c:628 #4 0x00007ff5c24b663b in _dl_close (_map=0x563fc0eb9a90) at dl-close.c:793 #5 0x00007ff5c24b5523 in __GI__dl_catch_exception (exception=exception@entry=0x7fffe1bbd500, operate=0x7ff5c24b6600 <_dl_close>, args=0x563fc0eb9a90) at dl-catch.c:237 #6 0x00007ff5c24b5679 in _dl_catch_error (objname=0x7fffe1bbd568, errstring=0x7fffe1bbd570, mallocedp=0x7fffe1bbd567, operate=<optimized out>, args=<optimized out>) at dl-catch.c:256 #7 0x00007ff5c20a4913 in _dlerror_run (operate=<optimized out>, args=<optimized out>) at dlerror.c:138 #8 0x00007ff5c20a4656 in __dlclose (handle=<optimized out>) at dlclose.c:31 #9 0x0000563fb3951239 in backend_unload (b=b@entry=0x563fc0ebbf60, unload=0x7ff5c1ae43b0) at /home/rjones/d/nbdkit/server/backend.c:154 #10 0x0000563fb39512bc in plugin_free (b=0x563fc0ebbf60) at /home/rjones/d/nbdkit/server/plugins.c:64 #11 0x0000563fb394ed51 in main (argc=<optimized out>, argv=<optimized out>) at /home/rjones/d/nbdkit/server/main.c:838
next prev parent reply other threads:[~2024-04-11 21:45 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-11 21:41 [Bug go/114699] New: " rjones at redhat dot com 2024-04-11 21:43 ` [Bug go/114699] " rjones at redhat dot com 2024-04-11 21:45 ` rjones at redhat dot com [this message] 2024-04-11 21:47 ` rjones at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114699-4-xyiMa6KYlw@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).