[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've just committed a fix for this issue in all 4 active branches (2.6, 2.7, 3.1 and 3.2) -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

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

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-11-04 Thread Adam Doherty
Adam Doherty added the comment: Hello: Having the same issues in a web app I've written. Tested with the default 2.5 and 2.6 on Snow Leopard and 2.5 on Ubuntu 8.04 (no problems under Linux) Replaced the default Python with 2.6.4 from python.org, my app no longer crashes. Hope it helps. -

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: This seems to be a known issue: importing extensions in a thread fails on OSX 10.6 (with a hard crash of the interpreter). The crash in inside the initialisation function for an Apple framework. I haven't been able to determine if the problem is in Python o

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-10-15 Thread Pete Hunt
New submission from Pete Hunt : Apologies if I mess up the formatting - my first bug report submitted. Steps to reproduce (OSX Snow Leopard, 2.6.3) >>> import threading, imp >>> def doit(): ... print imp.load_module("cherrypy", None, "/Library/Frameworks/Python.framework/Versions/2.6/lib/p