[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

Charles-François Natali report at bugs.python.org
Wed Aug 31 22:51:00 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

> It does not build completely, I have a problem if I add
> --without-threads:

Until this gets fixed, if you want to do a quick test, you could just remove the calls to sched_get_priority_(min|max):

"""
diff -r 0968acf0e6db Modules/posixmodule.c
--- a/Modules/posixmodule.c     Wed Aug 31 16:52:12 2011 +0200
+++ b/Modules/posixmodule.c     Wed Aug 31 22:51:13 2011 +0200
@@ -4562,7 +4562,6 @@
 
     if (!PyArg_ParseTuple(args, "i:sched_get_priority_max", &policy))
         return NULL;
-    max = sched_get_priority_max(policy);
     if (max < 0)
         return posix_error();
     return PyLong_FromLong(max);
@@ -4579,7 +4578,6 @@
 
     if (!PyArg_ParseTuple(args, "i:sched_get_priority_min", &policy))
         return NULL;
-    min = sched_get_priority_min(policy);
     if (min < 0)
         return posix_error();
     return PyLong_FromLong(min);
"""

That should allow you to rebuild with 'without-threads'.

----------

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


More information about the Python-bugs-list mailing list