[issue28932] Fail compile Python 3.6.0rc1 on OpenBSD 6.0
Remi Pointel added the comment: Hello, I have exactly the same problem with Python 2.7.13 on OpenBSD. Works fine with the same patch. Remi. -- nosy: +rpointel versions: +Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28932> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25342] test_json segfault on OpenBSD
Remi Pointel added the comment: It's good when I entered "ulimit -s 8192". Sorry for the noise... -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25342> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25342] json
Changes by Remi Pointel <pyt...@xiri.fr>: -- nosy: rpointel priority: normal severity: normal status: open title: json ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25342> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25342] json
Remi Pointel added the comment: Sorry I clicked on "create" before adding info in comment. When I run the test_json suite on OpenBSD, I have a segfault: $ egdb ./python GNU gdb (GDB) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-openbsd5.8". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./python...done. (gdb) set env PYTHONPATH ./Lib (gdb) set env LD_LIBRARY_PATH . (gdb) set args ./Lib/test/test_json/ (gdb) r Starting program: /home/remi/dev/cpython/python ./Lib/test/test_json/ .s.. Program received signal SIGSEGV, Segmentation fault. 0x1dd119cf9e0d in PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:798 (gdb) bt #0 0x1dd119cf9e0d in PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:798 #1 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11c90, arg=None, exc=0) at Objects/genobject.c:125 #2 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11c90, arg=None) at Objects/genobject.c:223 #3 0x1dd119d0267b in PyEval_EvalFrameEx ( f=Frame 0x1dd32e645c38, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 324, in _iterencode_list (lst=[], _current_indent_level=0, buf='[', newline_indent=None, separator=', ', first=False, value=, chunks=), throwflag=0) at Python/ceval.c:2038 #4 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11c08, arg=None, exc=0) at Objects/genobject.c:125 #5 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11c08, arg=None) at Objects/genobject.c:223 #6 0x1dd119d0267b in PyEval_EvalFrameEx (f=Frame 0x1dd39a980c38, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 427, in _iterencode (o=[], _current_indent_level=0), throwflag=0) at Python/ceval.c:2038 #7 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11b80, arg=None, exc=0) at Objects/genobject.c:125 #8 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11b80, arg=None) at Objects/genobject.c:223 #9 0x1dd119d0267b in PyEval_EvalFrameEx (f=Frame 0x1dd39a980838, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 437, in _iterencode (o=[], _current_indent_level=0), throwflag=0) at Python/ceval.c:2038 #10 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11af8, arg=None, exc=0) at Objects/genobject.c:125 #11 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11af8, arg=None) at Objects/genobject.c:223 #12 0x1dd119d0267b in PyEval_EvalFrameEx ( f=Frame 0x1dd3b9e32c38, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 324, in _iterencode_list (lst=[], _current_indent_level=0, buf='[', newline_indent=None, separator=', ', first=False, value=, chunks=), throwflag=0) at Python/ceval.c:2038 #13 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11a70, arg=None, exc=0) at Objects/genobject.c:125 #14 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11a70, arg=None) at Objects/genobject.c:223 #15 0x1dd119d0267b in PyEval_EvalFrameEx (f=Frame 0x1dd32e645838, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 427, in _iterencode (o=[], _current_indent_level=0), throwflag=0) at Python/ceval.c:2038 #16 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc119e8, arg=None, exc=0) at Objects/genobject.c:125 #17 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc119e8, arg=None) at Objects/genobject.c:223 #18 0x1dd119d0267b in PyEval_EvalFrameEx (f=Frame 0x1dd39a980438, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 437, in _iterencode (o=[], _current_indent_level=0), throwflag=0) at Python/ceval.c:2038 #19 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc11960, arg=None, exc=0) at Objects/genobject.c:125 #20 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc11960, arg=None) at Objects/genobject.c:223 #21 0x1dd119d0267b in PyEval_EvalFrameEx ( f=Frame 0x1dd3b9e32838, for file /home/remi/dev/cpython/Lib/json/encoder.py, line 324, in _iterencode_list (lst=[], _current_indent_level=0, buf='[', newline_indent=None, separator=', ', first=False, value=, chunks=), throwflag=0) at Python/ceval.c:2038 #22 0x1dd119dedbe3 in gen_send_ex (gen=0x1dd35dc118d8, arg=None, exc=0) at Objects/genobject.c:125 #23 0x1dd119dee6af in _PyGen_Send (gen=0x1dd35dc118d8, arg=None) at Objects/genobject.c:223 #24 0x1dd
[issue25342] test_json segfault on OpenBSD
Changes by Remi Pointel <pyt...@xiri.fr>: -- title: json -> test_json segfault on OpenBSD ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25342> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25342] test_json segfault on OpenBSD
Remi Pointel added the comment: It fails on test_endless_recursion: $ LD_LIBRARY_PATH=. PYTHONPATH=./Lib/ ./python ./Lib/test/test_json -v test_endless_recursion (test.test_json.test_recursion.TestPyRecursion) ... zsh: segmentation fault (core dumped) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25342> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY
Remi Pointel added the comment: Attached is the diff to use defined(PY_GETENTROPY) instead of #define PY_GETENTROPY 1. -- Added file: http://bugs.python.org/file40631/Python_random_c ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN
Remi Pointel added the comment: Good, I think we should test on a machine with a version of openssl that does not support ALPN to be sure. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25154] Drop the pyvenv script
Remi Pointel added the comment: I would prefer to keep this script with the version referring to the version of python used (pyvenv-3.4, pyvenv-3.5, ...). -- nosy: +rpointel ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25154> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN
Remi Pointel added the comment: With this patch it works fine on OpenBSD with LibreSSL. Could you test on a Linux machine with OpenSSL supporting ALPN please? Thanks spil@ for the idea. -- keywords: +patch Added file: http://bugs.python.org/file40556/python_have_alpn.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN
Remi Pointel added the comment: Maybe we could check if the functionality is available instead of checking a version? What do you think about that? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25191] test_getsetlocale_issue1813 failed on OpenBSD
New submission from Remi Pointel: Hi, the test test_getsetlocale_issue1813 in ./Lib/test/test_locale.py failed on OpenBSD: == ...sss..testing with ('tr_TR', 'ISO8859-9') Ess ERROR: test_getsetlocale_issue1813 (__main__.TestMiscellaneous) -- Traceback (most recent call last): File "./Lib/test/test_locale.py.orig", line 515, in test_getsetlocale_issue1813 locale.setlocale(locale.LC_CTYPE, loc) File "/usr/ports/pobj/Python-3.5.0/Python-3.5.0/Lib/locale.py", line 595, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting -- Ran 38 tests in 0.040s FAILED (errors=1, skipped=5) The first setlocale(locale.LC_CTYPE, 'tr_TR') works fine, but loc = locale.getlocale(locale.LC_CTYPE) then locale.setlocale(locale.LC_CTYPE, loc) does not work. Attached is a patch to skip the second part if it does not work, is it correct? Thanks, Remi. -- components: Library (Lib), Tests files: patch-Lib_test_test_locale_py messages: 251153 nosy: rpointel priority: normal severity: normal status: open title: test_getsetlocale_issue1813 failed on OpenBSD versions: Python 3.5 Added file: http://bugs.python.org/file40526/patch-Lib_test_test_locale_py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25191> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23177] test_ssl: failures on OpenBSD with LibreSSL
Remi Pointel added the comment: Hi, maybe we should add the LIBRESSL_ information available in opensslv.h (as it has be done for OpenSSL): $ grep LIBRESSL /usr/include/ssl/opensslv.h #define LIBRESSL_VERSION_NUMBER 0x2003L #define LIBRESSL_VERSION_TEXT "LibreSSL 2.3.0" #define OPENSSL_VERSION_TEXTLIBRESSL_VERSION_TEXT What do you think about that? Remi. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23177> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY
New submission from Remi Pointel: Hi, I'm trying to build Python on OpenBSD-current, but it does not build because it seems that PY_GETENTROPY does not have a value. $ make ... gcc -pthread -c -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -pipe -Werror=declaration-after-statement -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/random.o Python/random.c Python/random.c:367:20: error: #if with no expression Python/random.c: In function '_PyOS_URandom': Python/random.c:370: warning: implicit declaration of function 'dev_urandom_python' Python/random.c:414:20: error: #if with no expression Python/random.c: In function '_PyRandom_Init': Python/random.c:417: warning: implicit declaration of function 'dev_urandom_noraise' Python/random.c:430:20: error: #if with no expression Python/random.c: In function '_PyRandom_Fini': Python/random.c:433: warning: implicit declaration of function 'dev_urandom_close' *** Error 1 in /home/remi/dev/cpython (Makefile:1534 'Python/random.o') If I defined the PY_GETENTROPY to the value "1" line 76, it seems to works fine. Remi. -- files: Python_random_c messages: 251040 nosy: rpointel priority: normal severity: normal status: open title: does not build on OpenBSD with no value defined for PY_GETENTROPY versions: Python 3.6 Added file: http://bugs.python.org/file40511/Python_random_c ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19884] Importing readline produces erroneous output
Changes by Remi Pointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present
Remi Pointel added the comment: Are you ok with this diff reworked? -- Added file: http://bugs.python.org/file35505/Lib_test_test_urllib2net_py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21456 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12673] SEGFAULT error on OpenBSD (sparc)
Remi Pointel added the comment: For your information, this bug has been fixed in OpenBSD and the developper has contacted the NetBSD developper: http://marc.info/?l=openbsd-techm=140209064821540w=2 So I think we could close this issue because it's a system issue, not Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12673 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present
New submission from Remi Pointel: Hi, I tested the regress tests on a machine which does not have the ssl module, and I have 2 errors in Lib/test/test_urllib2net.py. I think it should skip the test instead. Attached is a diff I wrote, it's based on Lib/test/test_poplib.py. Don't hesitate if I miss a thing. Remi. -- components: Tests files: Lib_test_test_urllib2net_py.diff keywords: patch messages: 218139 nosy: rpointel priority: normal severity: normal status: open title: skip 2 tests in test_urllib2net.py if _ssl module not present versions: Python 3.5 Added file: http://bugs.python.org/file35192/Lib_test_test_urllib2net_py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21456 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21356] LibreSSL/RAND_egd fix needed.
Changes by Remi Pointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem
Changes by Remi Pointel pyt...@xiri.fr: -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21082 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20564] locks cannot be interrupted on OpenBSD
Remi Pointel added the comment: You may report the feature request to OpenBSD kernel if you want. Until OpenBSD implements it, the test is now skipped in Python. Yes, it's done yet. However, it's good to skip it until it's implemented. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20564 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20656] OpenBSD: timeval.tv_sec type is long, not time_t
Remi Pointel added the comment: Hi, I think you forgot to attach the diff. Python 3.3 is in OpenBSD since 5.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20656 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20564] test_threadsignals.py failed on OpenBSD because too slow ( 3sec)
Remi Pointel added the comment: Thanks for your response. When running the test, is faulthandler enabled (--timeout option)? It seems yes: # $ PYTHONPATH=. ./python Tools/scripts/run_tests.py -j 1 -W --timeout=3600 test_threadsignals /home/remi/dev/cpython/python -W default -bb -E -R -m test -r -w -u all,-largefile,-audio,-gui -j 1 -W --timeout=3600 test_threadsignals Using random seed 8501335 [1/1] test_threadsignals test_interrupted_timed_acquire (test.test_threadsignals.ThreadSignals) ... ok test_lock_acquire_interruption (test.test_threadsignals.ThreadSignals) ... FAIL test_lock_acquire_retries_on_intr (test.test_threadsignals.ThreadSignals) ... ok test_rlock_acquire_interruption (test.test_threadsignals.ThreadSignals) ... FAIL test_rlock_acquire_retries_on_intr (test.test_threadsignals.ThreadSignals) ... ok test_signals (test.test_threadsignals.ThreadSignals) ... ok == FAIL: test_lock_acquire_interruption (test.test_threadsignals.ThreadSignals) -- Traceback (most recent call last): File /home/remi/dev/cpython/Lib/test/test_threadsignals.py, line 94, in test_lock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.019763469696045 not less than 3.0 == FAIL: test_rlock_acquire_interruption (test.test_threadsignals.ThreadSignals) -- Traceback (most recent call last): File /home/remi/dev/cpython/Lib/test/test_threadsignals.py, line 122, in test_rlock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.020080804824829 not less than 3.0 -- Ran 6 tests in 13.295s FAILED (failures=2) test test_threadsignals failed 1 test failed: test_threadsignals Re-running failed tests in verbose mode Re-running test 'test_threadsignals' in verbose mode test_interrupted_timed_acquire (test.test_threadsignals.ThreadSignals) ... ok test_lock_acquire_interruption (test.test_threadsignals.ThreadSignals) ... FAIL test_lock_acquire_retries_on_intr (test.test_threadsignals.ThreadSignals) ... ok test_rlock_acquire_interruption (test.test_threadsignals.ThreadSignals) ... FAIL test_rlock_acquire_retries_on_intr (test.test_threadsignals.ThreadSignals) ... ok test_signals (test.test_threadsignals.ThreadSignals) ... ok == FAIL: test_lock_acquire_interruption (test.test_threadsignals.ThreadSignals) -- Traceback (most recent call last): File /home/remi/dev/cpython/Lib/test/test_threadsignals.py, line 94, in test_lock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.019940614700317 not less than 3.0 == FAIL: test_rlock_acquire_interruption (test.test_threadsignals.ThreadSignals) -- Traceback (most recent call last): File /home/remi/dev/cpython/Lib/test/test_threadsignals.py, line 122, in test_rlock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.020142078399658 not less than 3.0 -- Ran 6 tests in 13.293s FAILED (failures=2) test test_threadsignals failed # Do I miss a thing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20564 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20564] test_threadsignals.py failed on OpenBSD because too slow ( 3sec)
Remi Pointel added the comment: Can you please test interrupt_lock_acquire.py? It should be the same than the unit test, but in a fresh Python process. Thanks for your response, this is what I have: $ PYTHONPATH=. ./python ./interrupt_lock_acquire.py Traceback (most recent call last): File ./interrupt_lock_acquire.py, line 30, in module raise Exception(dt 3: dt=%s % dt) Exception: dt 3: dt=5.011708974838257 Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20564 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Remi Pointel added the comment: I close this bug because it's corrected by the commit (revision 1.2): http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/time/wcsftime.c It was a bug in our wcsftime. Thanks. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20564] test_threadsignals.py failed on OpenBSD because too slow ( 3sec)
New submission from Remi Pointel: Hi, I have 2 tests which failed on OpenBSD (tested on i386, amd64 and sparc64) in: - test_threadsignals.py/test_lock_acquire_interruption - test_threadsignals.py/test_rlock_acquire_interruption == FAIL: test_lock_acquire_interruption (__main__.ThreadSignals) -- Traceback (most recent call last): File Lib/test/test_threadsignals.py, line 94, in test_lock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.020112991333008 not less than 3.0 == FAIL: test_rlock_acquire_interruption (__main__.ThreadSignals) -- Traceback (most recent call last): File Lib/test/test_threadsignals.py, line 122, in test_rlock_acquire_interruption self.assertLess(dt, 3.0) AssertionError: 5.0101478099823 not less than 3.0 On the 3 machines it took ~ 5sec. I'm asking why it's 3 seconds by default in the tests? Could we modify the value to 6 instead of 3, is it acceptable? Thanks for your response, Remi. -- components: Tests messages: 210672 nosy: rpointel priority: normal severity: normal status: open title: test_threadsignals.py failed on OpenBSD because too slow ( 3sec) versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20564 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20564] test_threadsignals.py failed on OpenBSD because too slow ( 3sec)
Remi Pointel added the comment: arf, sorry for the noise... I didn't seen this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20564 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19134] test_inspect.py failed if module _multiprocessing not available
Remi Pointel added the comment: Hi, sorry to reopen this bug but it seams that your commit was not ok: test_qualname_source (__main__.TestMain) ... ERROR == ERROR: test_qualname_source (__main__.TestMain) -- Traceback (most recent call last): File Lib/test/test_inspect.py, line 2414, in test_qualname_source module = importlib.import_module('concurrent.futures') File /home/remi/dev/cpython/Lib/importlib/__init__.py, line 95, in import_module return _bootstrap._gcd_import(name[level:], package, level) File frozen importlib._bootstrap, line 1613, in _gcd_import File frozen importlib._bootstrap, line 1594, in _find_and_load File frozen importlib._bootstrap, line 1561, in _find_and_load_unlocked File frozen importlib._bootstrap, line 607, in _check_name_wrapper File frozen importlib._bootstrap, line 1056, in load_module File frozen importlib._bootstrap, line 926, in load_module File frozen importlib._bootstrap, line 274, in _call_with_frames_removed File /home/remi/dev/cpython/Lib/concurrent/futures/__init__.py, line 17, in module from concurrent.futures.process import ProcessPoolExecutor File /home/remi/dev/cpython/Lib/concurrent/futures/process.py, line 53, in module from multiprocessing.queues import SimpleQueue, Full File /home/remi/dev/cpython/Lib/multiprocessing/queues.py, line 22, in module import _multiprocessing ImportError: No module named '_multiprocessing' -- Ran 164 tests in 1.285s FAILED (errors=1) Traceback (most recent call last): File Lib/test/test_inspect.py, line 2456, in module test_main() File Lib/test/test_inspect.py, line 2452, in test_main TestBoundArguments, TestGetClosureVars, TestUnwrap, TestMain File /home/remi/dev/cpython/Lib/test/support/__init__.py, line 1696, in run_unittest _run_suite(suite) File /home/remi/dev/cpython/Lib/test/support/__init__.py, line 1671, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File Lib/test/test_inspect.py, line 2414, in test_qualname_source module = importlib.import_module('concurrent.futures') File /home/remi/dev/cpython/Lib/importlib/__init__.py, line 95, in import_module return _bootstrap._gcd_import(name[level:], package, level) File frozen importlib._bootstrap, line 1613, in _gcd_import File frozen importlib._bootstrap, line 1594, in _find_and_load File frozen importlib._bootstrap, line 1561, in _find_and_load_unlocked File frozen importlib._bootstrap, line 607, in _check_name_wrapper File frozen importlib._bootstrap, line 1056, in load_module File frozen importlib._bootstrap, line 926, in load_module File frozen importlib._bootstrap, line 274, in _call_with_frames_removed File /home/remi/dev/cpython/Lib/concurrent/futures/__init__.py, line 17, in module from concurrent.futures.process import ProcessPoolExecutor File /home/remi/dev/cpython/Lib/concurrent/futures/process.py, line 53, in module from multiprocessing.queues import SimpleQueue, Full File /home/remi/dev/cpython/Lib/multiprocessing/queues.py, line 22, in module import _multiprocessing ImportError: No module named '_multiprocessing' Remi. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19134] test_inspect.py failed if module _multiprocessing not available
Remi Pointel added the comment: It's ok now, thanks: test_qualname_source (__main__.TestMain) ... skipped 'multiprocessing required to test __qualname__ for source files' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19134] test_inspect.py failed if module _multiprocessing not available
New submission from Remi Pointel: When I run the regress tests on OpenBSD 5.4-current, the test test_inspect.py failed because the module _multiprocessing is not available, instead of skipping the test: FAILED (errors=1) Traceback (most recent call last): File ./Lib/test/test_inspect.py, line 2453, in module test_main() File ./Lib/test/test_inspect.py, line 2449, in test_main TestBoundArguments, TestGetClosureVars, TestUnwrap, TestMain File /tmp/Python-3.4.0a3/Lib/test/support/__init__.py, line 1696, in run_unittest _run_suite(suite) File /tmp/Python-3.4.0a3/Lib/test/support/__init__.py, line 1671, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File ./Lib/test/test_inspect.py, line 2411, in test_qualname_source module = importlib.import_module('concurrent.futures') File /tmp/Python-3.4.0a3/Lib/importlib/__init__.py, line 95, in import_module return _bootstrap._gcd_import(name[level:], package, level) File frozen importlib._bootstrap, line 1613, in _gcd_import File frozen importlib._bootstrap, line 1594, in _find_and_load File frozen importlib._bootstrap, line 1561, in _find_and_load_unlocked File frozen importlib._bootstrap, line 607, in _check_name_wrapper File frozen importlib._bootstrap, line 1056, in load_module File frozen importlib._bootstrap, line 926, in load_module File frozen importlib._bootstrap, line 274, in _call_with_frames_removed File /tmp/Python-3.4.0a3/Lib/concurrent/futures/__init__.py, line 17, in module from concurrent.futures.process import ProcessPoolExecutor File /tmp/Python-3.4.0a3/Lib/concurrent/futures/process.py, line 53, in module from multiprocessing.queues import SimpleQueue, Full File /tmp/Python-3.4.0a3/Lib/multiprocessing/queues.py, line 22, in module import _multiprocessing ImportError: No module named '_multiprocessing' Diff to skip test_qualname_source if _multiprocessing is not available is attached. Is it ok? Remi. -- components: Tests files: Lib_test_test_inspect_py.diff keywords: patch messages: 198698 nosy: rpointel priority: normal severity: normal status: open title: test_inspect.py failed if module _multiprocessing not available versions: Python 3.4 Added file: http://bugs.python.org/file31921/Lib_test_test_inspect_py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19134] test_inspect.py failed if module _multiprocessing not available
Remi Pointel added the comment: Yes, but it needs an import to use test.support.multiprocessing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19134] test_inspect.py failed if module _multiprocessing not available
Remi Pointel added the comment: Thanks :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12905] multiple errors in test_socket on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: I think we could close this bug because it's du to the pthread library on OpenBSD and not Python. We are switching to rthreads and I can't reproduce this bug. Thanks for your help and sorry for the delay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12903] test_io.test_interrupte[r]d* blocks on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: I think we could close this bug because it's du to the pthread library on OpenBSD and not Python. We are switching to rthreads and I can't reproduce this bug. Thanks for your help and sorry for the delay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hello, I was running test_datetime.py and it failed on OpenBSD. I have tested with Python 2.7, Python 3.2 and Python 3.3. Python 2.7: test_datetime.py: ok test_srtftime.py: failed (see attached file: test_strftime_python27.log) Have a lot of: Conflict for nonstandard '%3y' format (year without century rendered using fieldwidth): Expected 011, but got 3y Strftime test, platform: openbsd5, Python version: 2.7.1 strftime test for Sat Jul 24 21:56:24 2010 Supports nonstandard '%c' format (near-asctime() format) Supports nonstandard '%x' format (%m/%d/%y %H:%M:%S) Supports nonstandard '%Z' format (time zone name) Supports nonstandard '%D' format (mm/dd/yy) Supports nonstandard '%e' format (day of month as number, blank padded ( 0-31)) Supports nonstandard '%h' format (abbreviated month name) Supports nonstandard '%k' format (hour, blank padded ( 0-23)) Supports nonstandard '%n' format (newline character) Supports nonstandard '%r' format (%I:%M:%S %p) Supports nonstandard '%R' format (%H:%M) Supports nonstandard '%s' format (seconds since the Epoch in UCT) Supports nonstandard '%t' format (tab character) Supports nonstandard '%T' format (%H:%M:%S) Python 3.2: test_datetime.py: failed (see attached file: test_datetime_python32.log) == FAIL: test_zones (test.datetimetester.TestTimeTZ_Fast) -- Traceback (most recent call last): File /usr/ports/pobj/Python-3.2.2/Python-3.2.2/Lib/test/datetimetester.py, line 2506, in test_zones 07:47:00 %Z=EST %z=-0500) AssertionError: '07:47:00 Z=EST z=-0500' != '07:47:00 %Z=EST %z=-0500' - 07:47:00 Z=EST z=-0500 + 07:47:00 %Z=EST %z=-0500 ? + + == FAIL: test_zones (test.datetimetester.TestTimeTZ_Pure) -- Traceback (most recent call last): File /usr/ports/pobj/Python-3.2.2/Python-3.2.2/Lib/test/datetimetester.py, line 2506, in test_zones 07:47:00 %Z=EST %z=-0500) AssertionError: '07:47:00 Z=EST z=-0500' != '07:47:00 %Z=EST %z=-0500' - 07:47:00 Z=EST z=-0500 + 07:47:00 %Z=EST %z=-0500 ? + + test_strftime.py: failed (see attached file: test_strftime_python32.log) == FAIL: test_strftime (__main__.StrftimeTest) -- Traceback (most recent call last): File Lib/test/test_strftime.py, line 67, in test_strftime self.strftest1(now) File Lib/test/test_strftime.py, line 124, in strftest1 % (e[0], e[2])) AssertionError: strftime does not support standard '%%' format (single percent sign) -- Python 3.3: test_datetime.py: failed (see attached file: test_datetime_python33.log) Same output than Python 3.2. test_strftime.py: failed (see attached file: test_strftime_python33.log) Same output than Python 3.2. I write a small program in C to verify strftime, and it seems to correcly works: source: (void)strftime(buf, sizeof(buf) - 1, %H:%M:%S %%Z=%Z %%z=%z, localtime(startt)); printf(%s\n, buf); buf[0] = '\0'; (void)strftime(buf, sizeof(buf) - 1, 07:47:00 %Z=EST %z=-0500, localtime(startt)); printf(%s\n, buf); run: 01:00:00 %Z=CET %z=+0100 07:47:00 CET=EST +0100=-0500 Is my test correct ? Don't hesitate if you need more informations. Thanks for your help, Remi. -- files: test_datetime_python32.log messages: 147758 nosy: rpointel priority: normal severity: normal status: open title: test_strftime failed on OpenBSD versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23705/test_datetime_python32.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23706/test_datetime_python33.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23707/test_strftime_python27.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23708/test_strftime_python32.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23709/test_strftime_python33.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13414] test_strftime failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Sure. -- Added file: http://bugs.python.org/file23710/strftime.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13326] make clean failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: According to the man page, find -print0 and xargs -r are also GNU extensions. Even though they work on OpenBSD (do they?), they could still break on some platforms. Yes, it works fine, but you're allright. As find -exec cmd {} ';' is already used for everything but __pycache__, I'd rather only change the removal of __pycache__. I believe there are more files that match '*.py[co]' than '__pycache__', and people are already waiting for a separate rm process to be invoked on each *.py[co], so invoking a separate rmdir for each __pycache__ shouldn't make it much slower. You mean to just exec rmdir instead of rm only for __pycache__? Cheers, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13326] make clean failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Please see this: http://bugs.python.org/issue8665 http://hg.python.org/cpython/rev/5468f3aee4ae/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13326] make clean failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: How about using the -depth option then? It's in POSIX but does OpenBSD have it? The man page of GNU find says it has a -d option (that does the same as -depth) for compatibility with BSD. Yes, we have this option: -depth This primary always evaluates to true. The same as specifying the -d option. Source: http://www.openbsd.org/cgi-bin/man.cgi?query=find -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13326] make clean failed on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hi, make clean failed on OpenBSD with this error: find: -exec: no terminating ; *** Error code 1 (ignored) It seems that -exec with + is a GNU extension. Are you OK with this diff which does the same and is multi-platform? Modifications can only be done for __pycache__, what do you prefer? Cheers, Remi. -- files: python3_3_Makefile_pre_in messages: 146882 nosy: pitrou, rpointel priority: normal severity: normal status: open title: make clean failed on OpenBSD Added file: http://bugs.python.org/file23599/python3_3_Makefile_pre_in ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13326] make clean failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: FYI I tested with Python 3.3, but I didn't look for 2.7 and 3.2, I think modifications are also needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0
Remi Pointel pyt...@xiri.fr added the comment: @rpointel: Does the fix work for you? If yes, I will close the issue. Hi, yes it sounds good for me: $ hg pull -u $ ./configure make $ ./python Lib/test/test_posix.py [...] test_fdlistdir (__main__.PosixTester) ... ok [...] Ran 79 tests in 0.097s OK (skipped=17) Thanks. Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12905] multiple errors in test_socket on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: What happens if you run a code equivalent to test_sendall_interrupted on its own? I mean, if you try something like this: Hi, it blocks too: $ gdb -args ./python [...] (gdb) run Starting program: /usr/ports/pobj/Python-3.2.2/Python-3.2.2/python Python 3.2.2 (default, Sep 5 2011, 21:21:34) [GCC 4.2.1 20070719 ] on openbsd5 Type help, copyright, credits or license for more information. import signal, socket c, s = socket.socketpair() signal.signal(signal.SIGALRM, lambda x,y: 0) 0 signal.alarm(1) 0 [New process 28830] c.sendall(bx * (1024**2)) ^C Program received signal SIGINT, Interrupt. Cannot access memory at address 0x98 (gdb) bt #0 0x00020125678a in poll () from /usr/lib/libc.so.60.1 #1 0x00020619b4aa in _thread_kern_poll (wait_reqd=value optimized out) at /usr/src/lib/libpthread/uthread/uthread_kern.c:780 #2 0x00020619c3a8 in _thread_kern_sched (scp=0x0) at /usr/src/lib/libpthread/uthread/uthread_kern.c:382 #3 0x000206190ade in sendto (fd=9, msg=0x2032d6020, len=1044480, flags=0, to=0x0, to_len=0) at /usr/src/lib/libpthread/uthread/uthread_sendto.c:63 #4 0x0002105f670a in sock_sendall () from /usr/ports/pobj/Python-3.2.2/Python-3.2.2/build/lib.openbsd-5.0-amd64-3.2/_socket.so #5 0x00020668b172 in PyEval_EvalFrameEx () from /usr/local/lib/libpython3.2m.so.1.0 #6 0x00020668bf66 in PyEval_EvalCodeEx () from /usr/local/lib/libpython3.2m.so.1.0 #7 0x00020668c22b in PyEval_EvalCode () from /usr/local/lib/libpython3.2m.so.1.0 #8 0x0002066a93d7 in run_mod () from /usr/local/lib/libpython3.2m.so.1.0 #9 0x0002066abcae in PyRun_InteractiveOneFlags () from /usr/local/lib/libpython3.2m.so.1.0 #10 0x0002066abf3e in PyRun_InteractiveLoopFlags () from /usr/local/lib/libpython3.2m.so.1.0 #11 0x0002066ac04c in PyRun_AnyFileExFlags () from /usr/local/lib/libpython3.2m.so.1.0 #12 0x0002066bc9f4 in Py_Main () from /usr/local/lib/libpython3.2m.so.1.0 #13 0x00400e75 in main () Thanks for your help, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12903] test_io.test_interrupte[r]d* blocks on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hi, these tests block on OpenBSD: -test_interrupted_write_unbuffered() -test_interrupted_write_buffered() -test_interrupted_write_text() -test_interrupterd_read_retry_buffered() -test_interrupterd_read_retry_text() -test_interrupterd_write_retry_buffered() -test_interrupterd_write_retry_text() I have a patch which skip these tests, to have a full test_io.py regress tests but I think it's not the proper solution. Thanks for your help, Remi. -- files: patch-Lib_test_test_io_py messages: 143558 nosy: rpointel priority: normal severity: normal status: open title: test_io.test_interrupte[r]d* blocks on OpenBSD versions: Python 3.2 Added file: http://bugs.python.org/file23103/patch-Lib_test_test_io_py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12905] multiple errors in test_socket on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hi, I have few problems in test_socket.py. 1) test_sendall_interrupted blocks on OpenBSD, I must Ctrl+c to interrupt the test. I added a skip to have full regress tests, but I think it's not the proper way. I have run it into gdb, and ctrl+c it: test_sendall_interrupted (__main__.GeneralModuleTests) ... [New process 20677] ^C Program received signal SIGINT, Interrupt. 0x000206d2378a in poll () from /usr/lib/libc.so.60.1 (gdb) bt #0 0x000206d2378a in poll () from /usr/lib/libc.so.60.1 #1 0x000205f4e4aa in _thread_kern_poll (wait_reqd=Variable wait_reqd is not available. ) at /usr/src/lib/libpthread/uthread/uthread_kern.c:780 #2 0x000205f4f3a8 in _thread_kern_sched (scp=0x0) at /usr/src/lib/libpthread/uthread/uthread_kern.c:382 #3 0x000205f43ade in sendto (fd=8, msg=0x2047bb040, len=1044480, flags=0, to=0x0, to_len=0) at /usr/src/lib/libpthread/uthread/uthread_sendto.c:63 #4 0x000210a5b243 in sock_sendall (s=0x20115c948, args=0x2011510d0) at /usr/ports/pobj/Python-3.2.2/Python-3.2.2/Modules/socketmodule.c:2699 #5 0x00468992 in PyEval_EvalFrameEx (f=0x20a281c30, throwflag=Variable throwflag is not available. ) at Python/ceval.c:3921 #6 0x0046a95c in PyEval_EvalCodeEx (_co=0x20fc581b0, globals=Variable globals is not available. ) at Python/ceval.c:3350 #7 0x00466df6 in PyEval_EvalFrameEx (f=0x20a9a3c30, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4019 #8 0x00468c1a in PyEval_EvalFrameEx (f=0x2033af030, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4009 #9 0x0046a95c in PyEval_EvalCodeEx (_co=0x2028a9de8, globals=Variable globals is not available. ) at Python/ceval.c:3350 #10 0x00466df6 in PyEval_EvalFrameEx (f=0x2052f1430, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4019 #11 0x0046a95c in PyEval_EvalCodeEx (_co=0x2028a9f58, globals=Variable globals is not available. ) at Python/ceval.c:3350 #12 0x00511ce3 in function_call (func=0x2050d5620, arg=0x20115d330, kw=0x2052f0030) at Objects/funcobject.c:629 #13 0x004e4a7f in PyObject_Call (func=0x2050d5620, arg=0x20115d330, kw=0x2052f0030) at Objects/abstract.c:2149 #14 0x0046456d in PyEval_EvalFrameEx (f=0x2052f0e30, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4236 #15 0x0046a95c in PyEval_EvalCodeEx (_co=0x2028ad268, globals=Variable globals is not available. ) at Python/ceval.c:3350 #16 0x00511ce3 in function_call (func=0x2050d5790, arg=0x20115d240, kw=0x0) at Objects/funcobject.c:629 #17 0x004e4a7f in PyObject_Call (func=0x2050d5790, arg=0x20115d240, kw=0x0) at Objects/abstract.c:2149 #18 0x004ff349 in method_call (func=0x2050d5790, arg=0x20115a5a0, kw=0x0) at Objects/classobject.c:319 #19 0x004e4a7f in PyObject_Call (func=0x20115d150, arg=0x20115a5a0, kw=0x0) at Objects/abstract.c:2149 #20 0x0042cb66 in slot_tp_call (self=Variable self is not available. ) at Objects/typeobject.c:5044 #21 0x004e4a7f in PyObject_Call (func=0x20113b680, arg=0x20115a5a0, kw=0x0) at Objects/abstract.c:2149 #22 0x004628fb in PyEval_EvalFrameEx (f=0x2071dc030, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4141 #23 0x0046a95c in PyEval_EvalCodeEx (_co=0x2086db6b8, globals=Variable globals is not available. ) at Python/ceval.c:3350 #24 0x00511ce3 in function_call (func=0x2086de1d0, arg=0x20115d1c8, kw=0x2071dd430) at Objects/funcobject.c:629 #25 0x004e4a7f in PyObject_Call (func=0x2086de1d0, arg=0x20115d1c8, kw=0x2071dd430) at Objects/abstract.c:2149 #26 0x0046456d in PyEval_EvalFrameEx (f=0x2071dde30, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4236 #27 0x0046a95c in PyEval_EvalCodeEx (_co=0x2086db490, globals=Variable globals is not available. ) at Python/ceval.c:3350 #28 0x00511ce3 in function_call (func=0x2086de060, arg=0x20113f420, kw=0x0) at Objects/funcobject.c:629 #29 0x004e4a7f in PyObject_Call (func=0x2086de060, arg=0x20113f420, kw=0x0) at Objects/abstract.c:2149 #30 0x004ff349 in method_call (func=0x2086de060, arg=0x2011411b0, kw=0x0) at Objects/classobject.c:319 #31 0x004e4a7f in PyObject_Call (func=0x20115d0d8, arg=0x2011411b0, kw=0x0) at Objects/abstract.c:2149 #32 0x0042cb66 in slot_tp_call (self=Variable self is not available. ) at Objects/typeobject.c:5044 #33 0x004e4a7f in PyObject_Call (func=0x201138920, arg=0x2011411b0, kw=0x0) at Objects/abstract.c:2149 #34 0x004628fb in PyEval_EvalFrameEx (f=0x2071dc430, throwflag=Variable throwflag is not available. ) at Python/ceval.c:4141 #35 0x0046a95c in PyEval_EvalCodeEx (_co=0x2086db6b8, globals=Variable globals is not available. ) at Python/ceval.c:3350 #36
[issue12905] multiple errors in test_socket on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: I add bt output with gdb 7, to have more informations. -- Added file: http://bugs.python.org/file23105/OpenBSD_test_socket_gdb.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads
Remi Pointel pyt...@xiri.fr added the comment: Hi, it seems to solve the problem (tested on OpenBSD 4.9 and OpenBSD-current). * test_posix.py on OpenBSD 4.9: [...] Ran 79 tests in 0.508s OK (skipped=35) * test_posix.py on OpenBSD-current: it continues to segfault, but I have opened an other ticket for this problem (issue 12852). Thanks a lot, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0
Remi Pointel pyt...@xiri.fr added the comment: It would be nice if you could find out in which header file fdopendir() is defined. Hi, fdopendir() is in /usr/include/dirent.h: #if __POSIX_VISIBLE = 200809 DIR *fdopendir(int); #endif You could find the file dirent.h here: http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h. Thanks, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0
Remi Pointel pyt...@xiri.fr added the comment: RĂ©mi : what happens if you manually add extern DIR *fdopendir(int fd); at the beginning of posixmodule.c? Hello, it seems to correctly work: ./python Lib/test/test_posix.py testNoArgFunctions (__main__.PosixTester) ... ok test_access (__main__.PosixTester) ... ok test_chdir (__main__.PosixTester) ... ok test_chflags (__main__.PosixTester) ... ok test_chown (__main__.PosixTester) ... ok test_confstr (__main__.PosixTester) ... ok test_cpu_set_basic (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_bitwise (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_cmp (__main__.PosixTester) ... skipped don't have sched affinity support test_dup (__main__.PosixTester) ... ok test_dup2 (__main__.PosixTester) ... ok test_environ (__main__.PosixTester) ... ok test_faccessat (__main__.PosixTester) ... ok test_fchmodat (__main__.PosixTester) ... ok test_fchown (__main__.PosixTester) ... ok test_fchownat (__main__.PosixTester) ... ok test_fdlistdir (__main__.PosixTester) ... ok test_fexecve (__main__.PosixTester) ... skipped 'test needs posix.fexecve()' test_fstat (__main__.PosixTester) ... ok test_fstatat (__main__.PosixTester) ... ok test_fstatvfs (__main__.PosixTester) ... ok test_ftruncate (__main__.PosixTester) ... ok test_futimens (__main__.PosixTester) ... ok test_futimes (__main__.PosixTester) ... ok test_futimesat (__main__.PosixTester) ... skipped 'test needs posix.futimesat()' test_get_and_set_scheduler_and_param (__main__.PosixTester) ... skipped can't change scheduler test_getcwd_long_pathnames (__main__.PosixTester) ... ok test_getgrouplist (__main__.PosixTester) ... ok test_getgroups (__main__.PosixTester) ... ok test_getresgid (__main__.PosixTester) ... ok test_getresuid (__main__.PosixTester) ... ok test_initgroups (__main__.PosixTester) ... ok test_lchflags_regular_file (__main__.PosixTester) ... skipped 'test needs os.lchflags()' test_lchflags_symlink (__main__.PosixTester) ... skipped 'test needs os.lchflags()' test_lchown (__main__.PosixTester) ... ok test_linkat (__main__.PosixTester) ... ok test_listdir (__main__.PosixTester) ... ok test_listdir_default (__main__.PosixTester) ... ok test_lockf (__main__.PosixTester) ... ok test_lutimes (__main__.PosixTester) ... skipped 'test needs posix.lutimes()' test_mkdirat (__main__.PosixTester) ... ok test_mkfifo (__main__.PosixTester) ... ok test_mkfifoat (__main__.PosixTester) ... ok test_mknod (__main__.PosixTester) ... ok test_mknodat (__main__.PosixTester) ... ok test_openat (__main__.PosixTester) ... ok test_oscloexec (__main__.PosixTester) ... ok test_osexlock (__main__.PosixTester) ... ok test_osshlock (__main__.PosixTester) ... ok test_pipe (__main__.PosixTester) ... ok test_pipe2 (__main__.PosixTester) ... skipped 'test needs os.pipe2()' test_posix_fadvise (__main__.PosixTester) ... skipped 'test needs posix.posix_fadvise()' test_posix_fallocate (__main__.PosixTester) ... skipped 'test needs posix.posix_fallocate()' test_pread (__main__.PosixTester) ... ok test_pwrite (__main__.PosixTester) ... ok test_readlinkat (__main__.PosixTester) ... ok test_readv (__main__.PosixTester) ... ok test_renameat (__main__.PosixTester) ... ok test_sched_affinity (__main__.PosixTester) ... skipped don't have sched affinity support test_sched_priority (__main__.PosixTester) ... ok test_sched_rr_get_interval (__main__.PosixTester) ... skipped 'no function' test_sched_yield (__main__.PosixTester) ... ok test_setresgid (__main__.PosixTester) ... ok test_setresgid_exception (__main__.PosixTester) ... ok test_setresuid (__main__.PosixTester) ... ok test_setresuid_exception (__main__.PosixTester) ... ok test_stat (__main__.PosixTester) ... ok test_statvfs (__main__.PosixTester) ... ok test_strerror (__main__.PosixTester) ... ok test_symlinkat (__main__.PosixTester) ... ok test_truncate (__main__.PosixTester) ... ok test_umask (__main__.PosixTester) ... ok test_unlinkat (__main__.PosixTester) ... ok test_utime (__main__.PosixTester) ... ok test_utimensat (__main__.PosixTester) ... ok test_waitid (__main__.PosixTester) ... skipped 'test needs posix.waitid()' test_writev (__main__.PosixTester) ... ok test_initgroups (__main__.PosixGroupsTester) ... skipped 'not enough privileges' test_setgroups (__main__.PosixGroupsTester) ... skipped 'not enough privileges' -- Ran 79 tests in 0.801s OK (skipped=17) And this command now works: $ ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' ['.X11-unix', '.ICE-unix', 'orbit-remi', '.X0-lock', 'dbus-WWfX2JhDtb'] Attached file patch-Modules_posixmodule_c is the patch to do this. Thanks a lot, Remi. -- Added file: http://bugs.python.org/file23085/patch-Modules_posixmodule_c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: 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_dump_traceback_file (__main__.FaultHandlerTests) ... ok test_dump_traceback_threads (__main__.FaultHandlerTests) ... ok test_dump_traceback_threads_file (__main__.FaultHandlerTests) ... ok test_dump_tracebacks_later (__main__.FaultHandlerTests) ... ok test_dump_tracebacks_later_cancel (__main__.FaultHandlerTests) ... ok test_dump_tracebacks_later_file (__main__.FaultHandlerTests) ... ok test_dump_tracebacks_later_repeat (__main__.FaultHandlerTests) ... ok test_dump_tracebacks_later_twice (__main__.FaultHandlerTests) ... ok test_enable_file (__main__.FaultHandlerTests) ... ok test_enable_single_thread (__main__.FaultHandlerTests) ... ok test_fatal_error (__main__.FaultHandlerTests) ... ok test_gil_released (__main__.FaultHandlerTests) ... ok test_is_enabled (__main__.FaultHandlerTests) ... ok test_read_null (__main__.FaultHandlerTests) ... ok test_register (__main__.FaultHandlerTests) ... ok test_register_chain (__main__.FaultHandlerTests) ... ok test_register_file (__main__.FaultHandlerTests) ... ok test_register_threads (__main__.FaultHandlerTests) ... ok test_sigabrt (__main__.FaultHandlerTests) ... ok test_sigbus (__main__.FaultHandlerTests) ... ok test_sigfpe (__main__.FaultHandlerTests) ... ok test_sigill (__main__.FaultHandlerTests) ... ok test_sigsegv (__main__.FaultHandlerTests) ... ok test_stack_overflow (__main__.FaultHandlerTests) ... FAIL test_unregister (__main__.FaultHandlerTests) ... ok == FAIL: test_stack_overflow (__main__.FaultHandlerTests) -- Traceback (most recent call last): File Lib/test/test_faulthandler.py, line 187, in test_stack_overflow other_regex='unable to raise a stack overflow') File Lib/test/test_faulthandler.py, line 105, in check_fatal_error self.assertRegex(output, regex) AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n File string, line 3 in module$|unable to raise a stack overflow' not found in '' -- Ran 27 tests in 16.938s FAILED (failures=1) Traceback (most recent call last): File Lib/test/test_faulthandler.py, line 551, in module test_main() File Lib/test/test_faulthandler.py, line 548, in test_main support.run_unittest(FaultHandlerTests) File /home/remi/dev/cpython_test/Lib/test/support.py, line 1328, in run_unittest _run_suite(suite) File /home/remi/dev/cpython_test/Lib/test/support.py, line 1303, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File Lib/test/test_faulthandler.py, line 187, in test_stack_overflow other_regex='unable to raise a stack overflow') File Lib/test/test_faulthandler.py, line 105, in check_fatal_error self.assertRegex(output, regex) AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n File string, line 3 in module$|unable to raise a stack overflow' not found in '' Thanks a lot, Remi. -- messages: 143251 nosy: rpointel priority: normal severity: normal status: open title: test_faulthandler.test_stack_overflow() failed on OpenBSD versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Info: I read issue 12469 but I prefered to create new issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
Remi Pointel pyt...@xiri.fr 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: illegal hardware instruction (core dumped) ./python -c 132 And if you're motivated, you could try it again after having built python with './configure --without-threads'. It does not build completely, I have a problem if I add --without-threads: $ make [...] ./Modules/posixmodule.c:4582: undefined reference to `sched_get_priority_min' libpython3.3m.a(posixmodule.o)(.text+0x430b): In function `posix_sched_get_priority_max': ./Modules/posixmodule.c:4565: undefined reference to `sched_get_priority_max' collect2: ld returned 1 exit status *** Error code 1 It seems that it needs -pthread even if I precise --without-threads. Must I open a new ticket for this problem? Thanks for your help, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
Remi Pointel pyt...@xiri.fr 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 rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
Remi Pointel pyt...@xiri.fr 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 string, line 1 in module zsh: segmentation fault (core dumped) ./python -c 139 Thanks, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD
Remi Pointel pyt...@xiri.fr 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) ... ok test_dump_traceback_threads (__main__.FaultHandlerTests) ... skipped 'need threads' test_dump_traceback_threads_file (__main__.FaultHandlerTests) ... skipped 'need threads' test_dump_tracebacks_later (__main__.FaultHandlerTests) ... skipped 'need faulthandler.dump_tracebacks_later()' test_dump_tracebacks_later_cancel (__main__.FaultHandlerTests) ... skipped 'need faulthandler.dump_tracebacks_later()' test_dump_tracebacks_later_file (__main__.FaultHandlerTests) ... skipped 'need faulthandler.dump_tracebacks_later()' test_dump_tracebacks_later_repeat (__main__.FaultHandlerTests) ... skipped 'need faulthandler.dump_tracebacks_later()' test_dump_tracebacks_later_twice (__main__.FaultHandlerTests) ... skipped 'need faulthandler.dump_tracebacks_later()' test_enable_file (__main__.FaultHandlerTests) ... ok test_enable_single_thread (__main__.FaultHandlerTests) ... ok test_fatal_error (__main__.FaultHandlerTests) ... ok test_gil_released (__main__.FaultHandlerTests) ... ok test_is_enabled (__main__.FaultHandlerTests) ... ok test_read_null (__main__.FaultHandlerTests) ... ok test_register (__main__.FaultHandlerTests) ... ok test_register_chain (__main__.FaultHandlerTests) ... ok test_register_file (__main__.FaultHandlerTests) ... ok test_register_threads (__main__.FaultHandlerTests) ... ok test_sigabrt (__main__.FaultHandlerTests) ... ok test_sigbus (__main__.FaultHandlerTests) ... ok test_sigfpe (__main__.FaultHandlerTests) ... ok test_sigill (__main__.FaultHandlerTests) ... ok test_sigsegv (__main__.FaultHandlerTests) ... ok test_stack_overflow (__main__.FaultHandlerTests) ... ok test_unregister (__main__.FaultHandlerTests) ... ok -- Ran 27 tests in 1.281s OK (skipped=7) Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Hi, this is the result of gcc -E on Modules/posixmodule.o, asked by haypo. Thanks for your help, Cheers, Remi. -- Added file: http://bugs.python.org/file23072/gcc-E-Modules_posixmodule_output ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hi, During the regress tests on OpenBSD, test_posix.test_fdlistdir() segfault. Details: $ ./python ./Tools/scripts/run_tests.py test_posix /home/remi/dev/cpython_test/python -W default -bb -E -m test -r -w -j 0 -u all,-largefile,-network,-urlfetch,-audio,-gui test_posix Using random seed 7449086 [1/1] test_posix Fatal Python error: Segmentation fault Current thread 0x000209419000: File /home/remi/dev/cpython_test/Lib/test/test_posix.py, line 456 in test_fdlistdir File /home/remi/dev/cpython_test/Lib/unittest/case.py, line 386 in _executeTestPart File /home/remi/dev/cpython_test/Lib/unittest/case.py, line 441 in run File /home/remi/dev/cpython_test/Lib/unittest/case.py, line 493 in __call__ File /home/remi/dev/cpython_test/Lib/unittest/suite.py, line 105 in run File /home/remi/dev/cpython_test/Lib/unittest/suite.py, line 67 in __call__ File /home/remi/dev/cpython_test/Lib/unittest/suite.py, line 105 in run File /home/remi/dev/cpython_test/Lib/unittest/suite.py, line 67 in __call__ File /home/remi/dev/cpython_test/Lib/test/support.py, line 1192 in run File /home/remi/dev/cpython_test/Lib/test/support.py, line 1293 in _run_suite File /home/remi/dev/cpython_test/Lib/test/support.py, line 1327 in run_unittest File /home/remi/dev/cpython_test/Lib/test/test_posix.py, line 1022 in test_main File /home/remi/dev/cpython_test/Lib/test/regrtest.py, line 1139 in runtest_inner File /home/remi/dev/cpython_test/Lib/test/regrtest.py, line 915 in runtest File /home/remi/dev/cpython_test/Lib/test/regrtest.py, line 439 in main File /home/remi/dev/cpython_test/Lib/test/regrtest.py, line 1717 in module File /home/remi/dev/cpython_test/Lib/runpy.py, line 73 in _run_code File /home/remi/dev/cpython_test/Lib/runpy.py, line 160 in _run_module_as_main Traceback (most recent call last): File /home/remi/dev/cpython_test/Lib/runpy.py, line 160, in _run_module_as_main __main__, fname, loader, pkg_name) File /home/remi/dev/cpython_test/Lib/runpy.py, line 73, in _run_code exec(code, run_globals) File /home/remi/dev/cpython_test/Lib/test/__main__.py, line 13, in module regrtest.main() File /home/remi/dev/cpython_test/Lib/test/regrtest.py, line 683, in main raise Exception(Child error on {}: {}.format(test, result[1])) Exception: Child error on test_posix: Exit code -11 [98138 refs] $ ./python Lib/test/test_posix.py testNoArgFunctions (__main__.PosixTester) ... ok test_access (__main__.PosixTester) ... ok test_chdir (__main__.PosixTester) ... ok test_chflags (__main__.PosixTester) ... ok test_chown (__main__.PosixTester) ... ok test_confstr (__main__.PosixTester) ... ok test_cpu_set_basic (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_bitwise (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_cmp (__main__.PosixTester) ... skipped don't have sched affinity support test_dup (__main__.PosixTester) ... ok test_dup2 (__main__.PosixTester) ... ok test_environ (__main__.PosixTester) ... ok test_faccessat (__main__.PosixTester) ... ok test_fchmodat (__main__.PosixTester) ... ok test_fchown (__main__.PosixTester) ... ok test_fchownat (__main__.PosixTester) ... ok test_fdlistdir (__main__.PosixTester) ... zsh: segmentation fault (core dumped) ./python Lib/test/test_posix.py with gdb $ gdb ./python GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as amd64-unknown-openbsd5.0... (gdb) run Lib/test/test_posix.py Starting program: /home/remi/dev/cpython_test/python Lib/test/test_posix.py testNoArgFunctions (__main__.PosixTester) ... ok test_access (__main__.PosixTester) ... ok test_chdir (__main__.PosixTester) ... ok test_chflags (__main__.PosixTester) ... ok test_chown (__main__.PosixTester) ... ok test_confstr (__main__.PosixTester) ... ok test_cpu_set_basic (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_bitwise (__main__.PosixTester) ... skipped don't have sched affinity support test_cpu_set_cmp (__main__.PosixTester) ... skipped don't have sched affinity support test_dup (__main__.PosixTester) ... ok test_dup2 (__main__.PosixTester) ... ok test_environ (__main__.PosixTester) ... ok test_faccessat (__main__.PosixTester) ... ok test_fchmodat (__main__.PosixTester) ... ok test_fchown (__main__.PosixTester) ... ok test_fchownat (__main__.PosixTester) ... ok test_fdlistdir (__main__.PosixTester) ... Program received signal SIGSEGV, Segmentation fault. [Switching to process 21658, thread 0x20a519000] _readdir_unlocked (dirp=0xafb0e80, result=0x7f7d7ac0, skipdeleted=1) at /usr/src/lib/libc/gen
[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Hi, thanks for your response. Yes it always segfault: $ ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' zsh: segmentation fault (core dumped) ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' $ ./python -c 'import os; print(os.fdlistdir(os.open(/tmp/test_python, os.O_RDONLY)))' zsh: segmentation fault (core dumped) ./python -c $ ./python -c 'import os; print(os.fdlistdir(os.open(/var/tmp, os.O_RDONLY)))' zsh: segmentation fault (core dumped) ./python -c 'import os; print(os.fdlistdir(os.open(/var/tmp, os.O_RDONLY))) With listdir it correctly works: $ ./python -c 'import os; print(os.listdir(/tmp))' ['.X11-unix', '.ICE-unix', 'test_python', 'tmpl80ewt', 'tmpled292'] [42658 refs] $ ./python -c 'import os; print(os.listdir(/tmp/test_python/))' ['1file', '2file', '3file'] [42658 refs] $ ./python -c 'import os; print(os.listdir(/var/tmp/))' ['vi.recover', 'kdecache-remi'] [42658 refs] Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Hi, I tested with this program in C: #include stdio.h #include dirent.h #include fcntl.h #include stdlib.h int main(void) { DIR *d; struct dirent *dp; int dfd; if ((d = fdopendir((dfd = open(/tmp, O_RDONLY == NULL) { fprintf(stderr, Cannot open /tmp directory\n); exit(1); } while ((dp = readdir(d)) != NULL) { if (dp-d_name[0] == '.') continue; printf(%s, \n, dp-d_name); } closedir(d); return 0; } and it seems to correctly works. Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6419] Broken test_kqueue.py on OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: Hi, I think this issue is relied to issue 12181. I have made tests. 1)with no patch: testPair (__main__.TestKQueue) ... ok test_create_event (__main__.TestKQueue) ... FAIL test_create_queue (__main__.TestKQueue) ... ok test_queue_event (__main__.TestKQueue) ... FAIL == FAIL: test_create_event (__main__.TestKQueue) -- Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 28, in test_create_event self.assertEqual(ev.ident, fd) AssertionError: 562945658454018L != 2 == FAIL: test_queue_event (__main__.TestKQueue) -- Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 129, in test_queue_event (server.fileno(), select.KQ_FILTER_WRITE, flags)]) AssertionError: Lists differ: [(1688841270329350L, -2, 5L), ... != [(6, -2, 0), (7, -2, 0)] First differing element 0: (1688841270329350L, -2, 5L) (6, -2, 0) - [(1688841270329350L, -2, 5L), (1688841270329351L, -2, 5L)] + [(6, -2, 0), (7, -2, 0)] -- Ran 4 tests in 0.002s FAILED (failures=2) Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 196, in module test_main() File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 193, in test_main test_support.run_unittest(TestKQueue) File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py, line 1087, in run_unittest _run_suite(suite) File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py, line 1070, in _run_suite raise TestFailed(err) test.test_support.TestFailed: multiple errors occurred # 2)with patch-Lib_test_test_kqueue_py: # testPair (__main__.TestKQueue) ... ok test_create_event (__main__.TestKQueue) ... FAIL test_create_queue (__main__.TestKQueue) ... ok test_queue_event (__main__.TestKQueue) ... FAIL == FAIL: test_create_event (__main__.TestKQueue) -- Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 28, in test_create_event self.assertEqual(ev.ident, fd) AssertionError: 562945658454018L != 2 == FAIL: test_queue_event (__main__.TestKQueue) -- Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 130, in test_queue_event (server.fileno(), select.KQ_FILTER_WRITE, flags)]) AssertionError: Lists differ: [(1688841270329350L, -2, 5L), ... != [(6, -2, 5), (7, -2, 5)] First differing element 0: (1688841270329350L, -2, 5L) (6, -2, 5) - [(1688841270329350L, -2, 5L), (1688841270329351L, -2, 5L)] + [(6, -2, 5), (7, -2, 5)] -- Ran 4 tests in 0.002s FAILED (failures=2) Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 197, in module test_main() File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 194, in test_main test_support.run_unittest(TestKQueue) File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py, line 1087, in run_unittest _run_suite(suite) File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py, line 1070, in _run_suite raise TestFailed(err) test.test_support.TestFailed: multiple errors occurred # 3)with patch-Modules_selectmodule_c (see issue 12181) # testPair (__main__.TestKQueue) ... ok test_create_event (__main__.TestKQueue) ... ERROR test_create_queue (__main__.TestKQueue) ... ok test_queue_event (__main__.TestKQueue) ... FAIL == ERROR: test_create_event (__main__.TestKQueue) -- Traceback (most recent call last): File /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py, line 74, in test_create_event ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) OverflowError: signed integer is greater than maximum
[issue12821] test_fcntl failed on OpenBSD 5.x
New submission from Remi Pointel pyt...@xiri.fr: Hello, test_fcntl failed on OpenBSD 5.0. It's ok when we add openbsd5 in the tuple of sys.platform (patch attached). Thanks a lot, Remi. -- files: patch-Lib_test_test_fcntl_py messages: 142784 nosy: rpointel priority: normal severity: normal status: open title: test_fcntl failed on OpenBSD 5.x versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23012/patch-Lib_test_test_fcntl_py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12821] test_fcntl failed on OpenBSD 5.x
Remi Pointel pyt...@xiri.fr added the comment: Thanks a lot, I prefer to use sys.platform.startswith too. Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12826] module _socket failed to build on OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hello, I try to build Python 3.3 on OpenBSD, and it failed to build these modules: _socket (so _ssl too). Errors are: /home/remi/dev/cpython_test/Modules/socketmodule.c: In function 'sock_recvmsg': /home/remi/dev/cpython_test/Modules/socketmodule.c:2935: error: storage size of 'iov' isn't known /home/remi/dev/cpython_test/Modules/socketmodule.c:2935: warning: unused variable 'iov' /home/remi/dev/cpython_test/Modules/socketmodule.c: In function 'sock_recvmsg_into': /home/remi/dev/cpython_test/Modules/socketmodule.c:3023: error: invalid application of 'sizeof' to incomplete type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3023: warning: division by zero /home/remi/dev/cpython_test/Modules/socketmodule.c:3023: error: invalid application of 'sizeof' to incomplete type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3034: error: invalid use of undefined type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3034: error: dereferencing pointer to incomplete type /home/remi/dev/cpython_test/Modules/socketmodule.c:3035: error: invalid use of undefined type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3035: error: dereferencing pointer to incomplete type /home/remi/dev/cpython_test/Modules/socketmodule.c: In function 'sock_sendmsg': /home/remi/dev/cpython_test/Modules/socketmodule.c:3332: error: invalid application of 'sizeof' to incomplete type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3332: warning: division by zero /home/remi/dev/cpython_test/Modules/socketmodule.c:3332: error: invalid application of 'sizeof' to incomplete type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3343: error: invalid use of undefined type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3343: error: dereferencing pointer to incomplete type /home/remi/dev/cpython_test/Modules/socketmodule.c:3344: error: invalid use of undefined type 'struct iovec' /home/remi/dev/cpython_test/Modules/socketmodule.c:3344: error: dereferencing pointer to incomplete type *** WARNING: renaming _ssl since importing it failed: No module named '_socket' If I add a #include sys/uio.h, these 2 modules correcly build. Attached file are: -the diff -the details of errors. Thanks, Remi. -- files: socketmodule_build_openbsd.diff keywords: patch messages: 142799 nosy: rpointel priority: normal severity: normal status: open title: module _socket failed to build on OpenBSD versions: Python 3.3 Added file: http://bugs.python.org/file23015/socketmodule_build_openbsd.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12826] module _socket failed to build on OpenBSD
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23016/socketmodule_build_error_openbsd.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD
New submission from Remi Pointel pyt...@xiri.fr: Hello, /usr/tmp is not (used) on OpenBSD. We have specific patch to do this, but I prefer to have this modification upstream. 2.5: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.5/patches/patch-Lib_tempfile_py 2.7: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.7/patches/patch-Lib_tempfile_py 3.2: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python3/3.2/patches/patch-Lib_tempfile_py Is it possible to add a specific location to remove /usr/tmp of the dirlist? Attached file is the patch to do this: --- Lib/tempfile.py.origThu Aug 4 17:05:24 2011 +++ Lib/tempfile.py Tue Aug 23 12:55:40 2011 @@ -138,6 +138,8 @@ # Failing that, try OS-specific locations. if _os.name == 'nt': dirlist.extend([ r'c:\temp', r'c:\tmp', r'\temp', r'\tmp' ]) +elif _sys.platform.startswith('openbsd'): +dirlist.extend([ '/tmp', '/var/tmp' ]) else: dirlist.extend([ '/tmp', '/var/tmp', '/usr/tmp' ]) , '/var/tmp' ]) Thanks, Remi. -- components: Library (Lib) files: patch-Lib_tempfile_py messages: 142803 nosy: rpointel priority: normal severity: normal status: open title: OS-specific location in Lib/tempfile.py for OpenBSD versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23017/patch-Lib_tempfile_py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: I was reporting this because I thought it was better to include this upstream. However, I understand if you don't want to include this specific case. We can keep this patch in our tree, I understand your position. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD
Remi Pointel pyt...@xiri.fr added the comment: I could be missing something, but why do you have this patch in the first place? I'm recently working on porting Python for OpenBSD, and this patch exists since python2.5 (since 4 years in our tree). So I don't have all responses, but I think this issue could be closed/rejected, and it seems that this patch could be safely removed from our port tree. Thanks for all information. Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Remi Pointel pyt...@xiri.fr added the comment: Hi, what information do you need to advance on this bug? Cheers, Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Remi Pointel pyt...@xiri.fr added the comment: Hi, this is the patch in OpenBSD. Source: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.7/patches/patch-Modules_selectmodule_c Could be usefull to work together and advance on this problem. Thanks a lot. Remi. -- Added file: http://bugs.python.org/file22911/patch-Modules_selectmodule_c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12555] PEP 3151 implementation
Remi Pointel pyt...@xiri.fr added the comment: Hi, I have tested on OpenBSD -current, and it seems to work fine: $ ./python -E -bb Lib/test/test_mmap.py test_access_parameter (__main__.MmapTests) ... ok test_anonymous (__main__.MmapTests) ... ok test_bad_file_desc (__main__.MmapTests) ... ok test_basic (__main__.MmapTests) ... ok test_context_manager (__main__.MmapTests) ... ok test_context_manager_exception (__main__.MmapTests) ... ok test_double_close (__main__.MmapTests) ... ok test_entire_file (__main__.MmapTests) ... ok test_error (__main__.MmapTests) ... ok test_extended_getslice (__main__.MmapTests) ... ok test_extended_set_del_slice (__main__.MmapTests) ... ok test_find_end (__main__.MmapTests) ... ok test_io_methods (__main__.MmapTests) ... ok test_length_0_large_offset (__main__.MmapTests) ... ok test_length_0_offset (__main__.MmapTests) ... ok test_move (__main__.MmapTests) ... ok test_non_ascii_byte (__main__.MmapTests) ... ok test_offset (__main__.MmapTests) ... ok test_prot_readonly (__main__.MmapTests) ... ok test_read_all (__main__.MmapTests) ... ok test_read_invalid_arg (__main__.MmapTests) ... ok test_rfind (__main__.MmapTests) ... ok test_subclass (__main__.MmapTests) ... ok test_tougher_find (__main__.MmapTests) ... ok test_around_2GB (__main__.LargeMmapTests) ... ok test_around_4GB (__main__.LargeMmapTests) ... ok test_large_filesize (__main__.LargeMmapTests) ... ok test_large_offset (__main__.LargeMmapTests) ... ok -- Ran 28 tests in 0.141s OK $ ./python -E -bb Lib/test/test_exceptions.py ... -- Ran 27 tests in 0.026s OK $ ./python -E -bb Lib/test/test_pep3151.py test_blockingioerror (__main__.AttributesTest) ... ok test_errno_translation (__main__.AttributesTest) ... skipped 'Windows-specific test' test_posix_error (__main__.AttributesTest) ... ok test_windows_error (__main__.AttributesTest) ... ok test_builtin_errors (__main__.HierarchyTest) ... ok test_errno_mapping (__main__.HierarchyTest) ... ok test_ioerror_subclass_mapping (__main__.HierarchyTest) ... ok test_select_error (__main__.HierarchyTest) ... ok test_socket_errors (__main__.HierarchyTest) ... ok -- Ran 9 tests in 0.001s OK (skipped=1) Don't hesitate to indicate me if you need more tests, or if I did something wrong. Cheers, Remi. -- nosy: +rpointel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7424] segmentation fault in listextend during install
Remi Pointel pyt...@xiri.fr added the comment: Thanks Antoine for your response. Python 3.2.1 and Python 2.4.6 have been successfully installed (but Python 2.5.4 and Python 2.7.1 failed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com