Segmentation fault

Bug #1056361 reported by 2xyo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poppler (Ubuntu)
New
Undecided
Unassigned
xpdf (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

I try to open a PDF file that contains a form but xpdf segfault when opening.

$ wget --no-check-certificate https://www.formulaires.modernisation.gouv.fr/gf/cerfa_13754.do # (got from http://www.interieur.gouv.fr/sections/a_votre_service/vos_demarches/immatriculation-vehicule/obtention-carte-grise/cerfa/cerfa-1375402/view )

$ mv cerfa_13754.do cerfa_13754.pdf

$ xpdf cerfa_13754.pdf
Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-bold-i-normal--20-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct
***** MediaBox = ll:0,0 ur:612,792
***** CropBox = ll:0,0 ur:612,792
***** Rotate = 0
BT
BDC /Content << /MCID 0 >>
  marked content: Content << /MCID 0 >>
rg 0 0 0
ri /RelativeColorimetric
Tf /T1_0 1
  font: tag=T1_0 name='Helvetica' 1
Tm 10 0 0 10 72 712.72
Tj (To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade )
Segmentation fault (core dumped)

$ xpdf -v
xpdf version 3.03
Copyright 1996-2011 Glyph & Cog, LLC

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu quantal (development branch)
Release: 12.10
Codename: quantal

$ uname -a
Linux yoyo-laptop 3.6.0-999-generic #201209170418 SMP Mon Sep 17 08:19:54 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ free -m
             total used free shared buffers cached
Mem: 3840 2718 1122 0 41 983
-/+ buffers/cache: 1693 2147
Swap: 10239 1130 9109

#
# Backtrace
#
$ gdb /usr/bin/xpdf.real
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/xpdf.real...(no debugging symbols found)...done.
(gdb) run cerfa_13754.pdf
Starting program: /usr/bin/xpdf.real cerfa_13754.pdf
Warning: Cannot convert string "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-bold-i-normal--20-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct
***** MediaBox = ll:0,0 ur:612,792
***** CropBox = ll:0,0 ur:612,792
***** Rotate = 0
BT
BDC /Content << /MCID 0 >>
  marked content: Content << /MCID 0 >>
rg 0 0 0
ri /RelativeColorimetric
Tf /T1_0 1
  font: tag=T1_0 name='Helvetica' 1
Tm 10 0 0 10 72 712.72
Tj (To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade )

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff777171c in GooHash::find(GooString*, int*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
(gdb) bt
#0 0x00007ffff777171c in GooHash::find(GooString*, int*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#1 0x00007ffff77718ce in GooHash::lookup(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#2 0x00007ffff771dbb3 in GlobalParams::findFontFile(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#3 0x00007ffff770499c in GfxFont::locateFont(XRef*, bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#4 0x00007ffff76b2eb5 in SplashOutputDev::doUpdateFont(GfxState*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#5 0x00007ffff76b3562 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#6 0x00007ffff76ff540 in Gfx::doShowText(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#7 0x00007ffff77004f9 in Gfx::opShowText(Object*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#8 0x00007ffff76f89a4 in Gfx::go(bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#9 0x00007ffff76f8e10 in Gfx::display(Object*, bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#10 0x00007ffff77391d4 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#11 0x0000555555588daa in ?? ()
#12 0x000055555558c560 in ?? ()
#13 0x000055555558ef86 in ?? ()
#14 0x0000555555586bd2 in ?? ()
#15 0x000055555559c892 in ?? ()
#16 0x000055555558d453 in ?? ()
#17 0x000055555557e11a in main ()

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: xpdf 3.03-9ubuntu5
Uname: Linux 3.6.0-999-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
Date: Tue Sep 25 19:20:58 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64+mac (20120917)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xpdf
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
2xyo (2xyo) wrote :
Revision history for this message
2xyo (2xyo) wrote :
Download full text (4.1 KiB)

BackTrace with debug symbols :

$ gdb /usr/bin/xpdf.real
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/xpdf.real...Reading symbols from /usr/lib/debug/.build-id/86/6b0cb196d8769dee9568189352a597d0d91ca4.debug...done.
done.
(gdb) run cerfa_13754-02.pdf
Starting program: /usr/bin/xpdf.real cerfa_13754-02.pdf
***** MediaBox = ll:0,0 ur:612,792
***** CropBox = ll:0,0 ur:612,792
***** Rotate = 0
BT
BDC /Content << /MCID 0 >>
  marked content: Content << /MCID 0 >>
rg 0 0 0
ri /RelativeColorimetric
Tf /T1_0 1
  font: tag=T1_0 name='Helvetica' 1
Tm 10 0 0 10 72 712.72
Tj (To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade )

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff777171c in GooHash::find(GooString*, int*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
(gdb) bt
#0 0x00007ffff777171c in GooHash::find(GooString*, int*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#1 0x00007ffff77718ce in GooHash::lookup(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#2 0x00007ffff771dbb3 in GlobalParams::findFontFile(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#3 0x00007ffff770499c in GfxFont::locateFont(XRef*, bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#4 0x00007ffff76b2eb5 in SplashOutputDev::doUpdateFont(GfxState*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#5 0x00007ffff76b3562 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#6 0x00007ffff76ff540 in Gfx::doShowText(GooString*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#7 0x00007ffff77004f9 in Gfx::opShowText(Object*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#8 0x00007ffff76f89a4 in Gfx::go(bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#9 0x00007ffff76f8e10 in Gfx::display(Object*, bool) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#10 0x00007ffff77391d4 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.28
#11 0x0000555555588daa in PDFCore::needTile (this=0x555555855b40, page=0x55555584d380, x=0, y=0) at build/PDFCore.cc:896
#12 0x000055555558c560 in PDFCore::update (this=0x555555855b40, topPageA=<optimized out>, scrollXA=<optimized out>, scrollYA=<optimized out>, zoomA=0, rotateA=<optimized out>, force=<optimized out>, addToHist=true,
    adjustScrollX=true) at build/PDFCore.cc:718
#13 0x000055555558ef86 in XPDFCore::update (this=0x555555855b40, topPageA=<optimized out>, scrollXA=<optimized out>, scrollYA=<opt...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.