[Bug 466791] New: YaST Segfault when configuring wireless network
https://bugzilla.novell.com/show_bug.cgi?id=466791 User yxu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c1 Summary: YaST Segfault when configuring wireless network Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: i586 OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: yxu@novell.com QAContact: jsrain@novell.com Found By: Other Trying to configure wireless network at the company using YaST-> Network Devices -> Network Settings, select Wireless Network Connection, click edit, select DHCP, click next button, select method managed, enter ESSID, select authentication method WPA-EAP, and now if I click expert settings or click next, or click back, this network configuration window will be gone, and an xmessage will pop up, saying "/sbin/yast2: line 421: 6162 Segmentation fault". The system is openSUSE11.0. Online update. Cassiopia:~ # cat /etc/issue Welcome to openSUSE 11.0 (i586) - Kernel \r (\l). Cassiopia:~ # uname -a Linux Cassiopia 2.6.25.5-1.1-pae #1 SMP 2008-06-07 01:55:22 +0200 i686 i686 i386 GNU/Linux xmessage and y2log will be attached. -- 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=466791 User yxu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c1 --- Comment #1 from Yi Xu <yxu@novell.com> 2009-01-16 06:14:20 MST --- Created an attachment (id=265639) --> (https://bugzilla.novell.com/attachment.cgi?id=265639) xmessage -- 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=466791 User yxu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c2 --- Comment #2 from Yi Xu <yxu@novell.com> 2009-01-16 06:17:00 MST --- Created an attachment (id=265641) --> (https://bugzilla.novell.com/attachment.cgi?id=265641) y2log -- 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=466791 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mzugec@novell.com |ovo.novell.com | -- 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=466791 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c3 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |yxu@novell.com --- Comment #3 from Michal Zugec <mzugec@novell.com> 2009-01-19 00:43:51 MST --- Can you reproduce this with openSUSE 11.1? -- 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=466791 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c4 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kmachalkova@novell.com, | |mfabian@novell.com --- Comment #4 from Katarina Machalkova <kmachalkova@novell.com> 2009-01-19 02:13:52 MST --- Very likely not a YaST bug (not even Qt UI bug), the segfault seems to happen in scim input plugin (Cc-ing Mike) Frame 3: /usr/lib/libQtCore.so.4 QCoreApplication::notifyInternal(QObject*, QEvent*) Frame 4: /usr/lib/libQtGui.so.4 QInputContext::sendEvent(QInputMethodEvent const&) Frame 5: /usr/lib/libQtGui.so.4 QInputContext::sendEvent(QInputMethodEvent const&) Frame 6: /usr/lib/qt4/plugins/inputmethods/im-scim-bridge.so ScimBridgeClientIMContextImpl::update_preedit() Frame 7: /usr/lib/qt4/plugins/inputmethods/im-scim-bridge.so ScimBridgeClientIMContextImpl::focus_out() Frame 8: /usr/lib/qt4/plugins/inputmethods/im-scim-bridge.so ScimBridgeClientIMContextImpl::widgetDestroyed(QWidget*) Frame 9: /usr/lib/qt4/plugins/inputmethods/libqimsw-multi.so [0xb4dc8bb9] Frame 10: /usr/lib/libQtGui.so.4 QWidget::destroy(bool, bool) Frame 11: /usr/lib/libQtGui.so.4 QWidget::~QWidget() -- 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=466791 User yxu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c5 Yi Xu <yxu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|yxu@novell.com | --- Comment #5 from Yi Xu <yxu@novell.com> 2009-01-20 03:58:27 MST --- (In reply to comment #3)
Can you reproduce this with openSUSE 11.1?
I don't know. I am not going to install openSUSE11.1 on the machine. -- 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=466791 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c6 Peng Wu <pwu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |dmueller@novell.com Component|YaST2 |YaST2 Product|openSUSE 11.0 |openSUSE 11.1 OS/Version|openSUSE 11.0 |openSUSE 11.1 --- Comment #6 from Peng Wu <pwu@novell.com> 2009-02-04 01:37:00 MST --- I can reproduce it on openSUSE 11.1. And also on SLED11 RC1(my college's laptop). Adding Qt4 maintainner Dirk Mueller <dmueller@novell.com> to CC list. As the top several back trace lines are in libqt4. Reproduce Steps: Log in as normal user, using su to switch to root user, run yast2 --qt lan, select Wireless Network Connection, click edit, select DHCP, click next button, select method managed, enter ESSID, select authentication method WPA-EAP, and now if I click click next, then click back, this network configuration window will be gone. Increasing importance to P2, and change product to openSUSE 11.1. Hi Mike, As it also can be reproduced in SLED11, should we change product to SLED11? -- 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.
From Comment #4: I guess that QInputContext will hold a focusWidget (which has focus). In Qt,
https://bugzilla.novell.com/show_bug.cgi?id=466791 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c7 --- Comment #7 from Peng Wu <pwu@novell.com> 2009-02-04 01:50:35 MST --- the ~QWidget destructor will call QInputContext::widgetDestroyed at last, scim-bridge will modify internal state, and refresh the UI state. But the problem is that when QInputContext refresh the UI state, the QWidget has gone, application will crash. From QWidget::~QWidget(), we see it calls clearFocus(), which intend to clear the focusWidget in QInputContext. But look into the clearFocus function, I got confused. Here is the code:
void QWidget::clearFocus() { QWidget *w = this; while (w && w->d_func()->focus_child == this) { w->d_func()->focus_child = 0; w = w->parentWidget(); } .. I think the above code maybe confuse hasFocus to return wrong result. if (hasFocus()) { // Update proxy state QApplicationPrivate::setFocusWidget(0, Qt::OtherFocusReason);
And finally it must call qic->setFocusWidget(NULL), to prevent the above crash. But it seems not. -- 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=466791 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466791#c8 --- Comment #8 from Peng Wu <pwu@novell.com> 2009-02-04 01:56:23 MST --- Created an attachment (id=269897) --> (https://bugzilla.novell.com/attachment.cgi?id=269897) A patch for qt4 to prevent yast crash. This patch run a seperate check on entry to QWidget::~QWidget as early as possible. First it check whether the QWidget or its children widgets has focus, if so it will set the focusWidget of QInputContext to NULL, to prevent the crash. Hi Dirk, Could you review this patch, add it to libqt4, or make a better patch fixes the problems in clearFocus()? -- 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