[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

Stefan Krah report at bugs.python.org
Tue Sep 13 17:54:04 CEST 2011


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

I think I got it: pthread_setaffinity_np() does not crash. 
 
`man sched_setaffinity` is slightly ambiguous, but there is this remark:

(If  you  are  using  the POSIX threads API, then use pthread_setaffinity_np(3) 
 instead of sched_setaffinity().)


I'm attaching the non-crashing version.

----------
title: armv5tejl: random segfaults in getaddrinfo() -> armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()
Added file: http://bugs.python.org/file23145/pthread_nocrash.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12936>
_______________________________________


More information about the Python-bugs-list mailing list