Bug 16092

Summary: Crashed while opening PDF document
Product: poppler Reporter: Carlos Garcia Campos <carlosgc>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Trace while opening the file

Description Carlos Garcia Campos 2008-05-25 10:25:54 UTC
Created attachment 16729 [details]
Trace while opening the file

Bug forwarded from Evince: http://bugzilla.gnome.org/show_bug.cgi?id=532767

"Evince crashed (and so does Okular and Foxit Reader) when opening one of the
files from this page:

http://www.tu-harburg.de/parallel/imbi2/vorlesung.html

One file that crashes:

http://www.tu-harburg.de/parallel/imbi2/skripten/2/kapitel2.pdf

Acrobat Reader opens them fine, but who wants to use that? :)

I'll attach a trace."

I got a similar trace with glib demo:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb70a3720 (LWP 10328)]
DecryptStream::getChar (this=0x93895d8) at Decrypt.cc:270
270	      c = state.aes.buf[state.aes.bufIdx++];
Current language:  auto; currently c++
(gdb) bt
#0  DecryptStream::getChar (this=0x93895d8) at Decrypt.cc:270
#1  0xb7eba78c in Parser::getObj (this=0x9387ff0, obj=0xbf9e13c0, fileKey=0x93878b4 "F=��TT�,\027ᦫQ\207��", encAlgorithm=cryptAES, keyLength=16, 
    objNum=297, objGen=0) at Parser.cc:127
#2  0xb7ebabc0 in Parser::getObj (this=0x9387ff0, obj=0xbf9e1430, fileKey=0x93878b4 "F=��TT�,\027ᦫQ\207��", encAlgorithm=cryptAES, keyLength=16, 
    objNum=297, objGen=0) at Parser.cc:86
#3  0xb7ebabc0 in Parser::getObj (this=0x9387ff0, obj=0xbf9e14a0, fileKey=0x93878b4 "F=��TT�,\027ᦫQ\207��", encAlgorithm=cryptAES, keyLength=16, 
    objNum=297, objGen=0) at Parser.cc:86
#4  0xb7ebabc0 in Parser::getObj (this=0x9387ff0, obj=0xbf9e15f0, fileKey=0x93878b4 "F=��TT�,\027ᦫQ\207��", encAlgorithm=cryptAES, keyLength=16, 
    objNum=297, objGen=0) at Parser.cc:86
#5  0xb7ecb0bb in XRef::fetch (this=0x9387860, num=297, gen=0, obj=0xbf9e15f0) at XRef.cc:910
#6  0xb7e56e30 in Catalog (this=0x9387a60, xrefA=0x9387860) at XRef.h:80
#7  0xb7ebb65e in PDFDoc::setup (this=0x9387438, ownerPassword=0x0, userPassword=0x0) at PDFDoc.cc:215
#8  0xb7ebc4e3 in PDFDoc (this=0x9387438, fileNameA=0x93873d0, ownerPassword=0x0, userPassword=0x0, guiDataA=0x0) at PDFDoc.cc:104
#9  0xb7fad4c5 in poppler_document_new_from_file (uri=0x9371578 "file:///tmp/kapitel2.pdf", password=0x0, error=0xbf9e1734) at poppler-document.cc:169
#10 0x0804d8ac in main (argc=Cannot access memory at address 0x0
) at main.c:169

It crashes with xpdf too.
Comment 1 Albert Astals Cid 2008-05-25 10:37:01 UTC
Given the backtrace a duplicate of 13972

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.