[issue6243] getkey() can segfault in combination with curses.ungetch()

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Backported to 2.6-maint in commit 78324. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243 ___

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-08-27 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Andrew - do you still feel responsible for curses? -- assignee: - akuchling nosy: +akuchling, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Verified Bus Error with code snippet in python 2.7 and 3.1 trunks r73552, e.g.: (gdb) where #0 0x925f6f30 in strlen () #1 0x0005ea10 in PyString_FromString (str=0x0) at Objects/stringobject.c:125 #2 0x003c1710 in PyCursesWindow_GetKey

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Trundle's original patch against r73301 still works currently, but I made a minor tweak and rediff'd. The attached patch is against 2.7 - r73552. I added knp usage to the NetBSD #ifdef region so a) the compiler doesn't complain about unused

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: Removed file: http://bugs.python.org/file14362/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243 ___

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Sorry -- bad patch, uploading correct one. -- Added file: http://bugs.python.org/file14363/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Another patch for the same code change but against the 3.1 branch. -- versions: +Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14364/issue6243-py3.1-cursesmodule.diff ___ Python

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-08 Thread Trundle
New submission from Trundle andy-pyt...@hammerhartes.de: Snippet to reproduce: import curses scr = curses.initscr() curses.ungetch(1025) scr.getkey() This is because `keyname()` in `PyCursesWindow_GetKey()` returns NULL which is passed to `PyString_FromString()` then. The attached patch

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-08 Thread Sebastian Ramacher
Changes by Sebastian Ramacher sebasti...@users.sourceforge.net: -- nosy: +sebastinas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243 ___ ___