From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D7AA38582B2; Thu, 22 Sep 2022 14:33:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D7AA38582B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663857193; bh=ghyFCYquX0fsdaej4d/x+GcYkFFkCblyP7mcKp3Iyn8=; h=From:To:Subject:Date:From; b=qyEFgKz3JXNqFqttQHxMdK1Vp5axOk8q0JZCSYPsJolNYmQYCki48P4ZME63tzdR9 MMNz1J4u+QwFb2glTZBhPsaiIdgQZ5NzifH454et2svnWCAY23VqPL96lY8AFw1rzS scRiDO6CV8dyJ3hV7oZG5fadfaq8GxdLphuGW97k= From: "al_95 at outlook dot it" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29600] New: dlmopen hangs after loading certain libraries Date: Thu, 22 Sep 2022 14:33:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: al_95 at outlook dot it X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D29600 Bug ID: 29600 Summary: dlmopen hangs after loading certain libraries Product: glibc Version: 2.36 Status: UNCONFIRMED Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: al_95 at outlook dot it Target Milestone: --- Created attachment 14351 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14351&action=3Ded= it dlmopen test Hi. I discovered a regression bug in dlmopen introduced with the fix to bug 295= 28. Certain libraries seem to leave the dynamic loader namespaces in an inconsistent state, causing all subsequent dlmopen calls to hang. The hang happens at the for loop inside the _dl_debug_initialize function in dl-open.c, when it iterates through the namespaces linked list. This issue happens only after loading certain libraries, but not others. I attached a small program that exhibits this issue on my pc. After libcurl is loaded (and unloaded) any following call to dlmopen will freeze. Moving the order around doesn't change much, except when libcurl is loaded first, then somehow everything works. A few other libraries I tested that cause this behavior are libstdc++, libavcodec and libssl, but there are probably more. The issue appeared with commit 924e4f3eaa502ce82fccf8537f021a796d158771 (and the correlated d0e357ff45a75553dee3b17ed7d303bfa544f6fe) and is still prese= nt in the latest commit (de477abcaaabb1f9815cb63876637a47a95e7ac1). According to the messages in bug 29528, the changes were also applied to version 2.35 and 2.34, so it's possible those are broken too. --=20 You are receiving this mail because: You are on the CC list for the bug.=