Bug 211526 - Bogus memory allocation size reading a pdf
Summary: Bogus memory allocation size reading a pdf
Status: RESOLVED DUPLICATE of bug 211376
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.9.2
Platform: unspecified Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 12:06 UTC by gabriele monfardini
Modified: 2009-10-23 16:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A pdf causing "bogus memory allocation size" (101.60 KB, application/x-pdf)
2009-10-23 15:09 UTC, gabriele monfardini
Details
Another pdf that triggers the same bug (108.77 KB, application/x-pdf)
2009-10-23 16:10 UTC, gabriele monfardini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gabriele monfardini 2009-10-23 12:06:12 UTC
Version:           0.9.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Unlisted Binary Package

kde and okular packages come from http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ under jaunty

okular: 4:4.3.2-0ubuntu1~ppa1~jaunty1

After loading the file pdf okular closes echoing on the console "Bogus memory allocation size"

Using gdb:
---------------------------------------------------------------
Starting program: /usr/bin/okular
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffe1a2be750 (LWP 21310)]
Bogus memory allocation size
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /build/buildd/kde4libs-4.3.2/kio/kio/kdirwatch.cpp line 901)
Cancelled INotify (fd 13, 1) for "/home/monfardini/.local/share"

Program exited with code 01.
(gdb) backtrace
No stack.
---------------------------------------------------------------

Note: using pdfinfo I've seen that the file has been created by OpenOffice Impress:
---------------------------------------------------------------
Creator:        Impress                               
Producer:       OpenOffice.org 3.1                    
CreationDate:   Thu Oct 22 10:13:30 2009              
Tagged:         no                                    
Pages:          1                                     
Encrypted:      no                                    
Page size:      842 x 1191 pts (A3)                   
File size:      111384 bytes                          
Optimized:      no                                    
PDF version:    1.4
-----------------------------------------------------------------

The file is handled correctly by xpdf

I'd glad to upload the file pdf if it is possible (I cannot find a way to do it during report wizard)
Comment 1 Dario Andres 2009-10-23 14:42:59 UTC
Upload the PDF using this link: https://bugs.kde.org/attachment.cgi?bugid=211526&action=enter
Thanks
Comment 2 gabriele monfardini 2009-10-23 15:09:51 UTC
Created attachment 37761 [details]
A pdf causing "bogus memory allocation size"

File that allows to reproduce the bug
Comment 3 Dario Andres 2009-10-23 15:39:27 UTC
Mh, here using:

Qt: 4.6.0 (Qt git branch 4.6 commit 52aef13521af2137db15ee878893f5c5150471e5
        Date:   Mon Oct 12 14:18:51 2009 +1000)
KDE: 4.3.72 (KDE 4.3.72 (KDE 4.4 >= 20091015))
kdelibs svn rev. 1038788 / kdebase svn rev. 1038788
on ArchLinux i686 - Kernel 2.6.30.6

With:
kdegraphics svn rev. 1037976
poppler and poppler-qt 0.10.7

and with:
kdegraphics svn rev. 1039462
poppler and poppler-qt 0.12.1

The file is opened properly without closing with such an error message.
Comment 4 gabriele monfardini 2009-10-23 16:10:01 UTC
Created attachment 37764 [details]
Another pdf that triggers the same bug
Comment 5 gabriele monfardini 2009-10-23 16:12:15 UTC
@Dario Andres
Can you please test also this file?
If you can open it without problems, a.k.a. it is fixed in SVN, it's ok for me to close the ticket
Comment 6 Pino Toscano 2009-10-23 16:26:53 UTC
Please check again the upgrades of the Poppler library of your distro, as this can be another case of bug #211376.

(In reply to comment #5)
> If you can open it without problems, a.k.a. it is fixed in SVN, it's ok for me
> to close the ticket

... and even if it wouldn't be bug #211376, the "Bogus memory allocation size" message comes from the Poppler library, and should not cause crashes nor hangs, anyway.
Comment 7 gabriele monfardini 2009-10-23 16:48:44 UTC
I've updated poppler from 0.10.5-1ubuntu2.4 to 0.10.5-1ubuntu2.5

The packet changelog reports of a segfault in Okular with security update (LP: #457985) and refers to CVE-2009-3605

Now the files are opened correctly, even if multiple "Bogus memory allocation size" still appear on the terminal.
Comment 8 Pino Toscano 2009-10-23 16:56:53 UTC

*** This bug has been marked as a duplicate of bug 211376 ***