Bug 273219

Summary: Dolphin crashes after renaming a JAR file
Product: [Applications] dolphin Reporter: Andres Salcedo <alfabravoteam>
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 Andres Salcedo 2011-05-13 20:07:14 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-9-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Succesfully extracted a WAR. Got into WEB-INF/lib and renamed a JAR file to jar.old. Dolphin crashed and now crashes every time I get into that folder...

The crash can be reproduced every 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 0x7f7388370780 (LWP 17270))]

Thread 4 (Thread 0x7f7374eae700 (LWP 17271)):
#0  0x00007f7387c68f12 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:89
#1  0x00007f7380407104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7380407639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f73840ee446 in QEventDispatcherGlib::processEvents (this=0x25429e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f73840c2882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f73840c2abc in QEventLoop::exec (this=0x7f7374eaddd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f7383fd9924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007f73840a4c2f in QInotifyFileSystemWatcherEngine::run (this=0x25428e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f7383fdc175 in QThreadPrivate::start (arg=0x25428e0) at thread/qthread_unix.cpp:320
#9  0x00007f73808d2d8c in start_thread (arg=0x7f7374eae700) at pthread_create.c:304
#10 0x00007f7387c7604d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f736e5ed700 (LWP 17279)):
#0  0x00007f7380407002 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f7380407639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f73840ee446 in QEventDispatcherGlib::processEvents (this=0x27a13a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#3  0x00007f73840c2882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007f73840c2abc in QEventLoop::exec (this=0x7f736e5ecdd0, flags=...) at kernel/qeventloop.cpp:201
#5  0x00007f7383fd9924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#6  0x00007f73840a4c2f in QInotifyFileSystemWatcherEngine::run (this=0x2931af0) at io/qfilesystemwatcher_inotify.cpp:248
#7  0x00007f7383fdc175 in QThreadPrivate::start (arg=0x2931af0) at thread/qthread_unix.cpp:320
#8  0x00007f73808d2d8c in start_thread (arg=0x7f736e5ed700) at pthread_create.c:304
#9  0x00007f7387c7604d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f736d5eb700 (LWP 17610)):
[KCrash Handler]
#6  0x00007f7387bc3d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f7387bc7ab6 in abort () at abort.c:92
#8  0x00007f7387bbc7c5 in __assert_fail (assertion=0x7f73820a9c20 "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  0x00007f738205eecf in Strigi::AnalysisResult::Private::Private(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, long, Strigi::AnalysisResult&, Strigi::AnalysisResult&) () from /usr/lib/libstreamanalyzer.so.0
#10 0x00007f738205ef95 in Strigi::AnalysisResult::AnalysisResult(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, long, Strigi::AnalysisResult&) () from /usr/lib/libstreamanalyzer.so.0
#11 0x00007f738205f2c2 in Strigi::AnalysisResult::indexChild(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, Strigi::StreamBase<char>*) () from /usr/lib/libstreamanalyzer.so.0
#12 0x00007f738209c5a8 in ?? () from /usr/lib/libstreamanalyzer.so.0
#13 0x00007f7382081eca in ?? () from /usr/lib/libstreamanalyzer.so.0
#14 0x00007f7385d067d1 in KFileMetaInfoPrivate::init (this=0x2c52720, stream=..., url=..., mtime=<value optimized out>, w=<value optimized out>) at ../../kio/kio/kfilemetainfo.cpp:257
#15 0x00007f7385d0702f in KFileMetaInfo::KFileMetaInfo (this=0x7f736d5eace0, path=<value optimized out>, w=...) at ../../kio/kio/kfilemetainfo.cpp:286
#16 0x00007f7385dd44b6 in KLoadFileMetaDataThread::run (this=0x2c6a840) at ../../kio/kfile/kloadfilemetadatathread.cpp:143
#17 0x00007f7383fdc175 in QThreadPrivate::start (arg=0x2c6a840) at thread/qthread_unix.cpp:320
#18 0x00007f73808d2d8c in start_thread (arg=0x7f736d5eb700) at pthread_create.c:304
#19 0x00007f7387c7604d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7388370780 (LWP 17270)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f7383fdc82b in wait (this=<value optimized out>, mutex=0x253a130, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x253a130, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f7383fdb910 in QThread::wait (this=<value optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:722
#4  0x00007f73840985d0 in QFileSystemWatcher::~QFileSystemWatcher (this=0x2540370, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:446
#5  0x00007f73840986a9 in QFileSystemWatcher::~QFileSystemWatcher (this=0x2540370, __in_chrg=<value optimized out>) at io/qfilesystemwatcher.cpp:462
#6  0x00007f73840d5c14 in QObjectPrivate::deleteChildren (this=0x2539f40) at kernel/qobject.cpp:1964
#7  0x00007f73840da5f4 in QObject::~QObject (this=0x25acb20, __in_chrg=<value optimized out>) at kernel/qobject.cpp:946
#8  0x00007f73837ab7d9 in Solid::Backends::Fstab::FstabWatcher::~FstabWatcher (this=0x25acb20, __in_chrg=<value optimized out>) at ../../../solid/solid/backends/fstab/fstabwatcher.cpp:51
#9  0x00007f7387bc9961 in __run_exit_handlers (status=1) at exit.c:78
#10 exit (status=1) at exit.c:100
#11 0x00007f7384aeed48 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:781
#12 0x00007f73857a0638 in KApplication::xioErrhandler (this=0x7fff5572e400, dpy=0x24c1550) at ../../kdeui/kernel/kapplication.cpp:419
#13 0x00007f73817c4dee in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007f73817c262d in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f73817b2f1f in XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#16 0x00007f7384b29c4c in x11EventSourceCheck (s=0x24a0710) at kernel/qguieventdispatcher_glib.cpp:85
#17 0x00007f7380406854 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f7380407122 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f7380407639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f73840ee446 in QEventDispatcherGlib::processEvents (this=0x244fdb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#21 0x00007f7384b29dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007f73840c2882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007f73840c2abc in QEventLoop::exec (this=0x7fff5572e390, flags=...) at kernel/qeventloop.cpp:201
#24 0x00007f73840c6ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#25 0x00007f7387f66995 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_dolphin.so
#26 0x00007f7387baeeff in __libc_start_main (main=0x400730 <_start+256>, argc=6, ubp_av=0x7fff5572e928, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff5572e918) at libc-start.c:226
#27 0x0000000000400659 in _start ()

Possible duplicates by query: bug 272960, bug 272329, bug 271546, bug 271542, bug 271460.

Reported using DrKonqi
Comment 1 Peter Penz 2011-05-13 20:15:59 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).