Bug 691578 - mupdf crashes on some pdfs when built with -ggdb3
Summary: mupdf crashes on some pdfs when built with -ggdb3
Status: RESOLVED WORKSFORME
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: unspecified
Hardware: All Linux
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 04:08 UTC by Graham Gower
Modified: 2011-02-03 11:04 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
dive into python: see http://diveintopython.org/ (1.22 MB, application/octet-stream)
2010-08-27 04:09 UTC, Graham Gower
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Gower 2010-08-27 04:08:15 UTC
The attached pdf reproduces the problem and comes from:
http://diveintopython.org/download/diveintopython-pdf-5.4.zip

ximage: mode 16/16 0000f800 000007e0 0000001f (11,5,0) lsb
ximage: RGBA8888 to RGB565
ximage: XShmPutImage
+ fitz/res_font.c:208: fz_newfontfrombuffer(): freetype: cannot load font: unknown file format
| mupdf/pdf_fontfile.c:131: pdf_loadbuiltinfont(): cannot load freetype font from buffer
| mupdf/pdf_font.c:526: loadsimplefont(): cannot load simple font (12 0 R)
| mupdf/pdf_font.c:979: pdf_loadfont(): cannot load font (12 0 R)
| mupdf/pdf_interpret.c:841: pdf_runkeyword(): cannot load font (12 0 R)
| mupdf/pdf_interpret.c:1463: pdf_runcsifile(): cannot run keyword 'endobj'
| mupdf/pdf_interpret.c:1484: pdf_runcsibuffer(): cannot parse content stream
| mupdf/pdf_interpret.c:1505: pdf_runpage(): cannot parse page content stream
| apps/pdfapp.c:269: pdfapp_showpage(): cannot draw page 1 in 'Dive Into Python'
\ apps/x11_main.c:89: winerror(): aborting

The below error is seen when -ggbd3 is added to CFLAGS, but does not occur otherwise. I have tried gcc-4.4.4 on a native x86_64 build and gcc-4.4.4 cross build for mipsel.
Comment 1 Graham Gower 2010-08-27 04:09:26 UTC
Created attachment 6677 [details]
dive into python: see http://diveintopython.org/
Comment 2 Tor Andersson 2011-02-03 11:04:36 UTC
I cannot reproduce. I have tried both

gcc version 4.4.5 20100728 (prerelease) (Debian 4.4.4-8)

on amd64, and

gcc version 4.4.5 (Debian 4.4.5-8) 

on x86.