Bug 166106 - Samba Config Module Crashes when "Apply" is pressed
Summary: Samba Config Module Crashes when "Apply" is pressed
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_samba (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Jan Schaefer
URL:
Keywords:
: 172118 179008 180937 181633 184934 185164 188779 189238 190415 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-09 05:02 UTC by Casey Link
Modified: 2009-09-04 00:59 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Fix crash in KCM Samba (601 bytes, patch)
2009-03-30 03:22 UTC, Christoph Feck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Link 2008-07-09 05:02:30 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc (Gentoo 4.3.1 p1.0) 4.3.1  
OS:                Linux

NOTE: This is _NOT_ the same as bug 160123

To reproduce:

1) $ sudo kcmshell4 kcmsambaconf
2) Change a setting
3) Click Apply


Application: KDE Control Module (kcmshell4), signal SIGABRT
[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb6176b30 (LWP 27021)]
[KCrash handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb6401525 in raise () from /lib/libc.so.6
#8  0xb6402d41 in abort () from /lib/libc.so.6
#9  0xb730bae7 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfa4599c "ASSERT failure in QList<T>::operator[]: \"index out of range\", file /usr/include/qt4/QtCore/qlist.h, line 401") at global/qglobal.cpp:2058
#10 0xb730bbc9 in qFatal (
    msg=0xb746a024 "ASSERT failure in %s: \"%s\", file %s, line %d")
    at global/qglobal.cpp:2260
#11 0xb730bc1c in qt_assert_x (where=0xb4accb39 "QList<T>::operator[]", 
    what=0xb4ac485c "index out of range", 
    file=0xb4ac365c "/usr/include/qt4/QtCore/qlist.h", line=401)
    at global/qglobal.cpp:1836
#12 0xb4aaffeb in DictManager::save (this=0x8b5b560, share=0x8980688, 
    globalValue=false, defaultValue=true)
    at /usr/include/qt4/QtCore/qlist.h:401
#13 0xb4a40d4c in KcmSambaConf::save (this=0x89c9ab8)
    at /share/devel/kdesvn/kdenetwork/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp:1367
#14 0xb7575c6a in KCModuleProxy::save (this=0x8978468)
    at /share/devel/kdesvn/kdelibs/kutils/kcmoduleproxy.cpp:276
#15 0xb756fd10 in KCMultiDialogPrivate::apply (this=0x89327c8)
    at /share/devel/kdesvn/kdelibs/kutils/kcmultidialog.cpp:192
#16 0xb7572743 in KCMultiDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfa47d28)
    at /share/devel/kdesvn/build/kdelibs/kutils/kcmultidialog.moc:86
#17 0xb7f280aa in KCMShellMultiDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=77, _a=0xbfa47d28)
    at /share/devel/kdesvn/build/kdebase/runtime/kcmshell/main.moc:115
#18 0xb742767a in QMetaObject::activate (sender=0x8932710, 
    from_signal_index=<value optimized out>, to_signal_index=42, argv=0x0)
    at kernel/qobject.cpp:3001
#19 0xb7427e12 in QMetaObject::activate (sender=0x8932710, m=0xb7a37d44, 
    local_signal_index=7, argv=0x0) at kernel/qobject.cpp:3071
#20 0xb7819c17 in KDialog::applyClicked (this=0x8932710)
    at /share/devel/kdesvn/build/kdelibs/kdeui/kdialog.moc:235
#21 0xb781ca55 in KDialog::slotButtonClicked (this=0x8932710, button=8)
    at /share/devel/kdesvn/kdelibs/kdeui/dialogs/kdialog.cpp:848
#22 0xb781cce4 in KDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbfa47f4c)
    at /share/devel/kdesvn/build/kdelibs/kdeui/kdialog.moc:181
#23 0xb78e9b5a in KPageDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbfa47f4c)
    at /share/devel/kdesvn/build/kdelibs/kdeui/kpagedialog.moc:63
#24 0xb757268a in KCMultiDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbfa47f4c)
    at /share/devel/kdesvn/build/kdelibs/kutils/kcmultidialog.moc:77
#25 0xb7f280aa in KCMShellMultiDialog::qt_metacall (this=0x8932710, 
    _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbfa47f4c)
    at /share/devel/kdesvn/build/kdebase/runtime/kcmshell/main.moc:115
#26 0xb742767a in QMetaObject::activate (sender=0x8932818, 
    from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0)
    at kernel/qobject.cpp:3001
#27 0xb7427e12 in QMetaObject::activate (sender=0x8932818, m=0xb7500970, 
    local_signal_index=0, argv=0xbfa47f4c) at kernel/qobject.cpp:3071
#28 0xb742d593 in QSignalMapper::mapped (this=0x8932818, _t1=8)
    at .moc/debug-shared/moc_qsignalmapper.cpp:93
#29 0xb742dd3d in QSignalMapper::map (this=0x8932818, sender=0x8941228)
    at kernel/qsignalmapper.cpp:277
#30 0xb742df7e in QSignalMapper::map (this=0x8932818)
    at kernel/qsignalmapper.cpp:268
#31 0xb742e097 in QSignalMapper::qt_metacall (this=0x8932818, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfa480cc)
    at .moc/debug-shared/moc_qsignalmapper.cpp:80
#32 0xb742767a in QMetaObject::activate (sender=0x8941228, 
    from_signal_index=<value optimized out>, to_signal_index=30, argv=0x0)
    at kernel/qobject.cpp:3001
#33 0xb7427b80 in QMetaObject::activate (sender=0x8941228, m=0xb6fbd364, 
    from_local_signal_index=2, to_local_signal_index=3, argv=0xbfa480cc)
    at kernel/qobject.cpp:3091
#34 0xb6de6611 in QAbstractButton::clicked (this=0x8941228, _t1=false)
    at .moc/debug-shared/moc_qabstractbutton.cpp:185
#35 0xb6b16869 in QAbstractButtonPrivate::emitClicked (this=0x8943150)
    at widgets/qabstractbutton.cpp:543
#36 0xb6b184f4 in QAbstractButtonPrivate::click (this=0x8943150)
    at widgets/qabstractbutton.cpp:536
#37 0xb6b18786 in QAbstractButton::mouseReleaseEvent (this=0x8941228, 
    e=0xbfa4875c) at widgets/qabstractbutton.cpp:1112
#38 0xb6808b42 in QWidget::event (this=0x8941228, event=0xbfa4875c)
    at kernel/qwidget.cpp:6927
#39 0xb6b1670e in QAbstractButton::event (this=0x8941228, e=0xbfa4875c)
    at widgets/qabstractbutton.cpp:1074
#40 0xb6bc4cd0 in QPushButton::event (this=0x8941228, e=0xbfa4875c)
    at widgets/qpushbutton.cpp:658
#41 0xb67aa5ec in QApplicationPrivate::notify_helper (this=0x88a4100, 
    receiver=0x8941228, e=0xbfa4875c) at kernel/qapplication.cpp:3772
#42 0xb67b213f in QApplication::notify (this=0xbfa49010, receiver=0x8941228, 
    e=0xbfa4875c) at kernel/qapplication.cpp:3501
#43 0xb78b949d in KApplication::notify (this=0xbfa49010, receiver=0x8941228, 
    event=0xbfa4875c)
    at /share/devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:311
#44 0xb7410ff9 in QCoreApplication::notifyInternal (this=0xbfa49010, 
    receiver=0x8941228, event=0xbfa4875c) at kernel/qcoreapplication.cpp:587
#45 0xb67b350f in QApplicationPrivate::sendMouseEvent (receiver=0x8941228, 
    event=0xbfa4875c, alienWidget=0x8941228, nativeWidget=0x8932710, 
    buttonDown=0xb6fc3c60, lastMouseReceiver=@0xb6fc3c64)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#46 0xb6822493 in QETWidget::translateMouseEvent (this=0x8932710, 
    event=0xbfa48c58) at kernel/qapplication_x11.cpp:4133
#47 0xb6821288 in QApplication::x11ProcessEvent (this=0xbfa49010, 
    event=0xbfa48c58) at kernel/qapplication_x11.cpp:3255
#48 0xb6849e21 in QEventDispatcherX11::processEvents (this=0x88a1c70, flags=
      {i = -1079735048}) at kernel/qeventdispatcher_x11.cpp:134
#49 0xb741020d in QEventLoop::processEvents (this=0xbfa48d6c, 
    flags=@0xbfa48d34) at kernel/qeventloop.cpp:149
#50 0xb74103a1 in QEventLoop::exec (this=0xbfa48d6c, flags=@0xbfa48d74)
    at kernel/qeventloop.cpp:200
#51 0xb6c4d6a7 in QDialog::exec (this=0x8932710) at dialogs/qdialog.cpp:453
#52 0xb7f2b4b6 in kdemain (_argc=2, _argv=0xbfa49264)
    at /share/devel/kdesvn/kdebase/runtime/kcmshell/main.cpp:275
#53 0x08048802 in main (argc=)
    at /share/devel/kdesvn/build/kdebase/runtime/kcmshell/kcmshell4_dummy.cpp:3
#0  0xffffe424 in __kernel_vsyscall ()
Comment 1 Nicolas L. 2008-07-20 02:08:22 UTC
still valid for me on kde 4.1 Rc1
Comment 2 Nicolas L. 2008-07-20 02:14:49 UTC
i have this on Konsole too: 

ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/lib/qt4/include/QtCore/qlist.h, line 401                                             
kcmshell(32207)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/etc/samba/smb.conf" sub_entry: 0x0 
Comment 3 Pieter 2008-09-29 20:37:33 UTC
Still valid for me in KDE 4.1.  Bug report

Application: KDE Control Module (kcmshell4), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7fe130bc57a0 (LWP 7709)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#4  0x00007fe13049c095 in raise () from /lib/libc.so.6
#5  0x00007fe13049daf0 in abort () from /lib/libc.so.6
#6  0x00007fe12f43a055 in qt_message_output () from /usr/lib/libQtCore.so.4
#7  0x00007fe12f43a19d in qFatal () from /usr/lib/libQtCore.so.4
#8  0x00007fe12637275f in ?? ()
   from /usr/lib/kde4/lib/kde4/kcm_kcmsambaconf.so
#9  0x00007fe12637639f in ?? ()
   from /usr/lib/kde4/lib/kde4/kcm_kcmsambaconf.so
#10 0x00007fe12632bdcf in ?? ()
   from /usr/lib/kde4/lib/kde4/kcm_kcmsambaconf.so
#11 0x00007fe12fc69a7a in KCModuleProxy::save ()
   from /usr/lib/kde4/lib/libkutils.so.4
#12 0x00007fe12fc661df in ?? () from /usr/lib/kde4/lib/libkutils.so.4
#13 0x00007fe12fc6788a in KCMultiDialog::qt_metacall ()
   from /usr/lib/kde4/lib/libkutils.so.4
#14 0x00007fe1307d2ea5 in ?? ()
   from /usr/lib/kde4/lib/libkdeinit4_kcmshell4.so
#15 0x00007fe12f5378b6 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#16 0x00007fe130017a6a in KDialog::slotButtonClicked ()
   from /usr/lib/kde4/lib/libkdeui.so.5
#17 0x00007fe1300198bb in KDialog::qt_metacall ()
   from /usr/lib/kde4/lib/libkdeui.so.5
#18 0x00007fe1300b55f6 in KPageDialog::qt_metacall ()
   from /usr/lib/kde4/lib/libkdeui.so.5
#19 0x00007fe12fc677f5 in KCMultiDialog::qt_metacall ()
   from /usr/lib/kde4/lib/libkutils.so.4
#20 0x00007fe1307d2ea5 in ?? ()
   from /usr/lib/kde4/lib/libkdeinit4_kcmshell4.so
#21 0x00007fe12f5378b6 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#22 0x00007fe12f53b90e in QSignalMapper::mapped ()
   from /usr/lib/libQtCore.so.4
#23 0x00007fe12f53c0e0 in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#24 0x00007fe12f53c3ac in QSignalMapper::qt_metacall ()
   from /usr/lib/libQtCore.so.4
#25 0x00007fe12f5378b6 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#26 0x00007fe12efb2f97 in QAbstractButton::clicked ()
   from /usr/lib/libQtGui.so.4
#27 0x00007fe12ed45c7b in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007fe12ed470f5 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007fe12ed47321 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#30 0x00007fe12ea85f50 in QWidget::event () from /usr/lib/libQtGui.so.4
#31 0x00007fe12ed45e80 in QAbstractButton::event ()
   from /usr/lib/libQtGui.so.4
#32 0x00007fe12eddb1a8 in QPushButton::event () from /usr/lib/libQtGui.so.4
#33 0x00007fe12ea38acf in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#34 0x00007fe12ea3ae89 in QApplication::notify () from /usr/lib/libQtGui.so.4
#35 0x00007fe13008fea1 in KApplication::notify ()
   from /usr/lib/kde4/lib/libkdeui.so.5
#36 0x00007fe12f5236b9 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#37 0x00007fe12ea3e325 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#38 0x00007fe12ea9d1b6 in ?? () from /usr/lib/libQtGui.so.4
#39 0x00007fe12ea9c0ab in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#40 0x00007fe12eac23d3 in ?? () from /usr/lib/libQtGui.so.4
#41 0x00007fe12b7f93d4 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#42 0x00007fe12b7fc6e5 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0x00007fe12b7fcbcb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#44 0x00007fe12f54c9df in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#45 0x00007fe12eac220f in ?? () from /usr/lib/libQtGui.so.4
#46 0x00007fe12f522b35 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#47 0x00007fe12f522c8b in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#48 0x00007fe12ee4fdec in QDialog::exec () from /usr/lib/libQtGui.so.4
#49 0x00007fe1307d2d22 in kdemain ()
   from /usr/lib/kde4/lib/libkdeinit4_kcmshell4.so
#50 0x00007fe1304881c4 in __libc_start_main () from /lib/libc.so.6
#51 0x0000000000400649 in _start ()
#0  0x00007fe1305074a5 in waitpid () from /lib/libc.so.6
Comment 4 Dario Andres 2008-12-06 04:45:00 UTC
*** Bug 172118 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2008-12-29 00:53:19 UTC
*** Bug 179008 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas L. 2009-01-05 22:27:49 UTC
reproduced on kde 4.2 beta2
Comment 7 Christophe Marin 2009-01-22 01:06:29 UTC
*** Bug 180937 has been marked as a duplicate of this bug. ***
Comment 8 Fahad Alduraibi 2009-02-16 19:42:09 UTC
same thing on KDE 4.1.4 and 4.2.0 (Fedora 10)

cannot use it to do any changes, it crashes all the time when applying
Comment 9 Pino Toscano 2009-03-15 12:46:35 UTC
*** Bug 185164 has been marked as a duplicate of this bug. ***
Comment 10 Pino Toscano 2009-03-15 12:47:08 UTC
*** Bug 181633 has been marked as a duplicate of this bug. ***
Comment 11 Pino Toscano 2009-03-15 13:04:36 UTC
*** Bug 184934 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2009-03-30 03:22:19 UTC
Created attachment 32471 [details]
Fix crash in KCM Samba

This patch should fix the crash when saving the Samba settings.

I am, however, not sure if just skipping the "setValue" call is the right way to do this.

Maybe the function should be called with a default/empty value, or with parameter "defaultValue" set to true.
Comment 13 Pino Toscano 2009-04-04 11:26:46 UTC
*** Bug 188779 has been marked as a duplicate of this bug. ***
Comment 14 Jan Schaefer 2009-04-04 19:03:13 UTC
SVN commit 949232 by schafer:

Fixed a crash that was caused, when options set in the smb.conf do
not exist in the corresponding ComboBoxes of the GUI. 
BUG: 166106


 M  +2 -1      common.cpp  
 M  +7 -3      dictmanager.cpp  
 M  +6 -6      kcmsambaconf.cpp  
 M  +0 -1      sambashare.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=949232
Comment 15 Jan Schaefer 2009-04-04 19:04:13 UTC
SVN commit 949233 by schafer:

Fixed a crash that was caused, when options set in the smb.conf do
not exist in the corresponding ComboBoxes of the GUI.
BUG: 166106


 M  +2 -1      common.cpp  
 M  +7 -3      dictmanager.cpp  
 M  +6 -6      kcmsambaconf.cpp  
 M  +0 -1      sambashare.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=949233
Comment 16 Christoph Feck 2009-04-09 23:41:45 UTC
*** Bug 189238 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-04-14 17:32:51 UTC
Could bug 180392 be related to this (and therefore also fixed by this fix?) Thanks
Comment 18 Christoph Feck 2009-04-14 18:17:16 UTC
No, bug 180392 crashes in fileshare_propsdlgplugin.so, while this one crashed in kcm_kcmsambaconf.so.
Comment 19 Christoph Feck 2009-04-24 00:33:00 UTC
*** Bug 190415 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2009-09-04 00:59:12 UTC
Bug 206082 seems to be related tot his but in 4.3.x, I wonder if it is a new case of the commit didn't fixed the issue properly. Thanks