Bug 75861 - konqueror crashes in kfile ps plugin - kghostview dsc function
Summary: konqueror crashes in kfile ps plugin - kghostview dsc function
Status: RESOLVED FIXED
Alias: None
Product: kfile-plugins
Classification: Applications
Component: ps (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-22 21:14 UTC by Frank Pieczynski
Modified: 2006-03-27 15:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Pieczynski 2004-02-22 21:14:59 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.1 
OS:          Linux

Hello,
konqueror crashes inside the ps kfile plugin.
KDE is 3.2, it's a 64bit system on dual AMD Opteron.
May be a 64bit problem?

Regards,
Frank

[New Thread 16384 (LWP 29328)]
0x0000002a9849db9c in waitpid () from /lib64/libpthread.so.0
#0  0x0000002a9849db9c in waitpid () from /lib64/libpthread.so.0
#1  0x0000002a96414e71 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x0000002a9849cbde in __pthread_sighandler () from /lib64/libpthread.so.0
#3  <signal handler called>
#4  0x0000002a9c068e2b in dsc_copy_string(char*, unsigned, char*, unsigned, unsigned*) () from /opt/kde3/lib/kde3/kfile_ps.so
#5  0x0000002a9c06a519 in dsc_parse_custom_colours(CDSC_s*) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#6  0x0000002a9c066f9f in dsc_scan_comments(CDSC_s*) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#7  0x0000002a9c06332a in dsc_scan_data(CDSC_s*, char const*, int) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#8  0x0000002a9c06b83d in KDSCScanHandlerByLine::scanData(char*, unsigned) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#9  0x0000002a9c06b59d in KDSC::scanData(char*, unsigned) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#10 0x0000002a9c061eaa in KPSPlugin::readInfo(KFileMetaInfo&, unsigned) ()
   from /opt/kde3/lib/kde3/kfile_ps.so
#11 0x0000002a95a57552 in KFileMetaInfo::init(KURL const&, QString const&, unsigned) () from /opt/kde3/lib/libkio.so.4
#12 0x0000002a95a573e9 in KFileMetaInfo::KFileMetaInfo(KURL const&, QString const&, unsigned) () from /opt/kde3/lib/libkio.so.4
#13 0x0000002a95a28412 in KFileItem::metaInfo(bool, int) const ()
   from /opt/kde3/lib/libkio.so.4
#14 0x0000002a95a26954 in KFileItem::getToolTipText(int) ()
   from /opt/kde3/lib/libkio.so.4
#15 0x0000002a993b59d1 in KFileTip::setItem(KFileIVI*) ()
   from /opt/kde3/lib/libkonq.so.4
#16 0x0000002a993b7af8 in KonqIconViewWidget::slotOnItem(QIconViewItem*) ()
   from /opt/kde3/lib/libkonq.so.4
#17 0x0000002a993bfbb1 in KonqIconViewWidget::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkonq.so.4
#18 0x0000002a96e8ba2e in QObject::activate_signal(QConnectionList*, QUObject*)
    () from /opt/qt-3.3.0/lib/libqt-mt.so.3
#19 0x0000002a97174b4a in QIconView::onItem(QIconViewItem*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#20 0x0000002a9700f57e in QIconView::contentsMouseMoveEvent(QMouseEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#21 0x0000002a993ba934 in KonqIconViewWidget::contentsMouseMoveEvent(QMouseEvent*) () from /opt/kde3/lib/libkonq.so.4
#22 0x0000002a96f7aa5b in QScrollView::viewportMouseMoveEvent(QMouseEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#23 0x0000002a96f7a376 in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#24 0x0000002a97013224 in QIconView::eventFilter(QObject*, QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#25 0x0000002a96e89607 in QObject::activate_filters(QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#26 0x0000002a96e894eb in QObject::event(QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#27 0x0000002a96ebaf83 in QWidget::event(QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#28 0x0000002a96e38980 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#29 0x0000002a96e3860c in QApplication::notify(QObject*, QEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#30 0x0000002a9638fd66 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#31 0x0000002a96dd933f in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#32 0x0000002a96dd77dc in QApplication::x11ProcessEvent(_XEvent*) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#33 0x0000002a96deb9c1 in QEventLoop::processEvents(unsigned) ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#34 0x0000002a96e48805 in QEventLoop::enterLoop() ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#35 0x0000002a96e48712 in QEventLoop::exec() ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#36 0x0000002a96e38b95 in QApplication::exec() ()
   from /opt/qt-3.3.0/lib/libqt-mt.so.3
#37 0x0000002a9967a227 in kdemain () from /opt/kde3/lib/libkdeinit_konqueror.so
#38 0x0000002a99508ac9 in kdeinitmain () from /opt/kde3/lib/kde3/konqueror.so
#39 0x0000000000406c84 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#40 0x0000000000407b86 in handle_launcher_request(int) ()
#41 0x00000000004081e7 in handle_requests(int) ()
#42 0x0000000000409164 in main ()
Comment 1 Luís Pedro Coelho 2004-02-25 13:19:54 UTC
reassigning....
(shouldn't this be kfile-plugins / ps which doesn't seem to exist?)
Comment 2 Brad Hards 2004-02-28 00:57:39 UTC
Can you provide a test file that shows the problem? 
Then if it kills my 32 bit boxen, we at least know it isn't a 64 bit problem....
Comment 3 Brad Hards 2004-02-28 01:14:47 UTC
Per Luis' comment, reassigning to kfile-plugins/ps (newly created with Wilco as the owner, since he seems to be the original author - I'll take it over if he'd rather not own it).
Comment 4 Luís Pedro Coelho 2004-03-05 02:32:03 UTC
CVS commit by luis_pedro: 

Backport of earlier fix (simplified for BRANCH, ie no cleanup):
	check return value of scanData

CCMAIL: 75861-close@bugs.kde.org


  M +2 -2      kfile_ps.cpp   1.10.2.1


--- kdegraphics/kfile-plugins/ps/kfile_ps.cpp  #1.10:1.10.2.1
@@ -67,5 +67,5 @@ bool KPSPlugin::readInfo( KFileMetaInfo&
         && !_endComments )
     {
-        _dsc->scanData( buf, count );
+        if ( !_dsc->scanData( buf, count ) ) break;
     }
     fclose( fp );


Comment 5 Matt Rogers 2006-03-27 15:34:00 UTC
*** Bug 124345 has been marked as a duplicate of this bug. ***