[Python-bugs-list] [ python-Bugs-488184 ] import with undefineds can crash python
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 11 Dec 2001 02:01:05 -0800
Bugs item #488184, was opened at 2001-12-02 14:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488184&group_id=5470
Category: Macintosh
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: import with undefineds can crash python
Initial Comment:
Importing a module which references undefined externals, or which references libraries that
fail initialization, can crash the interpreter.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2001-12-11 02:01
Message:
Logged In: YES
user_id=45365
Apple was already aware of this bug, their bug number for it
is #2806458. There is no workaround known, so we'll have to
wait until it is fixed.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2001-12-06 14:56
Message:
Logged In: YES
user_id=45365
Unfortunately the fix I had in mind, adding the "return on error" flag to NSLinkModule(), is not good enough. Python crashes while the initialization routine for the dynamic library is running, and NSLinkModule also never gets control back, it seems. I now think this is definitely an Apple bug. Lowering the priority because of that, not because it's not important.
I did find an easy way to reproduce the bug, though: "su" to someone else (not root, someone who can't access your window server) and import _Win or something similar.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488184&group_id=5470