Bug 192609

Summary: ark crashes on rar extraction when invoked from konqueror.
Product: [Applications] ark Reporter: Raúl <rasasi78>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED INTENTIONAL    
Severity: crash CC: rakuco
Priority: NOR    
Version: 2.12   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Raúl 2009-05-13 22:48:11 UTC
Version:           2.12 (using 4.2.2 (KDE 4.2.2), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.29-toi3

Hello:

  I've seen this is similar to:
https://bugs.kde.org/show_bug.cgi?id=189142
http://bugs.kde.org/show_bug.cgi?id=180321

  Possibly it's the same issue, but I wasn't totally sure and I'm opening a new bug.

  What I did is downloading http://ftp1.srv.endpoint.nu/pub/repository/t3ch/STABLE/XBMC-9.04-FINAL-T3CH/XBMC-9.04-BABYLON-FINAL-T3CH.rar and then right click on konqueror: "extract here, autodetect folder" then ark crashed.

Aplicación: Ark (ark), señal SIGSEGV
0x00007f6141144831 in nanosleep () from /lib/libc.so.6
Current language:  auto; currently c
[Current thread is 0 (LWP 27743)]

Thread 3 (Thread 0x7f61389bb950 (LWP 27744)):
#0  0x00007f613d70dfb9 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1  0x00007f613d70e35f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f613d70e7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f61418864de in QEventDispatcherGlib::processEvents (this=0x265ecc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f614185b6f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 949724016}) at kernel/qeventloop.cpp:149
#5  0x00007f614185babd in QEventLoop::exec (this=0x7f61389ba3c0, flags={i = 949724288}) at kernel/qeventloop.cpp:200
#6  0x00007f6138dcea55 in RARInterface::executeRarProcess (this=0x25c4d20, rarPath=@0x7f61389ba520, args=@0x7f61389ba510) at ../../../../ark/plugins/rarplugin/rarplugin.cpp:463
#7  0x00007f6138dceda7 in RARInterface::list (this=0x25c4d20) at ../../../../ark/plugins/rarplugin/rarplugin.cpp:98
#8  0x00007f6143940f6f in Kerfuffle::ListJob::doWork (this=0x2677190) at ../../../ark/kerfuffle/jobs.cpp:126
#9  0x00007f614393cd75 in Kerfuffle::Job::qt_metacall (this=0x2677190, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f61389ba6c0) at moc_jobs.cpp:80
#10 0x00007f614393ce45 in Kerfuffle::ListJob::qt_metacall (this=0x1, _c=QMetaObject::InvokeMetaMethod, _id=-1, _a=0x0) at moc_jobs.cpp:154
#11 0x00007f6141872862 in QMetaObject::activate (sender=0x7f6134000ba0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3120
#12 0x00007f6141877b9f in QSingleShotTimer::timerEvent (this=0x7f6134000ba0) at kernel/qtimer.cpp:298
#13 0x00007f614186cb43 in QObject::event (this=0x7f6134000ba0, e=0x0) at kernel/qobject.cpp:1082
#14 0x00007f6141d2b4fd in QApplicationPrivate::notify_helper (this=0x24ed500, receiver=0x7f6134000ba0, e=0x7f61389bad80) at kernel/qapplication.cpp:4057
#15 0x00007f6141d3377a in QApplication::notify (this=0x7fff4bd6c8d0, receiver=0x7f6134000ba0, e=0x7f61389bad80) at kernel/qapplication.cpp:4022
#16 0x00007f6142e2955b in KApplication::notify (this=0x7fff4bd6c8d0, receiver=0x7f6134000ba0, event=0x7f61389bad80) at ../../kdeui/kernel/kapplication.cpp:307
#17 0x00007f614185ce4c in QCoreApplication::notifyInternal (this=0x7fff4bd6c8d0, receiver=0x7f6134000ba0, event=0x7f61389bad80) at kernel/qcoreapplication.cpp:610
#18 0x00007f614188a036 in QTimerInfoList::activateTimers (this=0x25c85d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#19 0x00007f614188655d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#20 0x00007f613d70af7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007f613d70e640 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f613d70e7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00007f61418864bf in QEventDispatcherGlib::processEvents (this=0x265ecc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#24 0x00007f614185b6f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 949727168}) at kernel/qeventloop.cpp:149
#25 0x00007f614185babd in QEventLoop::exec (this=0x7f61389bb000, flags={i = 949727248}) at kernel/qeventloop.cpp:200
#26 0x00007f61417717e8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#27 0x00007f61439435ad in Kerfuffle::ThreadExecution::run (this=0x2664c10) at ../../../ark/kerfuffle/threading.cpp:50
#28 0x00007f6141774742 in QThreadPrivate::start (arg=0x2664c10) at thread/qthread_unix.cpp:189
#29 0x00007f613d4bcfaa in start_thread (arg=<value optimized out>) at pthread_create.c:300
#30 0x00007f614117429d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#31 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6133fff950 (LWP 27745)):
#0  0x00007f614116daf2 in select () from /lib/libc.so.6
#1  0x00007f614183b936 in QProcessManager::run (this=0x24f1ed0) at io/qprocess_unix.cpp:305
#2  0x00007f6141774742 in QThreadPrivate::start (arg=0x24f1ed0) at thread/qthread_unix.cpp:189
#3  0x00007f613d4bcfaa in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f614117429d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6143c2b760 (LWP 27743)):
[KCrash Handler]
#5  QString::indexOf (this=0x26a3450, ch={ucs = 100}, from=<value optimized out>, cs=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:683
#6  0x00007f6138dcdbd4 in RARInterface::processListLine (this=0x25c4d20, line=@0x2699ba0) at /usr/include/qt4/QtCore/qstring.h:848
#7  0x00007f6138dce551 in RARInterface::readStdout (this=0x25c4d20) at ../../../../ark/plugins/rarplugin/rarplugin.cpp:118
#8  0x00007f6138dcca28 in RARInterface::qt_metacall (this=0x25c4d20, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x26d6f10) at moc_rarplugin.cpp:71
#9  0x00007f614186ceb8 in QObject::event (this=0x25c4d20, e=0x269f030) at kernel/qobject.cpp:1118
#10 0x00007f6141d2b4fd in QApplicationPrivate::notify_helper (this=0x24ed500, receiver=0x25c4d20, e=0x269f030) at kernel/qapplication.cpp:4057
#11 0x00007f6141d3377a in QApplication::notify (this=0x7fff4bd6c8d0, receiver=0x25c4d20, e=0x269f030) at kernel/qapplication.cpp:4022
#12 0x00007f6142e2955b in KApplication::notify (this=0x7fff4bd6c8d0, receiver=0x25c4d20, event=0x269f030) at ../../kdeui/kernel/kapplication.cpp:307
#13 0x00007f614185ce4c in QCoreApplication::notifyInternal (this=0x7fff4bd6c8d0, receiver=0x25c4d20, event=0x269f030) at kernel/qcoreapplication.cpp:610
#14 0x00007f614185daba in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24d1de0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#15 0x00007f6141886833 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#16 0x00007f613d70af7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x00007f613d70e640 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007f613d70e7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007f61418864bf in QEventDispatcherGlib::processEvents (this=0x24d74f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#20 0x00007f6141dc3c7f in QGuiEventDispatcherGlib::processEvents (this=0x26a3450, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#21 0x00007f614185b6f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1272365872}) at kernel/qeventloop.cpp:149
#22 0x00007f614185babd in QEventLoop::exec (this=0x7fff4bd6c370, flags={i = 1272365952}) at kernel/qeventloop.cpp:200
#23 0x00007f61439439fa in Kerfuffle::ArchiveBase::listIfNotListed (this=0x265db70) at ../../../ark/kerfuffle/archivebase.cpp:173
#24 0x00007f6143943aa9 in Kerfuffle::ArchiveBase::isSingleFolderArchive (this=0x26a3450) at ../../../ark/kerfuffle/archivebase.cpp:179
#25 0x000000000041098e in BatchExtract::addExtraction (this=0x2654f20, archive=0x265db80, preservePaths=true, destinationFolder=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 2724}, alloc = 0, size = 0, data = 0x618f7a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 107}, alloc = 0, size = 0, data = 0x7f6141b52ada, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7fff4bd6c7c0, static codecForCStrings = 0x0}) at ../../../ark/app/batchextract.cpp:60
#26 0x0000000000411608 in BatchExtract::start (this=0x2654f20) at ../../../ark/app/batchextract.cpp:127
#27 0x000000000040c6ec in main (argc=5, argv=0x7fff4bd6d5b8) at ../../../ark/app/main.cpp:201

I was curious and I got that line parameter in RARInterface::processListLine was " XBMC-9.04-BABYLON-FINAL-T3CH/XBMC/scripts/T3CH Upgrader/resources/language/French/strings.xml" maybe blank spaces turn ark mad.

HTH.
Comment 1 Raphael Kubo da Costa 2009-05-14 05:02:14 UTC
Does it always happen to you and only with this archive?

If it's really bug 189142, then can you please try upgrading to KDE 4.2.3 or 4.3 beta 1?
Comment 2 Harald Hvaal 2009-05-14 06:06:35 UTC
rarinterface has been deprecated for cliinterface from 4.3