bug-glibc
[Top][All Lists]
Advanced

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

Crash on trying to read errno in multi-threaded apps!


From: Asfand Yar Qazi
Subject: Crash on trying to read errno in multi-threaded apps!
Date: Sun, 10 Nov 2002 02:06:51 +0000

I really don't know what to tell you.  My system (self-compiled) runs (or RAN) 
everything well... until I upgraded to glibc 2.2.5.  Here's the full story:

I have a nice system:
glibc 2.1.3
gcc 3.1.1 (--threads=single)
binutils 2.12.1
...

I make a glibc 2.2.5, WOOHOO methinks, nice new c++ abi in gcc 3.2 coming right 
up!

But wait!  As soon as I try to run a multi-threaded app, it crashes on the line 
'printf(...'.  On further investigation, I find it crashes on the line 'int 
save_errno = errno;' at vfprintf.c:27

I have a feeling I need to make gcc with --threads=posix ... I hope this fixes 
the issue, as the dynamic linker with gcc 2.1.3 is crap, and a lot of binaries 
are appearing that use 2.2!

I searched gnats, but couldn't find anything there (actually, I couldn't find a 
"glibc" option in any of the menus, so I just used 'gnats')

Any ideas?  I hope I'm right about the posix thing, but I lost the gcc 3.2 
sources, and it'll take me a while to get them again, so I was hoping you could 
tell me if I'm on the right track.

Thanks for your time

Asfand Yar


-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Single & ready to mingle? lavalife.com:  Where singles click. Free to Search!
http://www.lavalife.com/mailcom.epl?a=2116





reply via email to

[Prev in Thread] Current Thread [Next in Thread]