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

Bug#456531: libc6: strerror_r() not thread-safe



tag 456531 + unreproducible
thanks

On Sun, Dec 16, 2007 at 01:39:46PM +0000, Rémi Denis-Courmont wrote:
> Subject: libc6: strerror_r() not thread-safe
> Package: libc6
> Version: 2.7-4
> Severity: important
> 
>         Hello,
> 
> strerror_r() crashes pseudo-randomly when multiple threads invoke it 
> simultaneously. It appears the problem never occurs when using the C/POSIX 
> locale, and seems to be gettext-related.
> 
> Test code attached.
> 
> Interestingly, I once had the crash with the first error message in C locale:
> 
> # ./a.out
> Connection timed out
> Erreur de segmentation
> #

  and for the matter I tried the testcase on a i386 and an amd64 and I
cannot reproduce the bug, even in 100 runs of your program.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpiTbG9DAgQO.pgp
Description: PGP signature


Reply to: