bug-glibc
[Top][All Lists]
Advanced

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

Re: libc6 localtime race?


From: Andreas Schwab
Subject: Re: libc6 localtime race?
Date: Sun, 10 Nov 2002 18:03:38 +0100
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux)

"Ryan Underwood" <address@hidden> writes:

|> Hi,
|> 
|> There seems to be some problems with the localtime() function under 
multithreaded
|> operation.  (Debian GNU/Linux 2.4.19 x86) Occasionally, the call to localtime
|> will result in a SIGSEGV and the thread will die.

localtime() is not thread safe.  Use localtime_r() instead.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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