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 palm.kevin
Recipients palm.kevin
Date 2011-02-25.15:51:20
SpamBayes Score 1.966838e-06
Marked as misclassified No
Message-id <1298649081.58.0.623637694114.issue11321@psf.upfronthosting.co.za>
In-reply-to
Content
Please have a look to the following app:

#include "Python.h"

main(int argc, char **argv)
{
  int i;
  printf("START\n");
  for(i = 0; i < 20; i++){
    Py_Initialize();

    printf("Try import #%i ...", i);
    PyRun_SimpleString("import _pickle\n");

    printf("SUCCESS\n");
    Py_Finalize();
  }
  printf("END\n");
}


If I run that app (Linux), then I get the following output:

START
Try import #0 ...SUCCESS
Try import #1 ...SUCCESS
Try import #2 ...SUCCESS
Try import #3 ...SUCCESS
Try import #4 ...SUCCESS
Try import #5 ...SUCCESS
Try import #6 ...SUCCESS
Try import #7 ...SUCCESS
Segmentation fault


It systematically crashes on the 9th call ...
Does anybody know the reason of this segmentation fault problem??
History
Date User Action Args
2011-02-25 15:51:21palm.kevinsetrecipients: + palm.kevin
2011-02-25 15:51:21palm.kevinsetmessageid: <1298649081.58.0.623637694114.issue11321@psf.upfronthosting.co.za>
2011-02-25 15:51:21palm.kevinlinkissue11321 messages
2011-02-25 15:51:20palm.kevincreate