This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Thread-Safe


Hello,

Are the standard gcc libraries thread-safe?

I have a program which needs to use thread-safe libraries. When I
compile using gcc, I get a core dump. When I compile using IBM's xlC_r,
it runs fine. I stepped through the code using our debugger and the gcc
compiled program dumps on signal(SIGHUP, SIG_IGN). The message I get
from the debugger says something to the effect of "error in
reset_pthread_kill". Since reset_pthread_kill is nothing I'm explicitly
calling, I can only guess that somewhere within signal() it's being
called.

Are there any flags I need to set while compiling to use thread-safe
libraries? I've been searching the net for any advice/documentation and
haven't had any luck.
begin:vcard 
n:Pyne;Bill
tel;fax:401-722-0198
tel;work:401-729-3259
x-mozilla-html:TRUE
org:Memorial Hospital of RI;Information Services
adr:;;111 Brewster Street;Pawtucket;RI;02860;US
version:2.1
email;internet:bill_pyne@mhri.org
title:Sr. Programmer/Analyst/DBA
fn:Bill Pyne
end:vcard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]