[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Charles-François Natali added the comment: Committed. Rémi, thanks once again for this report! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a29b72950795 by Charles-François Natali in branch 'default': Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD: http://hg.python.org/cpython/rev/a29b72950795 -- nosy: +python-dev ___

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor added the comment: > As for rthreads support, a quick search seems to indicate that its API is > exactly the same as pthreads, and it's even binary compatible. Python will > automatically use it when run on a OpenBSD system with rthreads enabled. Well... not exactly. I asked on #

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23078/openbsd_sigaltstack.diff ___ Python tracker ___ ___ Python

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch with an updated skip message. As for rthreads support, a quick search seems to indicate that its API is exactly the same as pthreads, and it's even binary compatible. Python will automatically use it when run on a OpenBSD system with r

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor added the comment: > Great! I didn't know that! It's a new feature of Python 3.3. I added it to skip a test on old FreeBDB, see test_threadsignal.py: USING_PTHREAD_COND = (sys.thread_info.name == 'pthread' and sys.thread_info.lock

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > In Python 3.3, you can use sys.thread_info to check which threading > library is used. Great! I didn't know that! -- ___ Python tracker __

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor added the comment: > OpenBSD does support 1:1 threads via the RThread library > since 2005, thanks to tedu@ and more fantastic guys! > It about to be super-stable (one commit in 2011, last "real > fix" in april 2010). > (There is a techtalk from tedu@ (Ted Unangst) about this libr

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Heya. OpenBSD does support 1:1 threads via the RThread library since 2005, thanks to tedu@ and more fantastic guys! It about to be super-stable (one commit in 2011, last "real fix" in april 2010). (There is a techtalk from tedu@ (Ted Unangst) about this

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor added the comment: > @Victor: can I commit the patch? I don't like the skip message. It doesn't tell that the problem comes from sigaltstack() and it doesn't contain the issue number. I would expect something like: "Issue #12868: sigaltstack() doesn't work on OpenBSD if Python

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Charles-François Natali
Charles-François Natali added the comment: > without-threads, it segfault: > It's normal :-) _stack_overflow triggers - as it names implies - a stack overflow. However, as you can see in the output, faulthandler is now able to catch the SIGSEGV and display the backtrace (because it set up an al

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
Remi Pointel added the comment: However, if I run test_faulthandler.py, it seems to be ok: $ ./python Lib/test/test_faulthandler.py test_disable (__main__.FaultHandlerTests) ... ok test_dump_traceback (__main__.FaultHandlerTests) ... ok test_dump_traceback_file (__main__.FaultHandlerTests) ...

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
Remi Pointel added the comment: Hi, without-threads, it segfault: $ ./python -c "import faulthandler; faulthandler.enable(); faulthandler._stack_overflow()"; echo $? Fatal Python error: Segmentation fault Current thread 0x: File "", line 1 in zsh: segmentation fault (core

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Charles-François Natali
Charles-François Natali 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 ---

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +patch Added file: http://bugs.python.org/file23078/openbsd_sigaltstack.diff ___ Python tracker ___

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
Remi Pointel added the comment: > Yeah, it's a recent regression: I opened the issue #12871. I don't think that > it's specific to OpenBSD. Thanks. -- ___ Python tracker ___ _

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread STINNER Victor
STINNER Victor added the comment: > I have a problem if I add --without-threads Yeah, it's a recent regression: I opened the issue #12871. I don't think that it's specific to OpenBSD. -- ___ Python tracker _

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
Remi Pointel added the comment: Hi, results: >Out of curiosity, could you try this: >$ ./python -c "import faulthandler; faulthandler.enable(); >faulthandler._stack_overflow()"; echo $? $ ./python -c "import faulthandler; faulthandler.enable(); faulthandler._stack_overflow()"; echo $? zsh: i

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Charles-François Natali
Charles-François Natali added the comment: OpenBSD's threads are userland threads, and sigaltstack() doesn't work when the program is built with -pthread: http://marc.info/?l=openbsd-bugs&m=114323355014696&w=2 Note that POSIX warns about this: http://www.opengroup.org/onlinepubs/95399/func

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
Remi Pointel added the comment: Info: I read issue 12469 but I prefered to create new issue. -- ___ Python tracker ___ ___ Python-bug

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-08-31 Thread Remi Pointel
New submission from Remi Pointel : Hello, the test_stack_overflow failed on OpenBSD. Don't hesitate if you need more information. Details: $ ./python Lib/test/test_faulthandler.py test_disable (__main__.FaultHandlerTests) ... ok test_dump_traceback (__main__.FaultHandlerTests) ... ok test_dum