Message143974
| Author |
skrah |
| Recipients |
benjamin.peterson, meador.inge, neologix, skrah, vstinner |
| Date |
2011年09月13日.15:14:51 |
| SpamBayes Score |
9.393846e-09 |
| Marked as misclassified |
No |
| Message-id |
<1315926892.24.0.656491462595.issue12936@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I wonder whether it is http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453.
The demo script from there crashes both on debian-arm and Ubuntu Lucid,
but this specific segfault only occurs on debian arm.
Attached is a minimal C test case that only crashes on debian-arm
when sched_setaffinity() is called *and* the program is linked to
pthread:
$ gcc -Wall -W -O0 -g -o crash crash.c
$ ./crash
$
$ gcc -Wall -W -O0 -g -o crash crash.c -pthread
$ ./crash
Segmentation fault (core dumped)
# comment out: sched_setaffinity(0, size, cpusetp);
$ gcc -Wall -W -O0 -g -o crash crash.c -pthread
$ ./crash
$
On Ubuntu all three cases run fine. Perhaps this is a bug in
sched_setaffinity()? |
|