[New-bugs-announce] [issue38634] Symbol resolution conflict when embeding python in an application using libedit
serge-sans-paille
report at bugs.python.org
Tue Oct 29 11:17:05 EDT 2019
New submission from serge-sans-paille <serge.guelton at telecom-bretagne.eu>:
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.
----------
messages: 355656
nosy: serge-sans-paille
priority: normal
severity: normal
status: open
title: Symbol resolution conflict when embeding python in an application using libedit
type: crash
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38634>
_______________________________________
More information about the New-bugs-announce
mailing list