Bug 19946 - Many NPTL tests block for a long time
Summary: Many NPTL tests block for a long time
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nptl (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Florian Weimer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 08:33 UTC by Florian Weimer
Modified: 2022-04-25 11:21 UTC (History)
2 users (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 Florian Weimer 2016-04-14 08:33:56 UTC
Since commit a28605b22946c708f0a5c4f06307e1a17650ced8 (test-skeleton: increase default TIMEOUT to 20 seconds), a lot of NTPL tests run for 20 seconds because they intentionally produce a deadlock and rely on the arrival of SIGALRM to mark the test as successful:

nptl/tst-cond3.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-eintr1.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-eintr2.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-eintr3.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-eintr4.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-eintr5.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-exit2.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-exit3.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-mutex6.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-rwlock5.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-sem2.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-spin3.c:#define EXPECTED_SIGNAL SIGALRM
nptl/tst-stdio1.c:#define EXPECTED_SIGNAL SIGALRM
Comment 1 Florian Weimer 2016-08-26 18:13:27 UTC
Commits 7e625f7e85b4e88f10dbde35a0641742af581806, 5a7ac040efe94f8c49c5ec95c90ad6baf3b37744 addressed one source of long-running NPTL tests.  I need to double-check if there are additional such tests.
Comment 2 Florian Weimer 2022-04-25 11:21:55 UTC
I believe this has been addressed over time.