From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E972A385800A; Wed, 27 Oct 2021 06:23:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E972A385800A From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28503] New: dl_iterate_phdr namespace violation Date: Wed, 27 Oct 2021 06:23:44 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone 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 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: Wed, 27 Oct 2021 06:23:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28503 Bug ID: 28503 Summary: dl_iterate_phdr namespace violation Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com Target Milestone: --- The program below aborts even though it does nothing wrong. The reason is t= hat the libgcc_s unwinder calls dl_iterate_phdr, which is not in the implementa= tion namespace, so the application should be able to define it in a different wa= y. #define _POSIX_SOURCE #include #include #include void dl_iterate_phdr (void) { abort (); } static void * thread_func (void *ignored) { pthread_exit (NULL); return NULL; } int main (void) { pthread_t thr; if (pthread_create (&thr, NULL, thread_func, NULL) !=3D 0) { puts ("pthread_create failed"); return 1; } if (pthread_join (thr, NULL) !=3D 0) { puts ("pthread_join failed"); return 1; } return 0; } --=20 You are receiving this mail because: You are on the CC list for the bug.=