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.

Author enometh
Recipients enometh
Date 2021-08-14.14:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628951281.11.0.836111617554.issue44913@roundup.psfhosted.org>
In-reply-to
Content
Attached zip file has a test case which illustrate the problem:

A python process (`dload.py') loads up a shared library (`libfoo1.so')
and makes a call to a foreign function `foo'. `foo' Initializes Python
and creates makes a call to PyModule_New at which point dload.py
crashes.

If the calling process is not python(`dload.c'), there is no crash

This sort of situation occurs with python-pam.  I'm not sure if this
is a programmer error and would welcome correction

[I'm supplying a zip file because I can't attach multiple files
Steps to repeat
1. compile libfoo1.so according to comment
2. Run ./dload.py
3. Optionally compile and run dload.c
History
Date User Action Args
2021-08-14 14:28:01enomethsetrecipients: + enometh
2021-08-14 14:28:01enomethsetmessageid: <1628951281.11.0.836111617554.issue44913@roundup.psfhosted.org>
2021-08-14 14:28:01enomethlinkissue44913 messages
2021-08-14 14:28:00enomethcreate