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.

classification
Title: segfault in curses.panel with userptr()
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz, virtualphtn
Priority: normal Keywords:

Created on 2006-01-09 05:37 by virtualphtn, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py virtualphtn, 2006-01-09 05:37 simple testcase
Messages (2)
msg27256 - (view) Author: Tom Quetchenbach (virtualphtn) Date: 2006-01-09 05:37
If a curses.panel object is created with
curses.panel.new_panel() and then its userptr() method
is called before set_userptr(), the Python interpreter
segfaults. Raising an exception or returning None would
probably be better.

Tested with Python 2.4.2 on Linux 2.6.14 (Debian, Intel
Celeron). (Also crashes Python 2.3.5 on the same machine.)

Simple testcase is attached.
msg27257 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-09 06:29
Logged In: YES 
user_id=33168

Thanks for the report!

Committed revision 41982.
Committed revision 41983. (2.4)
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42776
2006-01-09 05:37:42virtualphtncreate