New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation error happens in Embedding Python. #53163
Comments
A segmentation error happens in Embedding Python. condition A happening [user@localhost debug]$ so I watched core with gdb. [user@localhost debug]$ gdb ctypes_segmfault core.2981 warning: core file may not match specified executable file. fumm... I don't know about inside of Python Interpreter. [user@localhost debug]$ cat ctypes_segmfault.c
#include <stdio.h>
#include <Python.h> /* ulimit -c unlimited */ int main(void) {
char *argpy[] = { "python", "import_ctypes.py" };
printf("----- 0 -----\n");
Py_Main(2, argpy);
printf("----- 1 -----\n");
Py_Main(2, argpy);
printf("----- 2 -----\n");
Py_Main(2, argpy);
printf("----- 3 -----\n");
Py_Main(2, argpy);
printf("----- 4 -----\n");
return 0;
}
[user@localhost debug]$
[user@localhost debug]$ cat build.sh
#!/bin/sh gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 \ gcc -pthread -Xlinker -export-dynamic -o ctypes_segmfault \ |
I used Python 2.6.5 on CentOS 5.5. [root@localhost ~]# uname -a [root@localhost ~]# python
|
I think this issue is duplicates of bpo-6869. So I'm closing... |
Thanx Hirokazu Yamamoto!! (arigato gozaimasu) I was insufficient when search. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: