Bug 10183 - tst-cpucount fails if CPU_SETSIZE < 129
Summary: tst-cpucount fails if CPU_SETSIZE < 129
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 19:39 UTC by Aurelien Jarno
Modified: 2014-07-01 20:25 UTC (History)
1 user (show)

See Also:
Host: i686-unknown-kfreebsd7.1-gnu
Target: i686-unknown-kfreebsd7.1-gnu
Build: i686-unknown-kfreebsd7.1-gnu
Last reconfirmed:
fweimer: security-


Attachments
Patch to fix the problem (245 bytes, patch)
2009-05-21 19:40 UTC, Aurelien Jarno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2009-05-21 19:39:53 UTC
posix/tst-cpucount.c assumes that CPU_SETSIZE is > 128 (by hardcoding the test 
value to 129) which is not true on some systems.

The best solution is to set the value to CPU_SETSIZE, so that all values are 
actually tested. The test is still really fast. A patch will follow.
Comment 1 Aurelien Jarno 2009-05-21 19:40:29 UTC
Created attachment 3954 [details]
Patch to fix the problem
Comment 2 Ulrich Drepper 2009-06-16 04:14:29 UTC
I've checked in a change which does not change any other platform.