Bug 221829 - Okular PDF backend crashes with "Bogus memory allocation size"
Summary: Okular PDF backend crashes with "Bogus memory allocation size"
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 18:12 UTC by Andreas Kuhl
Modified: 2010-01-12 09:45 UTC (History)
0 users

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


Attachments
PDF that causes Okular to crash (602.66 KB, application/pdf)
2010-01-08 18:52 UTC, Andreas Kuhl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kuhl 2010-01-08 18:12:36 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Updated to KDE SC 4.3.90 (4.4 RC1) today. Since then, Okular keeps crashing on most PDFs with "Bogus memory allocation size". Some PDFs seem to work, could not figure out the differences yet.

Okular worked fine in KDE SC 4.3.85 (4.4 Beta2) with the same PDFs it is now crashing with.
Comment 1 Pino Toscano 2010-01-08 18:24:43 UTC
What is the version of your Poppler library?
Can you attach the smallest public document that shows the behaviour?
Comment 2 Andreas Kuhl 2010-01-08 18:51:47 UTC
My poppler versions: http://pastebin.ca/1742975

I attached a public document which causes Okular to crash. Maybe the PDF generator is the criteria? All ghostscript generated PDFs seem to work fine, the Adobe Distiller ones crash reliably.
Comment 3 Andreas Kuhl 2010-01-08 18:52:38 UTC
Created attachment 39697 [details]
PDF that causes Okular to crash
Comment 4 Pino Toscano 2010-01-08 19:04:12 UTC
Old poppler, which most probably is the source of your issues.
Ask your distribution to update it (eg to 0.12.x).
Comment 5 Andreas Kuhl 2010-01-08 19:34:15 UTC
I opened an upstream bug in the Novell bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=569318
Comment 6 Andreas Kuhl 2010-01-08 19:52:11 UTC
Just to be sure: If the old libpoppler4 was the problem, wouldn't the crashes happen before on KDE 4.3.x? But they did not, the same PDF worked fine there...
Comment 7 Andreas Kuhl 2010-01-12 09:45:35 UTC
Ok, I can confirm the RESOLVED UPSTRAM.

I saw that libpoppler4 0.10.1 recieved a patch fromthe openSUSE repositories which caused the trouble. Removing the patch fixed the issue. But since this was a patch with backported security fixes, I cloned the latest version of poppler from GIT, built and installed it. All PDFs work fine now again.