libc6-2.0.6-3 breaks multi-threaded programs
A C++ program which is linked to a multi-threaded C++ library and was
working perfectly fine with libc6-2.0.6-2 is now dumping core. The funny
thing is that the core dump happens in a call to the stdio libary.
A small test program I have that simulates the problem is given below:
fgets(buf, 80, stdin);
This program was linked with my multi-threaded C++ library, and when I run
the program gets a SIGSEGV and the stack trace looks like this:
#0 0x4008f95c in pthread_mutex_lock ()
#1 0x4009129c in flockfile ()
#2 0x40128b53 in fgets ()
#3 0x80485a6 in main ()
The library and the program were compiled with -D_REENTRANT. The C++ library
is actually a C library which is compiled with C++ and doesn't have any
classes. So I don't think global constructors mess up anything. As I
mentioned earlier, the program was working perfectly with libc6-2.0.6-2. The
same program and library are working fine on UnixWare 2.1.2.
I am using an uptodate (as of today :-) hamm distribution with a custom
built 2.0.32 kernel. (libc6-2.0.6-3, libc6-dev-188.8.131.52, ldso-1.9.6-2). Any
help will be greatly appreciated. Thanks.
R. Ganesan (email@example.com) | Ph: 91-80-5721852 Ext: 2149
Novell India Development Center. | #include <std_disclaimer.h>
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .