Message92555
on python2.5 / mac os x 10.5.7:
$ cat main.c
#include <stdio.h>
#include <python.h>
int main()
{
int i;
for (i=0; i<10; i++)
{
printf("--- %d ---\n", i);
Py_Initialize();
PyRun_SimpleString("import ctypes");
Py_Finalize();
}
return 0;
}
$ gcc -I/usr/include/python2.5/ -L/usr/lib/python2.5/ -lpython main.c
$ ./a.out
--- 0 ---
--- 1 ---
--- 2 ---
--- 3 ---
Assertion failed: (type->tp_flags & Py_TPFLAGS_HEAPTYPE), function
type_dealloc, file Objects/typeobject.c, line 2148.
Abort trap
$ uname -mprsv
Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009;
root:xnu-1228.12.14~1/RELEASE_I386 i386 i386 |
|
Date |
User |
Action |
Args |
2009-09-12 22:12:03 | mkp | set | recipients:
+ mkp, theller, warlock |
2009-09-12 22:12:03 | mkp | set | messageid: <1252793523.0.0.80912778029.issue6869@psf.upfronthosting.co.za> |
2009-09-12 22:12:00 | mkp | link | issue6869 messages |
2009-09-12 22:12:00 | mkp | create | |
|