Bug 14666 - intermittent tst-waitid failures
Summary: intermittent tst-waitid failures
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 19:55 UTC by Jonathan Nieder
Modified: 2020-02-27 20:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nieder 2012-10-03 19:55:42 UTC
When I tried building the 2.16 branch, tst-waitid.out failed.  The previous time it had worked fine, and the next time it worked fine as well.  Output in the failing case:

 $ cat posix/tst-waitid.out
 missing SIGCHLD on stopped

A quick web search finds [1] from 2010. If I understand that discussion correctly, a plausible fix was proposed but then nothing came of it.

Known problem?

Thanks,
Jonathan

[1] http://thread.gmane.org/gmane.comp.lib.glibc.alpha/15495/focus=15505
Comment 1 Jonathan Nieder 2012-10-03 19:59:33 UTC
Architecture is amd64. Toolchain is Debian gcc-4.6 4.6.3-10. Kernel is Linux 3.6-rc7 with Debian's patches applied.
Comment 2 Jonathan Nieder 2012-10-03 20:10:23 UTC
This failing test is not mentioned at [2], but for what it's worth it is on the list of the expected failures at [3].  It was first added to that list in March, 2011[4].

[2] http://sourceware.org/glibc/wiki/Release/2.16
[3] http://svn.debian.org/viewvc/pkg-glibc/glibc-package/branches/eglibc-2.16/debian/testsuite-checking/expected-results-x86_64-linux-gnu-amd64?view=co
[4] http://svn.debian.org/viewvc/pkg-glibc?view=revision&revision=4561
Comment 3 Sourceware Commits 2020-02-27 20:20:53 UTC
The master branch has been updated by Adhemerval Zanella <azanella@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b3b6a40ab9ad374a85f347adf1725760f1238eb5

commit b3b6a40ab9ad374a85f347adf1725760f1238eb5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Nov 19 17:21:26 2019 -0300

    posix: Refactor tst-waitid (BZ #14666)
    
    The main changes are:
    
      - Adapt to libsupport.
      - Synchronize the signal handler using atomics.
      - Replace waitpid by waitid calls.
      - Use support_process_state_wait to wait for child state.
      - Add tests for P_PGID and P_ALL.
      - Use sigwaitinfo instead of global state set by the signal handler.
    
    Checked on x86_64-linux-gnu and i686-linux-gnu.