This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/19164] New: tst-getcpu fails with many available CPUs
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 22 Oct 2015 20:18:00 +0000
- Subject: [Bug nptl/19164] New: tst-getcpu fails with many available CPUs
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19164
Bug ID: 19164
Summary: tst-getcpu fails with many available CPUs
Product: glibc
Version: 2.23
Status: NEW
Severity: minor
Priority: P3
Component: nptl
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Flags: security-
This does not work with more than 1024 possible CPUs because sched_getaffinity
is specified to return EINVAL in this case:
cpu_set_t cs;
if (sched_getaffinity (getpid (), sizeof (cs), &cs) != 0)
{
printf ("getaffinity failed: %m\n");
return 1;
}
--
You are receiving this mail because:
You are on the CC list for the bug.