From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AF353858D35; Tue, 31 Jan 2023 20:56:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AF353858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675198613; bh=D5crjKipTUPQePBf5nBl4HzRn3qzTnRhfec0oLIVfLI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XBSAqc75tv/cQQgOsYE+rmBxN/uWdga0onntLr3sfCuBW+fpHBEdtrpy7nm1rGLrD tMHQL3RubzA8D1fhpp/FKgxbf83w1kdzx73Pbc4NRmOQgxb86y/pOOyqiDtJlViKqw kagbGy+GWO+eVNtYv5jOj2T8jLd5Z5yDmeVGNLzE= From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30062] glibc 2.36 loader has intermittent segfault error on ppc64le Date: Tue, 31 Jan 2023 20:56:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_reconfirmed_on everconfirmed bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30062 Carlos O'Donell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carlos at redhat dot com Last reconfirmed| |2023-01-31 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Carlos O'Donell --- (In reply to ChenQi from comment #0) > Except the above backtrace and LD_DEBUG testing, I also done one more > testing which made me believe the bug is in glibc. The best bet here is to run with Valgrind and try to find the invalid acces= s. > I changed glibc to musl to check if it's the glibc's issue or not. The > result is: when using musl, there's no segfault error. That's why I filed= a > bug here. Musl's dynamic loader will never unload a library and calling dlclose() does not run the library desctructors. glibc's dynamic loader will attempt to run destructors and unload and unmap= the library. Under glibc you must accurately account for any dangling references to the library after unloading. Thus I expect that this is related to the libraries you are loading and unloading and their specific constructors and destructors. I haven't seen any reports of this in Fedora 37, which uses glibc 2.36, and= has syslog-ng compiled for ppc64le. > related syslog-ng issue link: > https://github.com/syslog-ng/syslog-ng/issues/4285 Thanks. I commented there. Next steps: - Please run your reproducer under valgrind and see if you can determine the root cause of the crash. --=20 You are receiving this mail because: You are on the CC list for the bug.=