Bug 174126 - file sharing causing error
Summary: file sharing causing error
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fileshare (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 178494 181388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-02 23:22 UTC by Stan Perdue
Modified: 2009-01-20 18:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Perdue 2008-11-02 23:22:47 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    Unspecified

When I right-click and go to PROPERTIES; then to SHARE and attempt to add a folder/directory, I get the following:


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 0x7f67f2a386f0 (LWP 13652)]
(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  0x00007f67f2306fd5 in raise () from /lib/libc.so.6
#5  0x00007f67f2308b43 in abort () from /lib/libc.so.6
#6  0x00007f67f12586b5 in qt_message_output () from /usr/lib/libQtCore.so.4
#7  0x00007f67f12587fd in qFatal () from /usr/lib/libQtCore.so.4
#8  0x00007f67e8275b38 in ?? () from /usr/lib/kde4/kcm_fileshare.so
#9  0x00007f67e827accc in ?? () from /usr/lib/kde4/kcm_fileshare.so
#10 0x00007f67e827b5dc in ?? () from /usr/lib/kde4/kcm_fileshare.so
#11 0x00007f67e827f9f2 in ?? () from /usr/lib/kde4/kcm_fileshare.so
#12 0x00007f67e827fdae in ?? () from /usr/lib/kde4/kcm_fileshare.so
#13 0x00007f67e823c35e in ?? () from /usr/lib/kde4/kcm_fileshare.so
#14 0x00007f67e823c3dc in ?? () from /usr/lib/kde4/kcm_fileshare.so
#15 0x00007f67e823c6d4 in ?? () from /usr/lib/kde4/kcm_fileshare.so
#16 0x00007f67e823c1d4 in ?? () from /usr/lib/kde4/kcm_fileshare.so
#17 0x00007f67f135d134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#18 0x00007f67f0df1737 in QAbstractButton::clicked ()
   from /usr/lib/libQtGui.so.4
#19 0x00007f67f0b7588b in ?? () from /usr/lib/libQtGui.so.4
#20 0x00007f67f0b77452 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f67f0b776a5 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#22 0x00007f67f08bd359 in QWidget::event () from /usr/lib/libQtGui.so.4
#23 0x00007f67f086ac3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#24 0x00007f67f087325a in QApplication::notify () from /usr/lib/libQtGui.so.4
#25 0x00007f67f1efbb8b in KApplication::notify () from /usr/lib/libkdeui.so.5
#26 0x00007f67f1348d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#27 0x00007f67f08725f8 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#28 0x00007f67f08d6c19 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f67f08d5637 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#30 0x00007f67f08fd2f4 in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f67ed5e0d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#32 0x00007f67ed5e450d in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x00007f67ed5e46cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#34 0x00007f67f137115f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#35 0x00007f67f08fca9f in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f67f1347682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#37 0x00007f67f134780d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#38 0x00007f67f0c84015 in QDialog::exec () from /usr/lib/libQtGui.so.4
#39 0x00007f67f264e48a in kdemain () from /usr/lib/libkdeinit4_kcmshell4.so
#40 0x00007f67f22f2466 in __libc_start_main () from /lib/libc.so.6
#41 0x0000000000400669 in _start ()
#0  0x00007f67f237bf15 in waitpid () from /lib/libc.so.6
Comment 1 Oliver Putz 2008-11-03 10:55:46 UTC
I can confirm this bug in KDE-4.1.71

Steps to reproduce:

1) Open dolphin
2) Right click on a folder
3) Go to Share->Configure File sharing
4) Hit add to add another folder
5) See kcmshell4 crash with the backtrace below


Application: KDE Control Module (kcmshell4), signal SIGABRT

Thread 1 (Thread 0xb62d0700 (LWP 15477)):
[KCrash Handler]
#5  0xffffe424 in __kernel_vsyscall ()
#6  0xb659b690 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0xb659ced8 in *__GI_abort () at abort.c:88
#8  0xb745032f in qt_message_output (msgType=QtFatalMsg, buf=0xbfc69010 "ASSERT: \"i >= 0 && i < size()\" in file /usr/include/qt4/QtCore/qstring.h, line 652") at global/qglobal.cpp:2108
#9  0xb74503ee in qFatal (msg=0xb7599e7c "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2309
#10 0xb745072f in qt_assert (assertion=0xb7fcd5f5 "i >= 0 && i < size()", file=0xb7fcbc60 "/usr/include/qt4/QtCore/qstring.h", line=652) at global/qglobal.cpp:1878
#11 0xb7f24a0e in KNFSShare::isDirectoryShared (this=0x8166dc0, path=@0x81530c0) at /usr/include/qt4/QtCore/qstring.h:652
#12 0xb4a3fcb0 in PropertiesPage::load (this=0x8153028)
    at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing-4.1.71/filesharing/advanced/propsdlgplugin/propertiespage.cpp:125
#13 0xb4a4006e in PropertiesPage (this=0x8153028, parent=0x812d4a8, items=@0xbfc6b178, enterUrl=true)
    at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing-4.1.71/filesharing/advanced/propsdlgplugin/propertiespage.cpp:94
#14 0xb49f7894 in PropertiesPageDlg (this=0x8115dc8, parent=0x81fa8b8, files=
          {<QList<KFileItem>> = {{p = {static shared_null = {ref = {_q_value = 2931}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbfc6b178}, d = 0xbfc6b178}}, <No data fields>}) at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing-4.1.71/filesharing/simple/fileshare.cpp:371
#15 0xb49f7921 in KFileShareConfig::showShareDialog (this=0x81fa8b8, files=@0xbfc6b1ac)
    at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing-4.1.71/filesharing/simple/fileshare.cpp:391
#16 0xb49f7c03 in KFileShareConfig::addShareBtnClicked (this=0x81fa8b8)
    at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing-4.1.71/filesharing/simple/fileshare.cpp:355
#17 0xb49f76cd in KFileShareConfig::qt_metacall (this=0x81fa8b8, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfc6b2dc)
    at /var/tmp/portage/kde-base/kdenetwork-filesharing-4.1.71/work/kdenetwork-filesharing_build/filesharing/simple/fileshare.moc:76
#18 0xb75604e1 in QMetaObject::activate (sender=0x8202c18, from_signal_index=<value optimized out>, to_signal_index=30, argv=0xbfc6b2dc) at kernel/qobject.cpp:3028
#19 0xb7560904 in QMetaObject::activate (sender=0x8202c18, m=0xb7106384, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfc6b2dc) at kernel/qobject.cpp:3118
#20 0xb6f359d3 in QAbstractButton::clicked (this=0x8202c18, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185
#21 0xb6c8d33f in QAbstractButtonPrivate::emitClicked (this=0x815b668) at widgets/qabstractbutton.cpp:544
#22 0xb6c8edda in QAbstractButtonPrivate::click (this=0x815b668) at widgets/qabstractbutton.cpp:537
#23 0xb6c8f003 in QAbstractButton::mouseReleaseEvent (this=0x8202c18, e=0xbfc6b9cc) at widgets/qabstractbutton.cpp:1116
#24 0xb699f5a2 in QWidget::event (this=0x8202c18, event=0xbfc6b9cc) at kernel/qwidget.cpp:7169
#25 0xb6c8d20c in QAbstractButton::event (this=0x8202c18, e=0xbfc6b9cc) at widgets/qabstractbutton.cpp:1078
#26 0xb6d3213a in QPushButton::event (this=0x8202c18, e=0xbfc6b9cc) at widgets/qpushbutton.cpp:658
#27 0xb6946fab in QApplicationPrivate::notify_helper (this=0x8055d68, receiver=0x8202c18, e=0xbfc6b9cc) at kernel/qapplication.cpp:3809
#28 0xb694e438 in QApplication::notify (this=0xbfc6c290, receiver=0x8202c18, e=0xbfc6b9cc) at kernel/qapplication.cpp:3534
#29 0xb7bedf95 in KApplication::notify (this=0xbfc6c290, receiver=0x8202c18, event=0xbfc6b9cc) at /var/tmp/portage/kde-base/kdelibs-4.1.71/work/kdelibs-4.1.71/kdeui/kernel/kapplication.cpp:307
#30 0xb7549b21 in QCoreApplication::notifyInternal (this=0xbfc6c290, receiver=0x8202c18, event=0xbfc6b9cc) at kernel/qcoreapplication.cpp:593
#31 0xb694f879 in QApplicationPrivate::sendMouseEvent (receiver=0x8202c18, event=0xbfc6b9cc, alienWidget=0x8202c18, nativeWidget=0x80f5a88, buttonDown=0xb710cc60, lastMouseReceiver=@0xb710cc64)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#32 0xb69b79e7 in QETWidget::translateMouseEvent (this=0x80f5a88, event=0xbfc6bed8) at kernel/qapplication_x11.cpp:4048
#33 0xb69b631e in QApplication::x11ProcessEvent (this=0xbfc6c290, event=0xbfc6bed8) at kernel/qapplication_x11.cpp:3044
#34 0xb69dc96d in QEventDispatcherX11::processEvents (this=0x8055ea0, flags={i = -1077493896}) at kernel/qeventdispatcher_x11.cpp:134
#35 0xb75486b0 in QEventLoop::processEvents (this=0xbfc6bfec, flags={i = -1077493832}) at kernel/qeventloop.cpp:149
#36 0xb7548852 in QEventLoop::exec (this=0xbfc6bfec, flags={i = -1077493772}) at kernel/qeventloop.cpp:200
#37 0xb6db2a71 in QDialog::exec (this=0x80f5a88) at dialogs/qdialog.cpp:453
#38 0xb804c707 in kdemain (_argc=2, _argv=0xbfc6c4e4) at /var/tmp/portage/kde-base/kcmshell-4.1.71/work/kcmshell-4.1.71/kcmshell/main.cpp:275
#39 0x08048862 in main (argc=) at /var/tmp/portage/kde-base/kcmshell-4.1.71/work/kcmshell_build/kcmshell/kcmshell4_dummy.cpp:3
Comment 2 Dario Andres 2008-12-22 22:53:03 UTC
*** Bug 178494 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas L. 2009-01-04 19:35:35 UTC
reproduced here too with kde 4.2 beta2
Comment 4 Nicolas L. 2009-01-05 00:00:08 UTC
i am trying to fix it, i hope to post a patch soon
Comment 5 Nicolas L. 2009-01-05 07:36:55 UTC
This patch fixes the crash for me. Can i commmit it ?

--- kio/kio/knfsshare.cpp.orig   2009-01-04 20:18:07.000000000 +0100
+++ kio/kio/knfsshare.cpp    2009-01-04 20:33:20.000000000 +0100
@@ -183,8 +183,11 @@

 bool KNFSShare::isDirectoryShared( const QString & path ) const
 {
+  kDebug(7000) << "Path Shared dir:" << path;
   QString fixedPath = path;
-  if ( path[path.length()-1] != '/' )
+  kDebug(7000) << "fixedPath Shared dir:" << fixedPath;
+
+  if ( !path.isEmpty() && path[path.length()-1] != '/' )
        fixedPath += '/';

   return d->sharedPaths.contains(fixedPath);
--- kio/kio/ksambashare.cpp~ 2008-08-20 21:54:05.000000000 +0200
+++ kio/kio/ksambashare.cpp  2009-01-04 23:43:56.000000000 +0100
@@ -213,7 +213,7 @@
 bool KSambaShare::isDirectoryShared( const QString & path ) const
 {
   QString fixedPath = path;
-  if ( path[path.length()-1] != '/' )
+  if ( !path.isEmpty() && path[path.length()-1] != '/' )
        fixedPath += '/';

   return d->sharedPaths.contains(fixedPath);
Comment 6 Nicolas L. 2009-01-05 07:37:22 UTC
without the debugs of course if i commit :)
Comment 7 Nicolas L. 2009-01-05 20:53:46 UTC
SVN commit 906244 by nlecureuil:

Fix crash when using advanced file sharing dialog
BUG:174126



 M  +1 -1      knfsshare.cpp  
 M  +1 -1      ksambashare.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=906244
Comment 8 David Faure 2009-01-20 18:15:20 UTC
*** Bug 181388 has been marked as a duplicate of this bug. ***