[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#304549: LinuxThreads thread stack sizes don't stay set on alpha



reassign 304549 libldap-2.2-7
retitle 304549 libldap-2.2-7: libldap_r is not correctly linked against libpthread
thanks

Ok folks, sorry for the noise; I've found the bug, and it *is* related to
thread stack handling, but it is *not* a glibc bug: the problem is that
libldap_r is not linked with -pthread as it should be, so the resulting lib
has an unversioned reference to pthread_create() which ends up resolving to
an old implementation that assumes the provided struct is garbage and
overrides it.  Thus the problem most likely affects all 64-bit
architectures, being influenced only by sizeof(long) and the resulting large
array on the stack.

Torsten, I'm looking over the libldap_r Makefile to confirm what the right
way is to get it linked with -pthread.  This stuff really shouldn't be in
the library at all AFAICT, and is merely a symptom of upstream's habit of
shoving server stuff into libldap_r; that ought to be fixed, but in the
meantime I'll work up a patch for the immediate problem and possibly throw a
check in debian/rules that will catch mis-linked libraries for us in the
future.  Expect a commit soon.

Thanks,
-- 
Steve Langasek
postmodern programmer

Attachment: signature.asc
Description: Digital signature


Reply to: