This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serge-sans-paille
Recipients serge-sans-paille
Date 2019-10-29.15:17:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572362225.21.0.644355885677.issue38634@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-10-29 15:17:05serge-sans-paillesetrecipients: + serge-sans-paille
2019-10-29 15:17:05serge-sans-paillesetmessageid: <1572362225.21.0.644355885677.issue38634@roundup.psfhosted.org>
2019-10-29 15:17:05serge-sans-paillelinkissue38634 messages
2019-10-29 15:17:04serge-sans-paillecreate