This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/19164] New: tst-getcpu fails with many available CPUs


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]