Thread deadlock problem with cout
Craig Rodrigues
rodrigc@mediaone.net
Thu Jul 20 19:11:00 GMT 2000
Hi,
I downloaded the latest snapshots of libstdc++ from rawhide.redhat.com.
I am running:
glibc-2.1.91-2.i386.rpm
gcc-2.96-33 .i386.rpm
gcc-c++-2.96-33.i386.rpm
libstdc++-2.96-33
When I compile a C++ program, then do an ldd on that program:
ldd a.out
libpthread.so.0 => /lib/libpthread.so.0 (0x40022000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40038000)
libm.so.6 => /lib/libm.so.6 (0x4007b000)
libc.so.6 => /lib/libc.so.6 (0x4009a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Now, if I compile the attached program, it seems to deadlock on the
cout. If I change the cout statement to a printf, it does not
deadlock, so I am assuming some threading problems in libstdc++.
Can anyone help identify the problem?
Thanks.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
More information about the Libstdc++
mailing list