Bug 127512

Summary: kpdf freezes the system untill it's killed by the VM
Product: [Unmaintained] kpdf Reporter: DragonK <dragonk>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The PDF causing the problems

Description DragonK 2006-05-17 15:53:05 UTC
Version:           0.5.2 (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.6 
OS:                Linux

kpdf manages to lock my entire system; tested this on three different machines, same results. One one of them the kernel managed to kill it.
Comment 1 DragonK 2006-05-17 15:53:50 UTC
Created attachment 16139 [details]
The PDF causing the problems
Comment 2 Albert Astals Cid 2006-05-19 20:02:33 UTC
beware the file is bzip2ed
Comment 3 Albert Astals Cid 2006-05-19 20:04:33 UTC
works perfectly here, can you try reducing optimizations to a simple -O2 ?
Comment 4 Thomas Zander 2006-07-03 09:09:55 UTC
freeze != crash. Reducing severity.

I can confirm the bug on my debian amd-64 system with self compiled kpdf (0.5.3).
After mere seconds my machine starts to swap and top shows 400Mb in use by kpdf (400Mb res, 950Mb virt).

So, if this works fine for Albert, maybe he has enough memory?
Comment 5 Albert Astals Cid 2006-07-03 10:43:16 UTC
Oh, it's failing at work now, i'll see if it works at home or not and try to fix it ( i should not be doing that from work ) 
/me hides from boss
Comment 6 Albert Astals Cid 2006-07-04 22:27:23 UTC
Yeah it fails here too, i'll investigate a bit
Comment 7 Albert Astals Cid 2006-07-26 21:08:54 UTC
Well, the problem is that the pdf requests a font of size 1400000 or something (maybe discounted at the number of 0) so obviously freetype DIES completely when trying to malloc that.

Any idea on how to solve it besides limiting maximum font size to an arbitrary number?
Comment 8 DragonK 2007-01-30 09:44:56 UTC
Tested again with kpdf 3.5.6, same problem. 

IMHO it's ok to limit the font size for ... huge values :)
Comment 9 DragonK 2008-08-02 09:19:41 UTC
This works now in okular (kde-4), perhaps this bug should be closed...
Comment 10 Albert Astals Cid 2010-12-01 20:33:51 UTC
This does seems to work in Okular, that is the KDE 4 successor of KPDF. KPDF is no longer developed and you are encouraged to switch to Okular.
If you find this does not work in Okular, please open a new bug report against it

Thanks for using KDE.