[ python-Bugs-1350188 ] "setdlopenflags" leads to crash upon "import"

SourceForge.net noreply at sourceforge.net
Wed Nov 9 10:14:50 CET 2005


Bugs item #1350188, was opened at 2005-11-07 22:26
Message generated for change (Comment added) made by jdpipe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1350188&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Closed
Resolution: Fixed
Priority: 7
Submitted By: John Pye (jdpipe)
Assigned to: Neal Norwitz (nnorwitz)
Summary: "setdlopenflags" leads to crash upon "import"

Initial Comment:
While playing around with correct values of the
dl.RTLD_xxxx flags in the dl module, I found that I
could crash python as follows:

python -v
[...]
>>> import sys; import dl
dlopen("/usr/lib/python2.4/lib-dynload/dlmodule.so", 2);
import dl # dynamically loaded from
/usr/lib/python2.4/lib-dynload/dlmodule.so
>>> sys.setdlopenflags(15)
>>> import ascend
# ascend.pyc matches ascend.py
import ascend # precompiled from ascend.pyc
dlopen("./_ascend.so", f);
python: Objects/stringobject.c:105:
PyString_FromString: Assertion `str != ((void *)0)' failed.
Aborted

JP

----------------------------------------------------------------------

>Comment By: John Pye (jdpipe)
Date: 2005-11-09 20:14

Message:
Logged In: YES 
user_id=849068

Hi Neal,

Yeah the ascend.so thing is something I'm working on with
SWIG, basically some bindings for ASCEND, see
http://pye.dyndns.org/ascend/.

I'm probably not going to check out and build python from
sources, so I'll just have to take your word for it ;-)

Cheers
JP

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2005-11-09 18:03

Message:
Logged In: YES 
user_id=33168

Thanks!

I don't have ascend.so.  I  tried importing time and it
crashed hard.  I checked in a fix for me.  Let me know if it
doesn't fix the problem for you.

Committed revision 41412.
Committed revision 41413. (2.4)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1350188&group_id=5470


More information about the Python-bugs-list mailing list