Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 4, 2009, 10:28 AM

Post #1 of 3 (68 views)
Permalink
[issue7144] imp.load_module in thread causes core dump on OSX 10.6

Adam Doherty <dohertywa[at]gmail.com> 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.

----------
nosy: +dohertywa

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue7144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 17, 2009, 8:47 AM

Post #2 of 3 (38 views)
Permalink
[issue7144] imp.load_module in thread causes core dump on OSX 10.6 [In reply to]

Ronald Oussoren <ronaldoussoren[at]mac.com> 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 thread (all of this on Snow Leopard only).

I've found a workaround for this issue: ensure that Python is linked to
the CoreFoundation framework, that way CF will be initialized when
Python starts.

I'm working on a clean patch for this

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue7144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 19, 2009, 9:31 AM

Post #3 of 3 (26 views)
Permalink
[issue7144] imp.load_module in thread causes core dump on OSX 10.6 [In reply to]

Ronald Oussoren <ronaldoussoren[at]mac.com> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue7144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.