Message355656
See https://bugs.llvm.org/show_bug.cgi?id=43830, but basically the follwing code:
```
// a.c
#include <Python.h>
int main() {
Py_Initialize();
PyRun_SimpleString("import readline; print(readline.__doc__)");
return 0;
}
```
compiled like this:
```
% gcc a.c `./install/bin/python3-config --cflags --ldflags --libs` -lpython3.9
```
runs fine:
```
% ./a.out
Importing this module enables command line editing using GNU readline.
```
However the following:
```
% gcc a.c `./install/bin/python3-config --cflags --ldflags --libs` -ledit -lpython3.9
```
compiles but segfaults at runtime. |
|
Date |
User |
Action |
Args |
2019-10-29 15:17:05 | serge-sans-paille | set | recipients:
+ serge-sans-paille |
2019-10-29 15:17:05 | serge-sans-paille | set | messageid: <1572362225.21.0.644355885677.issue38634@roundup.psfhosted.org> |
2019-10-29 15:17:05 | serge-sans-paille | link | issue38634 messages |
2019-10-29 15:17:04 | serge-sans-paille | create | |
|