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 <>
Attached zip file has a test case which illustrate the problem:

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

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 according to comment
2. Run ./
3. Optionally compile and run dload.c
Date User Action Args
2021-08-14 14:28:01enomethsetrecipients: + enometh
2021-08-14 14:28:01enomethsetmessageid: <>
2021-08-14 14:28:01enomethlinkissue44913 messages
2021-08-14 14:28:00enomethcreate