Bug 130846 - kpdf crash during opening file
Summary: kpdf crash during opening file
Status: RESOLVED NOT A BUG
Alias: None
Product: kpdf
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-15 02:22 UTC by Wojciech Wierchoła
Modified: 2006-08-05 00:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Wierchoła 2006-07-15 02:22:16 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
Compiler:          x86_64-pc-linux-gnu-3.4.6/amd64-vanilla 
OS:                Linux

Steps:
1. Open file: http://link4.pl/_files/LInk4_OWU(1).pdf
2. Crash:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 47326156115696 (LWP 15184)]
[New Thread 1082132816 (LWP 15185)]
0x00002b0af999bc5b in __read_nocancel () from /lib/libpthread.so.0
#0  0x00002b0af999bc5b in __read_nocancel () from /lib/libpthread.so.0
#1  0x00002b0af9bf807f in XWriteBitmapFile () from /usr/lib64/libX11.so.6
#2  0x00002b0af9bfba02 in _XRead () from /usr/lib64/libX11.so.6
#3  0x00002b0af9bfc91d in _XReply () from /usr/lib64/libX11.so.6
#4  0x00002b0af9bddc4a in XGetWindowProperty () from /usr/lib64/libX11.so.6
#5  0x00002b0af75a8eef in NETWinInfo::update ()
   from /usr/kde/3.5/lib64/libkdecore.so.4
#6  0x00002b0af75d9236 in KWin::WindowInfo::WindowInfo ()
   from /usr/kde/3.5/lib64/libkdecore.so.4
#7  0x00002b0af75d94b9 in KWin::windowInfo ()
   from /usr/kde/3.5/lib64/libkdecore.so.4
#8  0x00002b0af6fa17b6 in KMainWindow::saveWindowSize ()
   from /usr/kde/3.5/lib64/libkdeui.so.4
#9  0x00002b0af701678a in KMainWindow::saveMainWindowSettings ()
   from /usr/kde/3.5/lib64/libkdeui.so.4
#10 0x00002b0af701686b in KMainWindow::saveAutoSaveSettings ()
   from /usr/kde/3.5/lib64/libkdeui.so.4
#11 0x00002b0af70ad2eb in KMainWindow::qt_invoke ()
   from /usr/kde/3.5/lib64/libkdeui.so.4
#12 0x00002b0af67b9911 in KParts::MainWindow::qt_invoke ()
   from /usr/kde/3.5/lib64/libkparts.so.2
#13 0x000000000040999d in ?? ()
#14 0x00002b0af82a3818 in QObject::activate_signal ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#15 0x00002b0af82a3f82 in QObject::activate_signal ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#16 0x00002b0af82c0835 in QTimer::event () from /usr/qt/3/lib64/libqt-mt.so.3
#17 0x00002b0af824882d in QApplication::internalNotify ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#18 0x00002b0af8248bbe in QApplication::notify ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#19 0x00002b0af7677431 in KApplication::notify ()
   from /usr/kde/3.5/lib64/libkdecore.so.4
#20 0x00002b0af823d3e0 in QEventLoop::activateTimers ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#21 0x00002b0af81fd406 in QEventLoop::processEvents ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#22 0x00002b0af825ccb9 in QEventLoop::enterLoop ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#23 0x00002b0af825cc12 in QEventLoop::exec ()
   from /usr/qt/3/lib64/libqt-mt.so.3
#24 0x000000000040a127 in ?? ()
#25 0x00002b0afa85b136 in __libc_start_main () from /lib/libc.so.6
#26 0x0000000000408cb9 in ?? ()
#27 0x00007fffb444a6b8 in ?? ()
#28 0x000000000000001c in ?? ()
#29 0x0000000000000008 in ?? ()
#30 0x00007fffb444c593 in ?? ()
#31 0x00007fffb444c598 in ?? ()
#32 0x00007fffb444c5c0 in ?? ()
#33 0x00007fffb444c5c6 in ?? ()
#34 0x00007fffb444c5cb in ?? ()
#35 0x00007fffb444c5d5 in ?? ()
#36 0x00007fffb444c5da in ?? ()
#37 0x00007fffb444c5e3 in ?? ()
#38 0x0000000000000000 in ?? ()
Comment 1 Albert Astals Cid 2006-07-16 20:12:13 UTC
SVN commit 563106 by aacid:

don't crash when we can not process a GfxImageColorMap correctly
BUGS: 130846


 M  +3 -0      GfxState.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/GfxState.cc #563105:563106
@@ -3209,6 +3209,9 @@
   obj.free();
  err1:
   ok = gFalse;
+  for (k = 0; k < gfxColorMaxComps; ++k) {
+    lookup[k] = NULL;
+  }
 }
 
 GfxImageColorMap::GfxImageColorMap(GfxImageColorMap *colorMap) {
Comment 2 Wojciech Wierchoła 2006-08-04 19:29:11 UTC
It works by ~1-2 seconds (longer than formerly) and crash :/

(different computer at this time)

OS: Gentoo Linux
Compiler: i686-pc-linux-gnu-3.4.6/vanilla
APP: KPDF 0.5.4 (KDE 3.5.4)

[OT]
KGhostScript (0.20) does not crash but it displays some part of this PDF incorrectly - as empty.
[/OT]
Comment 3 Albert Astals Cid 2006-08-04 19:39:21 UTC
Can you please do this?

ldd `kde-config --prefix`/lib/kde3/libkpdfpart.so | grep poppler

If it appears something like 

        libpoppler.so.1 => /usr/lib/libpoppler.so.1 (0x00002aaaab686000)

It means your distribution is patching kpdf to make it worse. Discuss with them why they decided to do that.
Comment 4 Wojciech Wierchoła 2006-08-04 19:53:46 UTC
# ldd `kde-config --prefix`/lib/kde3/libkpdfpart.so | grep poppler 

libpoppler.so.1 => /usr/lib/libpoppler.so.1 (0xb6964000)

[OT update]
KGhostScript works fine when switched off antialiasing (in app).
[/OT]
Comment 5 Wojciech Wierchoła 2006-08-04 20:05:12 UTC
Type of bug: SIGABRT. Crash:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1231694160 (LWP 17507)]
[New Thread -1238951008 (LWP 17508)]
0xffffe410 in __kernel_vsyscall ()
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb6cd602b in __read_nocancel () from /lib/libpthread.so.0
#2  0xb6c097be in XWriteBitmapFile () from /usr/lib/libX11.so.6
#3  0xb7581d38 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#4  0xb6c09796 in XWriteBitmapFile () from /usr/lib/libX11.so.6
#5  0x00000014 in ?? ()
#6  0xb6c0d7b8 in _XRead () from /usr/lib/libX11.so.6
#7  0xb695d690 in ?? ()
#8  0xb6c09756 in XWriteBitmapFile () from /usr/lib/libX11.so.6
#9  0x0805eba0 in ?? ()
#10 0xb6c0f9a7 in _XEventsQueued () from /usr/lib/libX11.so.6
#11 0x0000000c in ?? ()
#12 0x0814c578 in ?? ()
#13 0x00000000 in ?? ()
Comment 6 Albert Astals Cid 2006-08-05 00:20:38 UTC
Talk to gentoo developers and tell them not to use poppler in kpdf or update their poppler sources, this patch is fixed in REAL kpdf, but not in what gentoo ships and says it's kpdf.