[issue7085] strptime problem

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I committed a fix in r76403 (trunk), r76404 (2.6), r76405 (3.2), 76406 (3.1) -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue7085] strptime problem

2009-11-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash is caused by loading any extension that happens to link with CoreFoundation on a secondary thread, unless CoreFoundation was already initialized. The CF framework contains a constructor that explicitly aborts when it is not called on the main thre

[issue7085] strptime problem

2009-11-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: FWIW, I've filed an issue with Apple for this: Radar #7330231 -- ___ Python tracker ___ ___ Python-

[issue7085] strptime problem

2009-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash happens whenever you import code on a secondairy thread. I consider this a platform bug in the implementation of dlopen, because the crash also occurs with this variant on test(): def test(): print "DL" p = os.path.join(os.path.dirname(time

[issue7085] strptime problem

2009-10-08 Thread Brett Cannon
Brett Cannon added the comment: It's confirmed on 2.5 - trunk, but it is not an issue in at least 3.1 and py3k. As Ned pointed out, time imports _strptime.py from the standard library which is known to be a no-no. But still, it's odd that it crashed on Snow Leopard but not Leopard. I will le

[issue7085] strptime problem

2009-10-08 Thread Jiri Krivanek
Jiri Krivanek added the comment: The suggested workaround helped to solve the issue to me. Thank for it very much. I am using Python 2.4.4 and cannot upgrade to anything above 2.4 due to incompatibility between .pyc files (I have tenths of production sites with Python 2.4.4, with automatic u

[issue7085] strptime problem

2009-10-08 Thread Ned Deily
Ned Deily added the comment: It fails for me as well on 10.6 (Intel) with 2.6 and trunk and did not fail on 10.5 (ppc). time.strptime does an import of a python module from C code so, not surprisingly, adding a time.strptime call in the main module prior to the thread.start_new_thread avoids

[issue7085] strptime problem

2009-10-08 Thread Jiri Krivanek
New submission from Jiri Krivanek : The following simple code works perfectly on W2K, WXP, Ubuntu, OSX10.4 OSX10.5. It, however, stopped working on OSX10.6 (Snow Leopard): It simply crashes. It is a strptime() which causes problems to me. Any idea? Any workaround? import time import thread d