Bug 146303 - kview crash when pressing "Forward" on an image inside a zip file
Summary: kview crash when pressing "Forward" on an image inside a zip file
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 132482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-03 00:43 UTC by Bertrand
Modified: 2010-07-11 19:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase (37.41 KB, application/x-zip)
2007-07-03 23:56 UTC, Bertrand
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand 2007-06-03 00:43:08 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Debian testing/unstable Packages

The file /tmp/a.zip contains image files.

If I open the file zip:/tmp/a.zip/1.jpeg everything goes well. When I press forward to view zip:/tmp/a.zip/2.jpeg kview crashes.

If kview is used to see images embedded in konqueror, there is the same crash.
Comment 1 Bram Schoenmakers 2007-06-03 11:06:06 UTC
Can not reproduce. Please read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports for a description on how to get a backtrace. Because we can't do much without it.
Comment 2 Bertrand 2007-06-04 10:10:46 UTC
The backtrace does not provide usefull information and I've not access to -dbg packages. I'm filing a bug report in the debian bts.
Comment 3 Bertrand 2007-06-04 14:34:03 UTC
I've created a new zip file to test and everything works well. 

The zip file causing the problem was coming from the Internet. Maybe the zip 
file was bogus ?

Unfortunately this zip file is no more on my computer and I'm unable to find 
it on the Internet. This bug should probably be closed since I'm unable to 
reproduce it.
Comment 4 Bertrand 2007-07-03 23:54:44 UTC
I'm able to reproduce the bug !

Apparently the zip filename has an importance.

If the zip file contains an character such as "[" or "]" then there will be a crash. If the zip file is renamed to remove such character then the crash disappears.

Comment 5 Bertrand 2007-07-03 23:56:19 UTC
Created attachment 21030 [details]
testcase

Save this file as /tmp/Archive[1].zip

Launch kview and open zip:/tmp/Archive[1].zip/1.jpg
Press next and it should crash

Rename this file as /tmp/Archive.zip and the problem disappears
Comment 6 Bram Schoenmakers 2007-07-04 10:29:10 UTC
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1233045840 (LWP 18120)]
[KCrash handler]
#6  0x08051cf0 in QGList::count (this=0x0) at /usr/qt/3/include/qglist.h:152
#7  0xb7e17e29 in QPtrList<KDirLister>::isEmpty (this=0x0)
    at /usr/qt/3/include/qptrlist.h:78
#8  0xb7e10c0e in KDirListerCache::slotEntries (this=0x81d85f8, job=0x81d23b8, 
    entries=@0xbf82ce48)
    at /home/bram/KDE/kde3/kdelibs/kio/kio/kdirlister.cpp:942
#9  0xb7e14d08 in KDirListerCache::qt_invoke (this=0x81d85f8, _id=6, 
    _o=0xbf82cb74) at ./kio/kio/kdirlister_p.moc:131
#10 0xb70b5299 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#11 0xb7d597a2 in KIO::ListJob::entries (this=0x81d23b8, t0=0x81d23b8, 
    t1=@0xbf82ce48) at ./kio/kio/jobclasses.moc:1733
#12 0xb7d6b02f in KIO::ListJob::slotListEntries (this=0x81d23b8, 
    list=@0xbf82ce48) at /home/bram/KDE/kde3/kdelibs/kio/kio/job.cpp:2057
#13 0xb7d6b3bb in KIO::ListJob::qt_invoke (this=0x81d23b8, _id=19, 
    _o=0xbf82cd28) at ./kio/kio/jobclasses.moc:1771
#14 0xb70b5299 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#15 0xb7d48012 in KIO::SlaveInterface::listEntries (this=0x8180f80, 
    t0=@0xbf82ce48) at ./kio/kio/slaveinterface.moc:255
#16 0xb7d4990b in KIO::SlaveInterface::dispatch (this=0x8180f80, _cmd=106, 
    rawdata=@0xbf82cf38)
    at /home/bram/KDE/kde3/kdelibs/kio/kio/slaveinterface.cpp:263
#17 0xb7d4a554 in KIO::SlaveInterface::dispatch (this=0x8180f80)
    at /home/bram/KDE/kde3/kdelibs/kio/kio/slaveinterface.cpp:173
#18 0xb7d44e9c in KIO::Slave::gotInput (this=0x8180f80)
    at /home/bram/KDE/kde3/kdelibs/kio/kio/slave.cpp:300
#19 0xb7d46f99 in KIO::Slave::qt_invoke (this=0x8180f80, _id=4, _o=0xbf82d044)
    at ./kio/kio/slave.moc:113
#20 0xb70b5299 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#21 0xb70b5de2 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#22 0xb73f0040 in QSocketNotifier::activated ()
   from /usr/qt/3/lib/libqt-mt.so.3
#23 0xb70d31f0 in QSocketNotifier::event () from /usr/qt/3/lib/libqt-mt.so.3
#24 0xb7055ca7 in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#25 0xb7056871 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb770dcf1 in KApplication::notify (this=0xbf82e098, receiver=0x818a320, 
    event=0xbf82d308)
    at /home/bram/KDE/kde3/kdelibs/kdecore/kapplication.cpp:550
#27 0xb704a8c1 in QEventLoop::activateSocketNotifiers ()
   from /usr/qt/3/lib/libqt-mt.so.3
#28 0xb700597e in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#29 0xb706c7a5 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#30 0xb705579c in QApplication::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#31 0xb70557d6 in QApplication::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#32 0xb648124d in KViewBrowser::setupDirLister ()
   from /usr/kde/3.5/lib/kde3/kview_browserplugin.so
#33 0xb6481395 in KViewBrowser::slotForward ()
   from /usr/kde/3.5/lib/kde3/kview_browserplugin.so
#34 0xb648154d in KViewBrowser::qt_invoke ()
   from /usr/kde/3.5/lib/kde3/kview_browserplugin.so
#35 0xb70b5299 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#36 0xb70b5eed in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#37 0xb7a15040 in KAction::activated (this=0x8113c50)
    at ./kdeui/kaction.moc:176
#38 0xb7a158a2 in KAction::slotActivated (this=0x8113c50)
    at /home/bram/KDE/kde3/kdelibs/kdeui/kaction.cpp:1102
#39 0xb7a15752 in KAction::slotButtonClicked (this=0x8113c50, state=LeftButton)
    at /home/bram/KDE/kde3/kdelibs/kdeui/kaction.cpp:1147
#40 0xb7a15f31 in KAction::qt_invoke (this=0x8113c50, _id=17, _o=0xbf82d824)
    at ./kdeui/kaction.moc:220
#41 0xb70b5299 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#42 0xb7ae469d in KToolBarButton::buttonClicked (this=0x819f1c0, t0=-31, 
    t1=LeftButton) at ./kdeui/ktoolbarbutton.moc:154
#43 0xb7ae5ee1 in KToolBarButton::mouseReleaseEvent (this=0x819f1c0, 
    e=0xbf82dbfc) at /home/bram/KDE/kde3/kdelibs/kdeui/ktoolbarbutton.cpp:479
#44 0xb70eea3e in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#45 0xb7ae70fc in KToolBarButton::event (this=0x819f1c0, e=0xbf82dbfc)
    at /home/bram/KDE/kde3/kdelibs/kdeui/ktoolbarbutton.cpp:651
#46 0xb7055ca7 in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#47 0xb7056a88 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#48 0xb770dcf1 in KApplication::notify (this=0xbf82e098, receiver=0x819f1c0, 
    event=0xbf82dbfc)
    at /home/bram/KDE/kde3/kdelibs/kdecore/kapplication.cpp:550
#49 0xb6ff5fd2 in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#50 0xb6ff58b0 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#51 0xb7005761 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#52 0xb706c831 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#53 0xb706c6b6 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#54 0xb705572f in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#55 0xb75cd0dc in kdemain () from /usr/kde/3.5/lib/libkdeinit_kview.so
#56 0xb75d0784 in kdeinitmain () from /usr/kde/3.5/lib/kde3/kview.so
#57 0x0804fef2 in launch (argc=9, _name=0x807359c "kview", 
    args=0x8073622 "\001", cwd=0x0, envc=1, envs=0x8073633 "", 
    reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x8073637 "s040391;1183537702;608770;17928_TIME1133551")
    at /home/bram/KDE/kde3/kdelibs/kinit/kinit.cpp:673
#58 0x0805080a in handle_launcher_request (sock=8)
    at /home/bram/KDE/kde3/kdelibs/kinit/kinit.cpp:1240
#59 0x08050f65 in handle_requests (waitForPid=0)
    at /home/bram/KDE/kde3/kdelibs/kinit/kinit.cpp:1443
#60 0x08051a6e in main (argc=2, argv=0xbf82e884, envp=0xbf82e890)
    at /home/bram/KDE/kde3/kdelibs/kinit/kinit.cpp:1909
Comment 7 Bram Schoenmakers 2007-07-04 10:39:15 UTC
*** Bug 132482 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-05-24 21:34:02 UTC
Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.87 (KDE 4.2.87 (KDE 4.3 >= 20090519))
kdelibs svn rev. 971894 / kdebase svn rev. 971894
gwenview svn rev. 972385
on ArchLinux i686 - Kernel 2.6.29.3

Using the testcase ZIP file on comment 5, browsing the two images files in Gwenview it doesn't crash.

Can anyone else confirm this ?
Comment 9 Christoph Feck 2010-07-11 19:29:13 UTC
Crash is from KDE 3, which is unmaintained by KDE developers. Additionally, comment #8 indicates that the bug no longer occurs on KDE 4. If you can still reproduce with a recent KDE release, please reopen.