[ python-Bugs-848907 ] pydoc crash on MacOS X
SourceForge.net
noreply at sourceforge.net
Fri Jul 16 00:32:05 CEST 2004
Bugs item #848907, was opened at 2003-11-25 13:50
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=848907&group_id=5470
Category: Macintosh
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Jack Jansen (jackjansen)
Summary: pydoc crash on MacOS X
Initial Comment:
pydoc will crash the python interpreter on MacOS X if an
extension module defines an Objective-C class or category.
The attached tarball contains an example of this, if you build
the extension module and then run dotest.py the interpreter
will crash.
The cause for this is the call to 'imp.load_module' in
pydoc.py. This will load the extension module with __temp__
as it's name. load_module will load the executable image,
search for the init__temp__ function and will then try to
unload the image because that function is not found.
Unloading the image (using NSUnloadModule, see
dynload_next.c) will cause the crash because it is impossible
to unload executable images that contain an Objective-C
class or category.
A real world example: install PyObjC and run 'pydoc -k
hello'.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2004-07-16 00:32
Message:
Logged In: YES
user_id=45365
This is a duplicate of #838140, so it should be fixed (for 2.4 at least).
Please give it a try, and reopen the report if the problem still exists.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-11-25 15:06
Message:
Logged In: YES
user_id=45365
This is a duplicate of <https://sourceforge.net/tracker/?
func=detail&aid=838140&group_id=5470&atid=105470>, but I'm
leaving it in for the moment as it has a real-life example of when
modules are unloaded.
Ronald: could you you see whether you agree with my suggestions
over there that PyObjC modules should solve this themselves (as
opposed to disabling unloading in general)?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=848907&group_id=5470
More information about the Python-bugs-list
mailing list