This is the mail archive of the
mailing list for the glibc project.
[Bug dynamic-link/21041] IFUNC setjmp/longjmp in libpthread.so are unsafe
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 27 Jan 2017 06:31:07 +0000
- Subject: [Bug dynamic-link/21041] IFUNC setjmp/longjmp in libpthread.so are unsafe
- Auto-submitted: auto-generated
- References: <firstname.lastname@example.org/bugzilla/>
--- Comment #14 from Florian Weimer <fweimer at redhat dot com> ---
Created attachment 9776
Patch to remove compatibility symbols from libpthread
(In reply to H.J. Lu from comment #13)
> (In reply to Florian Weimer from comment #12)
> > (In reply to H.J. Lu from comment #10)
> > > Can we simply remove setjmp/longjmp from libpthread.so?
> > I tried this before, but it does not work with the current dynamic linker:
> > https://sourceware.org/ml/libc-alpha/2016-05/msg00176.html
> > I never received a clarification if this behavior is required, or a dynamic
> > linker bug.
> Do you have a testcase?
Compile glibc with the attached patch and install it. The system will no
longer boot because of errors like this one:
/sbin/init: relocation error: /usr/lib/systemd/libsystemd-shared-232.so: symbol
write, version GLIBC_2.2.5 not defined in file libpthread.so.0 with link time
I'm not sure if this link failure is a dynamic linker bug. The symbol
versioning specification is ambiguous whether the soname in the version counts
for symbol resolution.
You are receiving this mail because:
You are on the CC list for the bug.