Bug 319148

Summary: crash when opening damaged rar file
Product: [Applications] ark Reporter: martin.suc
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: triaged
Priority: NOR    
Version: 2.19   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description martin.suc 2013-05-01 09:00:14 UTC
Application: ark (2.19)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.8.0-19-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
I have been trying to open rar file. Compressed file without password appeared later was damaged (but not by this software). When arch tried to open it - it crashed after about 30 seconds.

The crash can be reproduced every time.

-- Backtrace:
Application: Ark (ark), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f7ffd5777c0 (LWP 11262))]

Thread 3 (Thread 0x7f7fdff9d700 (LWP 11265)):
#0  0x00007f7ffa5d33cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f7ff6d8f1dc in g_main_context_poll (n_fds=9, fds=0x7f7fd0008e00, timeout=-1, context=0x7f7fd800a8e0, priority=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3995
#2  g_main_context_iterate (context=0x7f7fd800a8e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3696
#3  0x00007f7ff6d8f6ba in g_main_loop_run (loop=0x7f7fd800a870) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3895
#4  0x00007f7fe80d04f6 in gdbus_shared_thread_func (user_data=0x7f7fd800a8b0) at /build/buildd/glib2.0-2.36.0/./gio/gdbusprivate.c:278
#5  0x00007f7ff6db2eb5 in g_thread_proxy (data=0x7f7fd80098f0) at /build/buildd/glib2.0-2.36.0/./glib/gthread.c:798
#6  0x00007f7ff7261f8e in start_thread (arg=0x7f7fdff9d700) at pthread_create.c:311
#7  0x00007f7ffa5dfe1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f7fce42d700 (LWP 11271)):
[KCrash Handler]
#6  isSignalConnected (signal_index=4, this=0x0) at kernel/qobject_p.h:239
#7  QMetaObject::activate (sender=sender@entry=0x13de080, m=m@entry=0x7f7ffd3fc800 <Kerfuffle::ReadOnlyArchiveInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7f7fce42caf0) at kernel/qobject.cpp:3448
#8  0x00007f7ffd1e6545 in Kerfuffle::ReadOnlyArchiveInterface::entry (this=this@entry=0x13de080, _t1=...) at ./archiveinterface.moc:125
#9  0x00007f7fceb1bcbd in LibArchiveInterface::emitEntryFromArchiveEntry (this=this@entry=0x13de080, aentry=<optimized out>) at ../../../plugins/libarchive/libarchivehandler.cpp:651
#10 0x00007f7fceb1ea7e in LibArchiveInterface::list (this=0x13de080) at ../../../plugins/libarchive/libarchivehandler.cpp:115
#11 0x00007f7ffd1e6fd0 in Kerfuffle::ListJob::doWork (this=0x152d740) at ../../kerfuffle/jobs.cpp:192
#12 0x00007f7ffd1e6d31 in Kerfuffle::Job::Private::run (this=0x13cc2f0) at ../../kerfuffle/jobs.cpp:58
#13 0x00007f7ffac2cbec in QThreadPrivate::start (arg=0x13cc2f0) at thread/qthread_unix.cpp:338
#14 0x00007f7ff7261f8e in start_thread (arg=0x7f7fce42d700) at pthread_create.c:311
#15 0x00007f7ffa5dfe1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f7ffd5777c0 (LWP 11262)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7ffac2d14b in wait (time=18446744073709551615, this=0x1597b00) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1596c20, mutex=0x1596bf8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f7ffac2c7bc in QThread::wait (this=<optimized out>, time=time@entry=18446744073709551615) at thread/qthread_unix.cpp:691
#4  0x00007f7ffd1e6b20 in Kerfuffle::Job::~Job (this=0x152d740, __in_chrg=<optimized out>) at ../../kerfuffle/jobs.cpp:87
#5  0x00007f7ffd1e8a98 in ~ListJob (this=0x152d740, __in_chrg=<optimized out>) at ../../kerfuffle/jobs.h:92
#6  Kerfuffle::ListJob::~ListJob (this=0x152d740, __in_chrg=<optimized out>) at ../../kerfuffle/jobs.h:92
#7  0x00007f7ffad3c232 in QObjectPrivate::deleteChildren (this=this@entry=0x152d3a0) at kernel/qobject.cpp:1907
#8  0x00007f7ffad42f66 in QObject::~QObject (this=0x1459030, __in_chrg=<optimized out>) at kernel/qobject.cpp:926
#9  0x00007f7ffd1e3b89 in Kerfuffle::Archive::~Archive (this=0x1459030, __in_chrg=<optimized out>) at ../../kerfuffle/archive.cpp:133
#10 0x00007f7fd61ab42b in cleanup (pointer=<optimized out>) at /usr/include/qt4/QtCore/qscopedpointer.h:62
#11 ~QScopedPointer (this=0x13cb770, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qscopedpointer.h:100
#12 ArchiveModel::~ArchiveModel (this=0x13cb750, __in_chrg=<optimized out>) at ../../part/archivemodel.cpp:289
#13 0x00007f7fd61ab459 in ArchiveModel::~ArchiveModel (this=0x13cb750, __in_chrg=<optimized out>) at ../../part/archivemodel.cpp:293
#14 0x00007f7ffad3c232 in QObjectPrivate::deleteChildren (this=this@entry=0x1565bd0) at kernel/qobject.cpp:1907
#15 0x00007f7ffad42f66 in QObject::~QObject (this=0x14d5780, __in_chrg=<optimized out>) at kernel/qobject.cpp:926
#16 0x00007f7ffccfd5d8 in KParts::Part::~Part (this=0x14d5780, __vtt_parm=0x7f7fd63bd858 <VTT for Ark::Part+24>, __in_chrg=<optimized out>) at ../../kparts/part.cpp:190
#17 0x00007f7fd619e552 in Ark::Part::~Part (this=0x14d5780, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../part/part.cpp:138
#18 0x00007f7fd619e599 in Ark::Part::~Part (this=0x14d5780, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../part/part.cpp:143
#19 0x000000000040e74f in MainWindow::~MainWindow (this=this@entry=0x13f4760, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../app/mainwindow.cpp:72
#20 0x000000000040e7f9 in MainWindow::~MainWindow (this=0x13f4760, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../app/mainwindow.cpp:74
#21 0x00007f7ffad435e8 in QObject::event (this=this@entry=0x13f4760, e=e@entry=0x16d3fe0) at kernel/qobject.cpp:1175
#22 0x00007f7ffb75f1ca in QWidget::event (this=this@entry=0x13f4760, event=event@entry=0x16d3fe0) at kernel/qwidget.cpp:8845
#23 0x00007f7ffbb2b83b in QMainWindow::event (this=this@entry=0x13f4760, event=event@entry=0x16d3fe0) at widgets/qmainwindow.cpp:1478
#24 0x00007f7ffc4d2973 in KMainWindow::event (this=this@entry=0x13f4760, ev=ev@entry=0x16d3fe0) at ../../kdeui/widgets/kmainwindow.cpp:1084
#25 0x00007f7ffc50fb68 in KXmlGuiWindow::event (this=0x13f4760, ev=0x16d3fe0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#26 0x00007f7ffb7128ec in QApplicationPrivate::notify_helper (this=this@entry=0x115b730, receiver=receiver@entry=0x13f4760, e=e@entry=0x16d3fe0) at kernel/qapplication.cpp:4567
#27 0x00007f7ffb71525b in QApplication::notify (this=this@entry=0x7ffff7e4e5d0, receiver=receiver@entry=0x13f4760, e=e@entry=0x16d3fe0) at kernel/qapplication.cpp:4428
#28 0x00007f7ffc41faf6 in KApplication::notify (this=0x7ffff7e4e5d0, receiver=0x13f4760, event=0x16d3fe0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007f7ffad2963e in QCoreApplication::notifyInternal (this=0x7ffff7e4e5d0, receiver=receiver@entry=0x13f4760, event=event@entry=0x16d3fe0) at kernel/qcoreapplication.cpp:946
#30 0x00007f7ffad2d171 in sendEvent (event=0x16d3fe0, receiver=0x13f4760) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x111f670) at kernel/qcoreapplication.cpp:1570
#32 0x00007f7ffad2d4a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#33 0x00007f7ffad57e83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=s@entry=0x11588f0) at kernel/qeventdispatcher_glib.cpp:279
#35 0x00007f7ff6d8ef05 in g_main_dispatch (context=0x115b500) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3054
#36 g_main_context_dispatch (context=context@entry=0x115b500) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3630
#37 0x00007f7ff6d8f248 in g_main_context_iterate (context=context@entry=0x115b500, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3701
#38 0x00007f7ff6d8f304 in g_main_context_iteration (context=0x115b500, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#39 0x00007f7ffad58016 in QEventDispatcherGlib::processEvents (this=0x1120b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#40 0x00007f7ffb7b81ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007f7ffad2838f in QEventLoop::processEvents (this=this@entry=0x7ffff7e4e430, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007f7ffad28618 in QEventLoop::exec (this=this@entry=0x7ffff7e4e430, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007f7ffad2dcf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#44 0x00007f7ffb710ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#45 0x000000000040a3c6 in main (argc=4, argv=0x7ffff7e4e728) at ../../app/main.cpp:209

Possible duplicates by query: bug 315539, bug 311002, bug 309899, bug 308984, bug 308388.

Reported using DrKonqi
Comment 1 Raphael Kubo da Costa 2013-05-01 21:48:00 UTC
(In reply to comment #0)
> - What I was doing when the application crashed:
> I have been trying to open rar file. Compressed file without password
> appeared later was damaged (but not by this software). When arch tried to
> open it - it crashed after about 30 seconds.

Do you mean you loaded the archive and Ark crashed when you tried to preview one of its files?
Comment 2 martin.suc 2013-05-02 08:35:17 UTC
No, it happened when rar file has been loading.
Comment 3 Raphael Kubo da Costa 2013-05-02 09:27:43 UTC
From the backtrace, it looks like you closed Ark while it was still loading the archive. Are you able to reproduce the crash, and is it possible for you to attach a sample file here that causes the same problem?
Comment 4 martin.suc 2013-05-02 12:23:42 UTC
No, it had crashed and I closed it. I will try to reproduce it when I have got spare time. ( I do not have that damaged file.)
Comment 5 Raphael Kubo da Costa 2013-06-27 14:09:16 UTC
Closing while waiting for feedback.
Comment 6 Andrew Crouthamel 2018-09-24 02:01:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 03:30:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!