From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCD4F3858025; Sun, 8 Aug 2021 11:06:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCD4F3858025 From: "sware at reimardoeffinger dot de" To: glibc-bugs@sourceware.org Subject: [Bug nptl/24776] pthread_key_create, pthread_setspecific are incompatible with dlmopen Date: Sun, 08 Aug 2021 11:06:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.30 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sware at reimardoeffinger dot de 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: security- 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2021 11:06:41 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24776 --- Comment #12 from Reimar D=C3=B6ffinger --- I think your example is pretty much the same as mine in https://sourceware.org/bugzilla/show_bug.cgi?id=3D26955 I "fixed" it by using a LD_PRELOAD that provides its own implementation of pthread_key_create etc. that are not entirely correct (lowish fixed limit of keys, no freeing, implemented using the thread_local keyword) but work for = my purpose. Unfortunately dlmopen still seems to be the most realistic solution when one has the misfortune of having a process using Python3 that has a library dependency that requires Python2. --=20 You are receiving this mail because: You are on the CC list for the bug.=