This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nptl: Avoid expected SIGALRM in most tests [BZ #20432]
- From: Andreas Schwab <schwab at suse dot de>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 15 Mar 2017 15:20:15 +0100
- Subject: Re: [PATCH] nptl: Avoid expected SIGALRM in most tests [BZ #20432]
- Authentication-results: sourceware.org; auth=none
- References: <20160817125455.B3F11439942E2@oldenburg.str.redhat.com> <mvmfulp1912.fsf@hawking.suse.de> <00899f6a-95e0-ac96-5224-809342985e54@redhat.com> <mvmo9x2wujf.fsf@hawking.suse.de> <67e3d27c-33d6-6e52-be62-e7fcec5c5154@redhat.com>
On Mär 15 2017, Florian Weimer <fweimer@redhat.com> wrote:
> On 03/15/2017 02:15 PM, Andreas Schwab wrote:
>> On Dez 15 2016, Florian Weimer <fweimer@redhat.com> wrote:
>>
>>> The test previously called exit from the signal handler. Why did it work
>>> before?
>>
>> That only "works" because _IO_cleanup is not thread-safe.
>
> Sorry, I don't see the test failure. Based on the comments in
> libio/genops.c, I think there is an expectation that even with locked
> stdout, exit does not block.
POSIX does not guarantee this.
http://austingroupbugs.net/view.php?id=611
> I may be missing something, but in that case, please elaborate.
You are not really missing anything, since you are not using this patch.
https://build.opensuse.org/package/view_file/Base:System/glibc/fix-locking-in-_IO_cleanup.patch?expand=1
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."