Bug 42793 - pdftotext program crash while parsing the PDF document. poppler-0.18.x
Summary: pdftotext program crash while parsing the PDF document. poppler-0.18.x
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) FreeBSD
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 09:49 UTC by narinder
Modified: 2011-11-11 07:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description narinder 2011-11-10 09:49:55 UTC
[npaul@my33smsm ~/work/pdf/poppler-0.18.1/utils/.libs]$ gdb ./pdftotext ../pdftotext.59604.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `pdftotext'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/home/npaul/work/pdf/poppler-0.18.1/poppler/.libs/libpoppler.so.19...done.
Loaded symbols for /usr/home/npaul/work/pdf/poppler-0.18.1/poppler/.libs/libpoppler.so.19
Reading symbols from /usr/local/lib/liblcms.so.1...done.
Loaded symbols for /usr/local/lib/liblcms.so.1
Reading symbols from /usr/local/lib/libpng.so.6...done.
Loaded symbols for /usr/local/lib/libpng.so.6
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000000080079b452 in TextWord (this=0x80195c300, state=Variable "state" is not available.
) at GfxState.h:1322
1322        { fillColorSpace->getRGB(&fillColor, rgb); }
[New Thread 0x801901120 (LWP 100286)]
(gdb) bt
#0  0x000000080079b452 in TextWord (this=0x80195c300, state=Variable "state" is not available.
) at GfxState.h:1322
#1  0x000000080079b6cd in TextPage::beginWord (this=0x80195f0e0, state=0x801974c00, x0=79.849999999999994, y0=569) at TextOutputDev.cc:2162
#2  0x000000080079be86 in TextPage::addChar (this=0x80195f0e0, state=0x801974c00, x=79.849999999999994, y=569, dx=16.392000000000003, dy=0, c=86, nBytes=1, u=0x801973d58, uLen=1)
    at TextOutputDev.cc:2261
#3  0x000000080071c213 in Gfx::doShowText (this=0x80196d100, s=0x801929890) at Gfx.cc:3915
#4  0x000000080071cb01 in Gfx::opShowText (this=0x80196d100, args=0x7fffffffe490, numArgs=Variable "numArgs" is not available.
) at Gfx.cc:3701
#5  0x0000000800711969 in Gfx::go (this=0x80196d100, topLevel=true) at Gfx.cc:711
#6  0x0000000800719d46 in Gfx::display (this=0x80196d100, obj=0x7fffffffe7d0, topLevel=Variable "topLevel" is not available.
) at Gfx.cc:678
#7  0x00000008007620db in Page::displaySlice (this=0x80195c260, out=0x80195c080, hDPI=72, vDPI=72, rotate=0, useMediaBox=Variable "useMediaBox" is not available.
) at Page.cc:483
#8  0x0000000800762168 in Page::display (this=Variable "this" is not available.
) at Page.cc:412
#9  0x0000000800766de1 in PDFDoc::displayPages (this=0x801930080, out=0x80195c080, firstPage=Variable "firstPage" is not available.
) at PDFDoc.cc:453
#10 0x0000000000403a40 in main (argc=3, argv=0x7fffffffeb78) at pdftotext.cc:374
Comment 1 narinder 2011-11-10 09:55:10 UTC
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Error: Bad color space - expected name or array
Segmentation fault: 11 (core dumped)
Comment 2 Albert Astals Cid 2011-11-11 01:48:32 UTC
Not critical. 
Attach the document causing the crash.
Comment 3 Albert Astals Cid 2011-11-11 07:40:40 UTC
Will be in poppler 0.18.2


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.