[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SIGSEGV on recursive pthread_join
From: |
Andreas Schwab |
Subject: |
Re: SIGSEGV on recursive pthread_join |
Date: |
Thu, 08 Jan 2004 14:20:06 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
Richard Guenther <address@hidden> writes:
> On Wed, 7 Jan 2004, Jeroen Dekkers wrote:
>
>> Looking at the code i think it should return EINVAL, I have no idea
>> why it doesn't. But POSIX says that joining a thread twice results in
>> undefined behaviour, so it's not really wrong to crash, just not very
>> friendly.
>
> Indeed. And somehow it "works" when using a libc with debugging symbols
> in...
That's a perfectly adequate implementation for undefined behaviour.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/05
- Re: SIGSEGV on recursive pthread_join, Jeroen Dekkers, 2004/01/05
- Re: SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/05
- Re: SIGSEGV on recursive pthread_join, Jeroen Dekkers, 2004/01/05
- Re: SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/06
- Re: SIGSEGV on recursive pthread_join, Jeroen Dekkers, 2004/01/07
- Re: SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/08
- Re: SIGSEGV on recursive pthread_join,
Andreas Schwab <=
- Re: SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/08
- Re: SIGSEGV on recursive pthread_join, Jeroen Dekkers, 2004/01/08
- Re: SIGSEGV on recursive pthread_join, Richard Guenther, 2004/01/08