Bug 239992 - Python module segfaults after popHelpLine
Summary: Python module segfaults after popHelpLine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: newt
Version: 6
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-14 07:49 UTC by George Goh
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 0.52.7-1.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-17 16:14:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Code that causes segfault. (238 bytes, text/plain)
2007-05-14 07:53 UTC, George Goh
no flags Details
Code that solves the problem. (263 bytes, text/plain)
2007-05-14 07:53 UTC, George Goh
no flags Details

Description George Goh 2007-05-14 07:49:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)

Description of problem:
When creating one snackScreen after another continuously, I reliably get a segfault after 168 runs of the attached code(try.py). However, using try2.py, I was able to get 500 runs with no problems.

This bug was quite obscure because it did not show up immediately. In this example it does take a large number of runs for the bug to surface. Perhaps a check should be made to check if a helpline already exists before letting the caller pushHelpLine.

Version-Release number of selected component (if applicable):
newt-0.52.2-9

How reproducible:
Always


Steps to Reproduce:
1.Run try.py
2.Notice that it segfaults after 167 runs
3.Run try2.py
4.No segfaults.

Actual Results:


Expected Results:


Additional info:

Comment 1 George Goh 2007-05-14 07:53:05 UTC
Created attachment 154624 [details]
Code that causes segfault.

Comment 2 George Goh 2007-05-14 07:53:40 UTC
Created attachment 154625 [details]
Code that solves the problem.

Comment 3 Miroslav Lichvar 2007-05-14 15:01:49 UTC
Thanks for the report.

SnackScreen with each initialization calls pushHelpLine to have the default help
string, the stack keeps growing and there is no check for overflow.

Comment 4 Miroslav Lichvar 2007-05-15 10:47:27 UTC
Fixed in upstream CVS, will be in the next release.

Comment 5 Miroslav Lichvar 2007-06-15 13:23:04 UTC
Fixed in newt-0.52.7-1.fc8.

Comment 6 Fedora Update System 2007-08-09 16:48:48 UTC
newt-0.52.7-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2007-08-17 16:14:00 UTC
newt-0.52.7-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.