Bug 691578

Summary: mupdf crashes on some pdfs when built with -ggdb3
Product: MuPDF Reporter: Graham Gower <graham.gower>
Component: fitzAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: All   
OS: Linux   
Customer: Word Size: ---
Attachments: dive into python: see http://diveintopython.org/

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.