Message 103267 - Python tracker (original) (raw)
With that patch, I'm still getting the core dump (with the traceback looking pretty much as it did before).
When I traced through this with gdb, I didn't see stdscr getting set to 0 at any point. Unless I missed any, the only curses library calls made (in sequence) were:
- initscr() -> new window win (=stdscr, presumably)
- putwin(file, win)
- getwin(file) -> new window win2, with win2 != win
- freewin(win2) -> segfault
and presumably without the segfault, there would have been calls to freewin(win) and endwin() too.
And I'm at a complete loss to explain why importing rlcompleter makes a difference. (importing readline also causes the segfault). I don't think it's just to do with random memory changes, since if I replace the readline or rlcompleter import by any other randomly chosen python module then there's no segfault.