This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "setdlopenflags" leads to crash upon "import"
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: jdpipe, nnorwitz
Priority: high Keywords:

Created on 2005-11-07 11:26 by jdpipe, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26815 - (view) Author: John Pye (jdpipe) Date: 2005-11-07 11:26
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
msg26816 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-11-09 07:03
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)
msg26817 - (view) Author: John Pye (jdpipe) Date: 2005-11-09 09:14
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
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42562
2005-11-07 11:26:34jdpipecreate