[issue7384] curses crash on FreeBSD
Mark Dickinson
report at bugs.python.org
Fri Apr 16 00:20:10 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
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:
1. initscr() -> new window win (=stdscr, presumably)
2. putwin(file, win)
3. getwin(file) -> new window win2, with win2 != win
4. 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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7384>
_______________________________________
More information about the Python-bugs-list
mailing list