Bug 696595

Summary: yast2 segfaults when user is too fast with bootloader UI
Product: [openSUSE] openSUSE 11.4 Reporter: Martin Vidner <mvidner>
Component: YaST2Assignee: Thomas Göttlicher <tgoettlicher>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P2 - High CC: snwint, tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.4   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Vidner 2011-05-27 12:52:13 UTC
When trying to reproduce bnc#694520, Steffen found a different crasher ;-)

"""The bug can be triggered choosing 'Other->Propose New Configuration' twice
(shortcut: Alt-E Alt-P, tested with textmode yast).

The trick seems to be to choose the option a second time _before_ yast has
finished the proposal (that is, be quick). On Bernhards test machine yast
takes its time, so this bug can be easily triggered. But it even happens on
my 11.3 workstation if you try hard enough."""

The corresponding logs are attachment 431805 [details] (y2log) and attachment 431807 [details] (backtrace).

It crashes in one of the several dynamic_casts in YCPEvent::eventId(). I don't see any obvious mistake in the code so I'd probably use valgrind to rule out memory bugs.
Comment 1 Thomas Göttlicher 2011-06-15 10:00:09 UTC
Fixed in yast2-ncurses version 2.21.4.