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 libc/1358] New: sched_setaffinity is busted on alpha


The problem stems from this call (sched_setaffinity.c:51):
     while (res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, getpid (),
                                     psize, p),
             INTERNAL_SYSCALL_ERROR_P (res, err)
             && INTERNAL_SYSCALL_ERRNO (res, err) == EINVAL)

When the macro is expanded the call to getpid clobbers the system call number.

There was a similar problem on ppc documented here:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311053

-- 
           Summary: sched_setaffinity is busted on alpha
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: colin at gibbsonline dot net
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: alpha-linux
GCC target triplet: alpha-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=1358

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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