[issue11760] Bus error in test_big_buffer() of test_zlib on "AMD64 Snow Leopard 3.x" buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #11277. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: Issue #11760 has been marked as a duplicate of this issue. -- ___ Python tracker <http://bugs.python.org/issue11277> ___ ___

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: Here is a nice trace on "PPC Leopard 3.x" thanks to faulthandler + regrtest timeout (30 minutes): --- ... [218/354] test_multiprocessing Thread 0xf0617000: File "/Users/buildbot/buildarea/3.x.parc-leopard-1/build/L

[issue9592] Limitations in objects returned by multiprocessing Pool

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue9592> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11738] ThreadSignals.test_signals() of test_threadsignals hangs on PPC Tiger 3.x buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: I think that the last test_threadsignals failures on PPC Tiger were related to the new regrtest timeout, and it is now fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue11765] test_faulthandler failure

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: I wrote the assertion while dump_tracebacks_later() was implemented using SIGALRM + alarm(timeout). A simple fix for this issue is just to remove the assertion. But... I'm curious, and I would like to understand. The problem is on the following

[issue11765] test_faulthandler failure

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: 8da8cd1ba9d9 should fix this issue. Please reopen it if it doesn't solved it. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: > Hum, I'm not sure that my patch works if the locale encoding is not > UTF-8: import.c manipulates path in the filesystem encoding, whereas > PyTokenizer_FindEncodingFilename() expects UTF-8 filename. Thanks to my work on #3080, the import

[issue10785] parser: store the filename as an unicode object

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue10785> ___ ___ Python-bugs-list

[issue7805] test_multiprocessing failure

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue7805> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11768] test_signals() of test_threadsignals failure on Mac OS X Tiger

2011-04-04 Thread STINNER Victor
New submission from STINNER Victor : test_threadsignals hangs on "x86 Tiger 3.x" and "PPC Tiger 3.x": - [279/354] test_threadsignals Thread 0xa000d000: File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_threadsignals.py",

[issue11769] test_notify() of test_threading hang on "x86 XP-4 3.x":

2011-04-04 Thread STINNER Victor
New submission from STINNER Victor : Timeout of 15 minutes on "x86 XP-4 3.x": ... [334/354] test_threading Thread 0x024c: File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\threading.py", line 235 in wait File "D:\cyg

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: regrtest default timeout is now 30 minutes. I opened specific issues for each failure: * test_sendall_interrupted() of test_socket: issue #11753 * test_itimer_real() of test_signal: issue #11755 * test_threadsignals: issue #11768 * test_notify() of

[issue5120] Disabling test_ttk_guionly on mac

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: Recent crash on "PPC Tiger 3.x": [188/354] test_ttk_guionly Fatal Python error: Segmentation fault Traceback (most recent call first): File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/tkinter/ttk.py", line 47

[issue5120] Disabling test_ttk_guionly on mac

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: ttk_guionly creates a button (ttk.Button()) which calls _load_tile(), which crashs on: master.tk.eval('package require tile') Code of the function: - def _load_tile(master): if _REQUIRE_TILE: import os

[issue2736] datetime needs an "epoch" method

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: Marc, could you maybe write a new patching taking care of the DST and maybe also the timezone? It looks like you have a long experience in timestamps :-) -- ___ Python tracker <http://bugs.python.org/issue2

[issue11707] Create C version of functools.cmp_to_key()

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: functools_cmp_to_key() doesn't check that the argument is a callable. >>> table=list(range(3)) >>> table.sort(key=functools.cmp_to_key(3)) Traceback (most recent call last): File "", line 1, in TypeError: 'int

[issue11766] test_multiprocessing failure (test_pool_worker_lifetime)

2011-04-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue11766> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-05 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_zlib crashes under Snow Leopard buildbot -> test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD) ___ Python tracker <http://bugs.python.org/issu

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-05 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_subprocess failure -> test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout? ___ Python tracker <http://bugs.python.org/issu

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2011-04-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue1692335> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11771] hashlib object cannot be pickled

2011-04-05 Thread STINNER Victor
New submission from STINNER Victor : $ ./python Python 3.3a0 (default:76ed6a061ebe, Apr 5 2011, 12:25:00) >>> import hashlib, pickle >>> hash=hashlib.new('md5') >>> pickle.dumps(hash) Traceback (most recent call last): File "", line 1, in

[issue11771] hashlib object cannot be pickled

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: Oh, I don't know if it is possible to serialize a OpenSSL hash object (EVP_MD_CTX)... -- ___ Python tracker <http://bugs.python.org/is

[issue9592] Limitations in objects returned by multiprocessing Pool

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: > 1) A multiprocessing worker can not return (return, not raise!) an > Exception. (...) raise an error if multiple arguments are required: > TypeError: ('__init__() takes exactly 2 arguments (1 given)', > , ()) This problem

[issue11665] Regexp findall freezes

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: Ok. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue11665> ___ ___ Pyth

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-06 Thread STINNER Victor
New submission from STINNER Victor : The creation of a file of 5.25 GB took more than 30 min on "AMD64 Snow Leopard 3.x" buildbot, and so regrtest exited: - [ 27/354] test_mmap Thread 0x7fff70439ca0: File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-06 Thread STINNER Victor
STINNER Victor added the comment: The test step was interrupted after "38 mins, 45 secs" (including 30 min of timeout) at the test 27, whereas the previous (success) test step took "46 mins, 55 secs" to execute all (354) tests.

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread STINNER Victor
STINNER Victor added the comment: > I think it is more a question of "is this an easy fix?" > or would it require extensive changes to support unicode properly. First of all, the question is: who would like to develop it. You can vote for an issue, but it doesn't change

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread STINNER Victor
STINNER Victor added the comment: > Anyway, try to use Python everywhere in Python 2 is a waste of time. Oh... I mean "use Unicode in Python 2" -- ___ Python tracker <http://bugs.pytho

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-06 Thread STINNER Victor
STINNER Victor added the comment: Another test_multiprocessing failure (30 min timeout) on x86 XP-4 3.x: -- [125/354] test_multiprocessing Thread 0x0e5c: File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\threading.py", line 235 in wait File

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/issue11771> ___ ___ Python-bugs-

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: The failure occurs also on Leopard: -- [159/354] test_threadsignals Thread 0x7fff7080f700: File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/test/test_threadsignals.py", line 53 in test_signals Fil

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
New submission from STINNER Victor : I added recently a --timeout option to regrtest.py: dump the traceback of all threads and exit if a test takes more than TIMEOUT seconds (issue #11727). But my implementation was not correct: the timeout is applied on the whole file, not on a single

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: You may also patch poll_poll(). -- ___ Python tracker <http://bugs.python.org/issue11757> ___ ___ Python-bugs-list mailin

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: I forgot to patch some calls to runtest(): new patch. -- Added file: http://bugs.python.org/file21575/regrtest_timeout-2.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21573/regrtest_timeout.patch ___ Python tracker <http://bugs.python.org/issue11800> ___ ___ Python-bug

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: jseutter reproduced it after 112 and 49 runs on Snow Leopard using "regrtest.py -F -v --timeout=60 test_threadsignals" command: --- [ 49] test_threadsignals test_interrupted_timed_acquire (test.test_threadsignals.ThreadSigna

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, the traceback only contains one thread, so send_signals() thread was not created or failed very quickly (before its first print instruction). -- ___ Python tracker <http://bugs.python.org/issue11

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: I would like a timeout per function call because some files contain many slow tests: the duration of a file depends on the number of tests. Imagine that all functions takes 1 second: a file with 200 functions takes 200 seconds, whereas a file with 1 test

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: > Still I don't see the point. Is a 60 minutes timeout too long? If regrtest timeout is too close to the buildbot timeout, we may not get the traceback if the blocking test is the last test. I don't know yet if we will get false positive with a

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 08 avril 2011 à 05:34 +, Charles-Francois Natali a écrit : > Charles-Francois Natali added the comment: > > > You may also patch poll_poll(). > > > > Poll accepts negative timeout values, since it's the only way

[issue5673] Add timeout option to subprocess.Popen

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: I fixed a bug in _communicate_with_poll(): raise an error if the endtime-time() is negative. If poll() is called with a negative timeout, it blocks until it gets an event. New changeset 3664fc29e867 by Victor Stinner in branch 'default': Is

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Simplify the test and set the default timeout to 15 min. -- Added file: http://bugs.python.org/file21582/regrtest_timeout-3.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21575/regrtest_timeout-2.patch ___ Python tracker <http://bugs.python.org/issue11800> ___ ___ Pytho

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: With the current implementation of faulthandler.dump_tracebacks_later(), use a timeout per function means create a new thread for each function (the thread is interrupted and exits when the test is done). Quick benchmark with test_io on Linux (lowest "

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: I did a similar test on Windows: test_io takes ~19.1 sec with and without timeout. If I look closer, the timeout overhead (call a thread per function call) is 112 µs per function call. The average duration of a test is 48 ms (47,750 µs), so the overhead is

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 08 avril 2011 à 17:31 +, Antoine Pitrou a écrit : > Antoine Pitrou added the comment: > > > I did a similar test on Windows: test_io takes ~19.1 sec with and > > without timeout. > > You may want to test

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread STINNER Victor
STINNER Victor added the comment: I emulated Mac OS X behaviour on Linux by hacking my_fgets(): do { p=NULL; errno = EINTR; }, only after the first call to fgets(). Without the patch, Python does exit immediatly. With the patch, Python doesn't exit. I applied neologix's patch t

[issue11825] faulthandler: failure without threads

2011-04-11 Thread STINNER Victor
STINNER Victor added the comment: Attached patch disables regrtest.py timeout if faulthandler.dump_tracebacks_later() is missing. It prints a warning at startup, and an error if --timeout option is used. -- keywords: +patch Added file: http://bugs.python.org/file21613/timeout.patch

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-11 Thread STINNER Victor
STINNER Victor added the comment: > (Victor, please don't file many bugs in a single issue!) I thought that these issues were the same. Victor -- ___ Python tracker <http://bugs.python.or

[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue11840> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue11186> ___ ___ Python-bugs-list

[issue11005] Assertion error on RLock._acquire_restore

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch: Antoine, would you like to review it? -- keywords: +patch nosy: +pitrou Added file: http://bugs.python.org/file21636/rlock_release_save.patch ___ Python tracker <http://bugs.python.org/issue11

[issue8776] Bytes version of sys.argv

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: One year after opening the issue, I don't have any real use case. And there are technical issues to implement this feature, so I prefer just to close this issue. Reopen it if you really want it, but please give an use case ;-) -- resolution: -&

[issue8448] buildbot: test_subprocess failure (test_no_leaking, Broken pipe)

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: I did not see this failure since one year. flox saw it 7 months ago. I close this issue because I think that it is fixed. Reopen it if the issue was not fixed. -- resolution: -> out of date status: open ->

[issue8429] buildbot: test_subprocess timeout

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: I developed the faulthandler module to get more information after a timeout. I close this issue: I already opened more specific issues with more information. -- resolution: -> invalid status: open ->

[issue8431] buildbot: hung on ARM Debian

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: There are no more ARM buildbots, so let's close this issue. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why this issue is still open, so let's close it. -- status: open -> closed ___ Python tracker <http://bugs.pyth

[issue11825] faulthandler: failure without threads

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue11825> ___ ___ Python-bugs-list

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: Antoine changed regrtest default timeout to 60 minutes. It should workaround test_mmap timeout, so can we close this issue? -- ___ Python tracker <http://bugs.python.org/issue11

[issue9592] Limitations in objects returned by multiprocessing Pool

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: > Thanks Freek - we're actually discussing some stuff like this > in issue9205 as well I'm unable to see the relation between the issue #9205 and the point (3) of this issue (RuntimeError: maximum recursion depth exceeded while calling

[issue6715] xz compressor support

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor
STINNER Victor added the comment: This issue remembers me the issue #6612 (failure if the current directory was removed): the fix was to ignore os.getcwd(). Attached patch ignores os.path.expanduser() error (KeyError) and keeps ~ in the path. Example without HOME var and with an non existent

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file21639/sysconfig_getuserbase.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21639/sysconfig_getuserbase.patch ___ Python tracker <http://bugs.python.org/issue10496> ___ ___ Pytho

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21640/sysconfig_getuserbase.patch ___ Python tracker <http://bugs.python.org/issue10496> ___ ___ Pytho

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2011-04-13 Thread STINNER Victor
STINNER Victor added the comment: print(repr(json.loads(json.dumps({u"my_key": u'\uda00'}))['my_key'])): - displays u'\uda00' in Python 2.7, 3.2 and 3.3 - raises a ValueError('Invalid \u escape: ...') on loads() in Python 2.6 - raises a V

[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-13 Thread STINNER Victor
STINNER Victor added the comment: > If a user unknowingly creates such a module with an unencodable > filename, will they understand why pydoc does not display it? It is really a bad idea to choose an *undecodable* name for a module. You will not be able to write its name using "

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-14 Thread STINNER Victor
STINNER Victor added the comment: > ... which does not give the same result in UCS-2 and UCS-4 builds. > As a result, the pyc file is not portable across those builds. Since Python 3.2, the pyc filename contains a tag (u) to indicate wide build (sys.maxunicode==0x10), instead of

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-14 Thread STINNER Victor
STINNER Victor added the comment: Because the patch is simple (just add a try/except), I think that it doesn't matter if only few people use users without entry in /etc/passwd and we should fix this issue. -- ___ Python tracker

[issue11397] os.path.realpath() may produce incorrect results

2011-04-14 Thread STINNER Victor
STINNER Victor added the comment: I tested issue11397_py32.patch: - you should use os.fsencode(sep) instead of sep.encode() - os.path.realpath('../'*10) raises IndexError('pop from empty list') instead of giving '/' -- ___

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #1726687 which is already fixed in Python 2.7 by 7a89f4a73d1a (Feb 15 2011): it will be part of 2.7.2. Only security vulnerabilities are fixed in Python 2.6, so I change the version field to 2.7 only. -- nosy: +haypo

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue11850> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue11851> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
New submission from STINNER Victor : test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2: --- [250/354] test_io Exception in thread Thread-1316: Traceback (most recent call last): File "/usr/home/db3l/buildarea/3.x.

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: I already read somewhere that on FreeBSD, any thread can receive a signal, not only the main thread. I suppose that it should be the same on Linux, but Linux tries maybe to send a signal to the main thread if the main thread and other threads are calling a

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: One solution to fix this problem is to use pthread_sigmask() on the _read() thread to not handle SIGARLM. For example, the faulthandler uses the following code to not handle any thread in its timeout thread: #ifdef HAVE_PTHREAD_H sigset_t set; /* we

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: Let's close this issue. I will reopen it if a timeout of 60 min was not the right choice to workaround this failure. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://b

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-17 Thread STINNER Victor
STINNER Victor added the comment: Oh, I reproduced the bug. [3021] test_threadsignals test_signals (test.test_threadsignals.ThreadSignals) ... test_signals: acquire lock (thread -1610559488) test_signals: wait lock (thread -1610559488) send_signals: enter (thread

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-17 Thread STINNER Victor
STINNER Victor added the comment: > The main thread was waiting test_signals() lock (signalled_all) > while it is was interrupted by a signal. The signal handler calls > Py_AddPendingCall() which blocks on acquiring "pending_lock". Oh, the main thread receives SIGUSR1:

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: It looks like pthread_mutex_lock() and pthread_mutex_unlock() are not reentrant on some platforms (in some implementations of the pthread API). Antoine: if I understand correctly your patch, if we have a pending signal, all next signals will be simply

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: > pthread_sigmask() can be used to avoid reentrant call, > but it has no effect on the second case: "signal_handler() > called twice at the same time in two different threads". Same problem if we use sa_mask field of sigaction() (e

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: > I don't think so, please re-read. Oh, I thought that Py_AddPendingCall() was used to store the pending signal. But no, it asks Python main loop to check which signal has been trigerred, and we can only do it once for all signals. Attached patch sh

[issue11768] signal_handler() is not reentrant: deadlock in Py_AddPendingCall()

2011-04-18 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_signals() of test_threadsignals failure on Mac OS X -> signal_handler() is not reentrant: deadlock in Py_AddPendingCall() ___ Python tracker <http://bugs.python.org/issu

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: Le lundi 18 avril 2011 à 10:40 +, STINNER Victor a écrit : > Attached patch should fix this issue: > > - signal_handler() and PyErr_SetInterrupt() only call Py_AddPendingCall() on > the first signal (if is_tripped is zero): it should fix the

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21703/signal_versionadded.patch ___ Python tracker <http://bugs.python.org/issue11768> ___ ___ Pytho

[issue11768] signal_handler() is not reentrant: deadlock in Py_AddPendingCall()

2011-04-18 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_signals() of test_threadsignals failure on Mac OS X -> signal_handler() is not reentrant: deadlock in Py_AddPendingCall() ___ Python tracker <http://bugs.python.org/issu

[issue11768] signal_handler() is not reentrant: deadlock in Py_AddPendingCall()

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: The deadlock is fixed. Reopen the issue if you still see test_threadsignals hang on a buildbot. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2011-04-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue8407> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: sigprocmask or (better) pthread_sigmask is required to fix #11859 bug. --- Python has a test for "broken pthread_sigmask". Extract of configure.in: AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported) AC_CACHE_VAL(ac_cv_pthread_system

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-04-18 Thread STINNER Victor
New submission from STINNER Victor : test_3_join_in_forked_from_thread() of test_threading failed on "x86 Ubuntu Shared 3.x" buildbot: --- [201/354] test_threading [41179 refs] [40407 refs] [40407 refs] [40407 refs] Timeout (1:00:00)! Thread 0x404218

[issue11779] test_mmap timeout (1 hour) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: Hum, it does still fail with a timeout of 1 hour: --- [ 41/354] test_mmap Timeout (1:00:00)! Thread 0x7fff70439ca0: File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/Lib/test/test_mmap.py",

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: A timeout of 60 minutes looks to be fine. Today I debuged a thread+signal issue which gave me an headache, so I prefer to close this issue: only add create thread per file, and not a thread per function. -- resolution: -> wont fix status: o

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2011-04-18 Thread STINNER Victor
New submission from STINNER Victor : While trying to reproduce issue #11870 using "gdb -args ./python Lib/test/regrtest.py -F -v --timeout=600 test_threading", I had the following error on Linux: -- test_default_timeout (test.test_threading.BarrierTests) .

[issue11779] test_mmap timeout (1 hour) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: We can use the following function to check if the filesystem does support sparse files: def support_sparse_file(directory): import tempfile with tempfile.NamedTemporaryFile(dir=directory) as tmpfile: # Create a file with a size of 1 byte but

[issue11779] test_mmap timeout (1 hour) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-18 Thread STINNER Victor
STINNER Victor added the comment: Timing on the x86 Tiger buildbot: "time ./python.exe -m test -v -u largefile test_mmap" gives approx 5 minutes. The buildbot is a Mac mini, Intel Core Duo 1.8 GHz, 2 GB of memory, Mac OS X 10.4.10, HD: 232 GB (182 GB available) WDC WD2500BEVT-00A2

[issue11873] test_regexp() of test_compileall failure on "x86 OpenIndiana 3.x"

2011-04-19 Thread STINNER Victor
New submission from STINNER Victor : Trace: -- [ 30/354] test_compileall test test_compileall failed -- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor added the comment: > “If a signal is delivered to a thread waiting for a condition variable, > upon return from the signal handler the thread resumes waiting for the > condition > variable as if it was not interrupted, or it shall return zero due to spuri

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21714/pthread_cond_timedwait_signal.c ___ Python tracker <http://bugs.python.org/issue11223> ___ ___

[issue11876] SGI Irix threads, SunOS lightweight processes, GNU pth threads, Mach C Threads are now unsupported, and code will be removed in 3.3

2011-04-19 Thread STINNER Victor
New submission from STINNER Victor : Python/thread.c contains the following messages: #ifdef SGI_THREADS #error SGI Irix threads are now unsupported, and code will be removed in 3.3. #include "thread_sgi.h" #endif #ifdef SUN_LWP #error SunOS lightweight processes are now unsupported

<    24   25   26   27   28   29   30   31   32   33   >