[Bug 382771] New: Segfault in installation "set time" dialog
https://bugzilla.novell.com/show_bug.cgi?id=382771 Summary: Segfault in installation "set time" dialog Product: openSUSE 11.0 Version: Beta 1 Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: sh@suse.de ReportedBy: sh@novell.com QAContact: jsrain@novell.com Found By: Development Installation -> time zone -> set time Installation crashes upon pressing Alt-N. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c1 --- Comment #1 from Stefan Hundhammer <sh@novell.com> 2008-04-23 07:25:35 MST --- Created an attachment (id=209889) --> (https://bugzilla.novell.com/attachment.cgi?id=209889) y2logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c2 --- Comment #2 from Stefan Hundhammer <sh@novell.com> 2008-04-23 07:33:20 MST --- Back trace: Frame 0: /usr/lib/liby2.so.2 log_backtrace() Frame 1: /usr/lib/liby2.so.2 signal_handler(int) Frame 2: [0xffffe400] Frame 3: /usr/lib/libyui.so.3 YDialog::waitForEvent(int) Frame 4: /usr/lib/YaST2/plugin/libpy2UI.so.2 YCP_UI::doUserInput(char const*, long, bool, bool) Frame 5: /usr/lib/YaST2/plugin/libpy2UI.so.2 YCP_UI::UserInput() Frame 6: /usr/lib/YaST2/plugin/libpy2UI.so.2 YUINamespace::UserInput() Frame 7: /usr/lib/YaST2/plugin/libpy2UI.so.2 YUIFunction::evaluateCall_int() Frame 8: /usr/lib/YaST2/plugin/libpy2UI.so.2 YCPBuiltinCaller::call() Frame 9: /usr/lib/libyui.so.3 YUI::uiThreadMainLoop() Frame 10: /usr/lib/libyui.so.3 start_ui_thread(void*) Frame 11: /lib/libpthread.so.0 [0xb7cd9ff0] Frame 12: /lib/libc.so.6(clone+0x5e) [0xb79f0ffe] == End of back trace === 2008-04-23 09:21:08 <3> 10.10.101.82(3558) [liby2] genericfrontend.cc(signal_handler):149 got signal 11 at YCP file timezone/dialogs.ycp:243 timezone/dialogs.ycp: 230 if (!dt_widgets) 231 { 232 foreach (symbol widget, [`hour, `minute, `second, `day, `month, `year],{ 233 UI::ChangeWidget (`id(widget), `ValidChars, "0123456789"); 234 UI::ChangeWidget (`id(widget), `InputMaxLength, 235 widget == `year ? 4 : 2); 236 }); 237 } 238 239 240 any ret = nil; 241 repeat 242 { 243 ret = UI::UserInput(); ^^^^^^^^^^^^^^^^^^^^^^ 244 y2debug ("UserInput ret:%1", ret ); 245 if (ret == `ntp || ret == `manual) 246 { 247 ntp_used = (ret == `ntp); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c3 Stefan Hundhammer <sh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Critical --- Comment #3 from Stefan Hundhammer <sh@novell.com> 2008-04-23 07:50:43 MST --- Duh. Not only is this easy to reproduce, it's a general problem of each case of discarding events from a foreign dialog. Bumping severity. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c4 Stefan Hundhammer <sh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Stefan Hundhammer <sh@novell.com> 2008-04-23 07:55:42 MST --- My fault. In a recent change, YWidgetEvent::widget() was moved up to the YEvent base class. The dynamic_cast was no longer necessary, but unfortunately the check for null event pointers still is. Fix: Index: YDialog.cc =================================================================== --- YDialog.cc (revision 46984) +++ YDialog.cc (working copy) @@ -290,7 +290,7 @@ // If there was no event or if filterInvalidEvents() discarded // an invalid event, go back and get the next one. - if ( event->widget() ) + if ( event && event->widget() ) { YPushButton * button = dynamic_cast<YPushButton *> ( event->widget() ); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 Stefan Hundhammer <sh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Segfault in installation "set time" dialog |YaST2 segfaults upon "discarding event from | |foreign dialog" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c5 --- Comment #5 from Stefan Hundhammer <sh@novell.com> 2008-04-23 08:01:22 MST --- This bug may appear in many other situations as well. Look for log lines like this: [ui] YDialog.cc(filterInvalidEvents):400 Discarding event from widget from foreign dialog -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382771 User sh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382771#c6 --- Comment #6 from Stefan Hundhammer <sh@novell.com> 2008-04-23 08:14:09 MST --- Fixed with yast2-libyui-2.16.46. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com