Thread deadlock problem with cout

brent verner brent@rcfile.org
Thu Jul 20 21:48:00 GMT 2000


On 20 Jul 2000 at 22:11 (-0400), Craig Rodrigues wrote:
| Hi,
| 
| I downloaded the latest snapshots of libstdc++ from rawhide.redhat.com.
| 
| 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++.

not a (threading) problem here. the test program compiled and ran fine...
_after_ I added 'using namespace std;' to it. 

can you see what flags were specified when the rpm's binary was 
compiled? IIRC, I had this problem unless gcc was configured with
--enable-threads=posix

glibc-2.1.3
gcc (cvs 20000619)
libstdc++-v3 (cvs 20000720)

hth.
  Brent

-- 
Damon Brent Verner                        o      _     _         _
Cracker Jack? Surprise Certified  _o     /\_   _ \\o  (_)\__/o  (_)
brent@rcfile.org                _< \_   _>(_) (_)/<_    \_| \   _|/' \/
brent@linux1.org               (_)>(_) (_)        (_)   (_)    (_)'  _\o_


More information about the Libstdc++ mailing list