[issue11321] 9th import of module _pickle always crashes
Palm Kevin
report at bugs.python.org
Fri Feb 25 16:51:21 CET 2011
New submission from Palm Kevin <kevin.palm at labsolution.lu>:
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??
----------
components: Interpreter Core
messages: 129384
nosy: palm.kevin
priority: normal
severity: normal
status: open
title: 9th import of module _pickle always crashes
type: crash
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11321>
_______________________________________
More information about the Python-bugs-list
mailing list