From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3DB03858D20; Thu, 11 Apr 2024 21:45:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3DB03858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712871921; bh=mHUtwzunc0nFs3i2p0Nyj5xHWpq+LLOSeV6ynMBsWRU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lUUGsOy68uwepzJ1qCZ+AQ+P1dkkP1mAgc8+Ycx1pDXNgtg037nQeF9wEKJYbAd9X oocoSD/RGJw6yq/kUVinNGklZ2thc7hjm3pApR/OVu8aMJNMMy7W5Qs73095IaFHZS wg2mn/vXHqXOMq9wYuwhC4Ek7SipMjTlyA9OcAXA= From: "rjones at redhat dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rjones at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114699 --- Comment #2 from Richard W.M. Jones --- 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=3D0x563fc0eba080) at ./dl-unmap-segments.h:32 #2 _dl_unmap (map=3Dmap@entry=3D0x563fc0eba080) at ../sysdeps/x86_64/tlsde= sc.c:31 #3 0x00007ff5c24b5ff5 in _dl_close_worker (map=3D, map@entry=3D0x563fc0eb9a90, force=3Dforce@entry=3Dfalse) at dl-close.c:628 #4 0x00007ff5c24b663b in _dl_close (_map=3D0x563fc0eb9a90) at dl-close.c:7= 93 #5 0x00007ff5c24b5523 in __GI__dl_catch_exception (exception=3Dexception@entry=3D0x7fffe1bbd500, operate=3D0x7ff5c24b6600 <_d= l_close>, args=3D0x563fc0eb9a90) at dl-catch.c:237 #6 0x00007ff5c24b5679 in _dl_catch_error (objname=3D0x7fffe1bbd568, errstring=3D0x7fffe1bbd570, mallocedp=3D0x7fffe1bbd567, operate=3D, args=3D) at dl-catch.c:256 #7 0x00007ff5c20a4913 in _dlerror_run (operate=3D, args=3D) at dlerror.c:138 #8 0x00007ff5c20a4656 in __dlclose (handle=3D) at dlclose.c= :31 #9 0x0000563fb3951239 in backend_unload (b=3Db@entry=3D0x563fc0ebbf60, unload=3D0x7ff5c1ae43b0) at /home/rjones/d/nbdkit/server/backend.c:154 #10 0x0000563fb39512bc in plugin_free (b=3D0x563fc0ebbf60) at /home/rjones/d/nbdkit/server/plugins.c:64 #11 0x0000563fb394ed51 in main (argc=3D, argv=3D) at /home/rjones/d/nbdkit/server/main.c:838=