Bug 275115

Summary: dophin crashes when I try to copy files across a smb share
Product: [Applications] dolphin Reporter: cjae <cjae1>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 1.6.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.0
Sentry Crash Report:

Description cjae 2011-06-07 13:02:18 UTC
Application: dolphin (1.6.1)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed: I was copying a file across a smb share with dolphin. Earlier that day I have many crashes like those in the similiar bugs to do with dolphin. As there are many. Also unrelated, I had all of my activities wiped out, 4 in all and all of my wallpapers vanish. The last thing I was doing was renaming a .jpg file to use it for kwin desktop cube background wallpaper. Upon moving the .jpg to /usr/share/kde4/apps/cubecap.jpg all of my widgets, activities, and wallpapers disappeared. Sorry for two bugs in one, had to mention the other since I was the worst bug Ive ever saw.

- Unusual behavior I noticed:

The crash can be reproduced some of the time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Aborted
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7f4c90c5c780 (LWP 3579))]

Thread 4 (Thread 0x7f4c7d010700 (LWP 3580)):
#0  0x00007f4c9054ef03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4c88ced104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4c88ced639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4c8c9d4446 in QEventDispatcherGlib::processEvents (this=0x13f8850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f4c8c9a8882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4c8c9a8abc in QEventLoop::exec (this=0x7f4c7d00fdd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f4c8c8bf924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007f4c8c98ac2f in QInotifyFileSystemWatcherEngine::run (this=0x141a500) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4c8c8c2175 in QThreadPrivate::start (arg=0x141a500) at thread/qthread_unix.cpp:320
#9  0x00007f4c891b8d8c in start_thread (arg=0x7f4c7d010700) at pthread_create.c:304
#10 0x00007f4c9055c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4c76a18700 (LWP 3584)):
#0  0x00007f4c9054ef03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4c88ced104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4c88ced639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4c8c9d4446 in QEventDispatcherGlib::processEvents (this=0x1469290, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f4c8c9a8882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4c8c9a8abc in QEventLoop::exec (this=0x7f4c76a17dd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f4c8c8bf924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007f4c8c98ac2f in QInotifyFileSystemWatcherEngine::run (this=0x1522500) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4c8c8c2175 in QThreadPrivate::start (arg=0x1522500) at thread/qthread_unix.cpp:320
#9  0x00007f4c891b8d8c in start_thread (arg=0x7f4c76a18700) at pthread_create.c:304
#10 0x00007f4c9055c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4c5f7fe700 (LWP 4848)):
[KCrash Handler]
#6  0x00007f4c904a9d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f4c904adab6 in abort () at abort.c:92
#8  0x00007f4c904a27c5 in __assert_fail (assertion=0x7f4c8a98fc20 "m_path.size() > m_parent->p->m_path.size()+1", file=<value optimized out>, line=134, function=<value optimized out>) at assert.c:81
#9  0x00007f4c8a944ecf in Strigi::AnalysisResult::Private::Private (this=0x7f4c783e8050, p=..., name=<value optimized out>, mt=<value optimized out>, t=..., parent=...) at /build/buildd/strigi-0.7.2/src/streamanalyzer/analysisresult.cpp:134
#10 0x00007f4c8a944f95 in Strigi::AnalysisResult::AnalysisResult (this=0x7f4c783e8030, path=..., name=0x7f4c783e7efa "", mt=1307353058, parent=...) at /build/buildd/strigi-0.7.2/src/streamanalyzer/analysisresult.cpp:140
#11 0x00007f4c8a9452c2 in Strigi::AnalysisResult::indexChild (this=0x7f4c5f7fd9d0, name=<value optimized out>, mt=1307353058, file=0x7f4c783e7d80) at /build/buildd/strigi-0.7.2/src/streamanalyzer/analysisresult.cpp:249
#12 0x00007f4c8a9825a8 in ZipEndAnalyzer::analyze (this=0x7f4c78326460, idx=..., in=0x7f4c783431b0) at /build/buildd/strigi-0.7.2/src/streamanalyzer/endanalyzers/zipendanalyzer.cpp:62
#13 0x00007f4c8a967eca in Strigi::StreamAnalyzerPrivate::analyze (this=0x7f4c7833f720, idx=..., input=0x7f4c783431b0) at /build/buildd/strigi-0.7.2/src/streamanalyzer/streamanalyzer.cpp:421
#14 0x00007f4c8e5ec7d1 in KFileMetaInfoPrivate::init (this=0x7f4c780082b0, stream=..., url=..., mtime=<value optimized out>, w=<value optimized out>) at ../../kio/kio/kfilemetainfo.cpp:257
#15 0x00007f4c8e5ed02f in KFileMetaInfo::KFileMetaInfo (this=0x7f4c5f7fdce0, path=<value optimized out>, w=...) at ../../kio/kio/kfilemetainfo.cpp:286
#16 0x00007f4c8e6ba4b6 in KLoadFileMetaDataThread::run (this=0x1896580) at ../../kio/kfile/kloadfilemetadatathread.cpp:143
#17 0x00007f4c8c8c2175 in QThreadPrivate::start (arg=0x1896580) at thread/qthread_unix.cpp:320
#18 0x00007f4c891b8d8c in start_thread (arg=0x7f4c5f7fe700) at pthread_create.c:304
#19 0x00007f4c9055c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4c90c5c780 (LWP 3579)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4c8c8c282b in wait (this=<value optimized out>, mutex=0x141c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x141c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f4c8c8c1910 in QThread::wait (this=<value optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:722
#4  0x00007f4c8c97e5d0 in QFileSystemWatcher::~QFileSystemWatcher (this=0x13d0270, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:446
#5  0x00007f4c8c97e6a9 in QFileSystemWatcher::~QFileSystemWatcher (this=0x13d0270, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:462
#6  0x00007f4c8c9bbc14 in QObjectPrivate::deleteChildren (this=0x141bd70) at kernel/qobject.cpp:1964
#7  0x00007f4c8c9c05f4 in QObject::~QObject (this=0x141a6b0, __in_chrg=<value optimized out>) at kernel/qobject.cpp:946
#8  0x00007f4c8c0917d9 in Solid::Backends::Fstab::FstabWatcher::~FstabWatcher (this=0x141a6b0, __in_chrg=<value optimized out>) at ../../../solid/solid/backends/fstab/fstabwatcher.cpp:51
#9  0x00007f4c904af961 in __run_exit_handlers (status=1) at exit.c:78
#10 exit (status=1) at exit.c:100
#11 0x00007f4c8d3d4d48 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:781
#12 0x00007f4c8e086638 in KApplication::xioErrhandler (this=0x7fff4dabd8b0, dpy=0x12ec050) at ../../kdeui/kernel/kapplication.cpp:419
#13 0x00007f4c8a0aadee in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007f4c8a0a862d in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f4c8a098f1f in XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#16 0x00007f4c8d40fca7 in x11EventSourcePrepare (s=0x12c4dd0, timeout=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:77
#17 0x00007f4c88cec0a2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f4c88cecf9d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f4c88ced639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f4c8c9d43ef in QEventDispatcherGlib::processEvents (this=0x1273db0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#21 0x00007f4c8d40fdfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007f4c8c9a8882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007f4c8c9a8abc in QEventLoop::exec (this=0x7fff4dabd840, flags=...) at kernel/qeventloop.cpp:201
#24 0x00007f4c8c9acecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#25 0x00007f4c9084c995 in kdemain (argc=6, argv=0x7fff4dabddd8) at ../../../dolphin/src/main.cpp:98
#26 0x00007f4c90494eff in __libc_start_main (main=0x400730 <main(int, char**)>, argc=6, ubp_av=0x7fff4dabddd8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff4dabddc8) at libc-start.c:226
#27 0x0000000000400659 in _start ()

Possible duplicates by query: bug 274802, bug 274094, bug 273952, bug 273691, bug 273656.

Reported using DrKonqi
Comment 1 Peter Penz 2011-06-07 13:25:51 UTC
Thanks for the report. This is an issue in the corresponding Strigi analyzer
that Dolphin uses to get the metadata of a file. Dolphin for KDE 4.7 won't
crash anymore in this case (see
http://ppenz.blogspot.com/2011/03/dont-crash-when-reading-metadata.html for
details).