Discussion:
Bug#850276: dietlibc: libpthread overrides __errno_location even with TLS enabled
(too old to reply)
Christian Seiler
2017-01-05 16:30:02 UTC
Permalink
Raw Message
Control: retitle -1 dietlibc: libpthread overrides __errno_location even with TLS enabled

I've now tracked this down: libpthread apparently overrode
__errno_location to point it to td->errno, where td is POSIX
thread descriptor. This is just plain wrong, because errno is
now a (TLS) variable, while in ancient dietlibc versions it
used to be defined as the dereference of said function.

However, syscalls still use that function to set the errno,
so any code checking errno would fail in that case.

Once I've made sure #844781 is fixed (and no other problems
have arisen in the mean time), this will be part of the next
upload.

Regards,
Christian
Debian Bug Tracking System
2017-01-05 16:30:02 UTC
Permalink
Raw Message
Post by Christian Seiler
retitle -1 dietlibc: libpthread overrides __errno_location even with TLS enabled
Bug #850276 [dietlibc] Various regressions in unit tests when linking against -lpthread
Changed Bug title to 'dietlibc: libpthread overrides __errno_location even with TLS enabled' from 'Various regressions in unit tests when linking against -lpthread'.
--
850276: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850276
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...