Segmentation fault immediately after startup

Bug #788173 reported by Ralf Hildebrandt
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
xpdf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xpdf

$ xpdf lehre_kliniv.pdf
Segmentation fault

I tried several files from different sources - it always crashes.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xpdf 3.02-12ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed May 25 17:02:07 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xpdf
UpgradeStatus: Upgraded to natty on 2011-04-12 (43 days ago)

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :
Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

In GDB I'm getting:

(gdb) set args lehre_kliniv.pdf
(gdb) run
Starting program: /usr/bin/xpdf lehre_kliniv.pdf

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff71715d8 in CMapCache::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
(gdb) bt
#0 0x00007ffff71715d8 in CMapCache::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
#1 0x00007ffff71af60d in GlobalParams::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
#2 0x00007ffff719a54f in GfxCIDFont::GfxCIDFont(XRef*, char*, Ref, GooString*, Dict*) () from /usr/lib/libpoppler.so.13
#3 0x00007ffff719b523 in GfxFont::makeFont(XRef*, char*, Ref, Dict*) () from /usr/lib/libpoppler.so.13
#4 0x00007ffff719b6cf in GfxFontDict::GfxFontDict(XRef*, Ref*, Dict*) () from /usr/lib/libpoppler.so.13
#5 0x00007ffff7183be2 in GfxResources::GfxResources(XRef*, Dict*, GfxResources*) () from /usr/lib/libpoppler.so.13
#6 0x00007ffff7195c2a in Gfx::Gfx(XRef*, OutputDev*, int, Dict*, Catalog*, double, double, PDFRectangle*, PDFRectangle*, int, bool (*)(void*), void*) () from /usr/lib/libpoppler.so.13
#7 0x00007ffff71c6e87 in Page::createGfx(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, Catalog*, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.13
#8 0x00007ffff71c710d in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, Catalog*, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.13
#9 0x00000000004149bc in ?? ()
#10 0x0000000000417d71 in ?? ()
#11 0x000000000041a7ad in ?? ()
#12 0x0000000000412755 in ?? ()
#13 0x0000000000426e18 in ?? ()
#14 0x0000000000418bdd in ?? ()
#15 0x0000000000427b7c in ?? ()
#16 0x00007ffff65aceff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x000000000040adf9 in ?? ()
#18 0x00007fffffffe238 in ?? ()
#19 0x000000000000001c in ?? ()
#20 0x0000000000000002 in ?? ()
#21 0x00007fffffffe52a in ?? ()
#22 0x00007fffffffe538 in ?? ()
#23 0x0000000000000000 in ?? ()
(gdb)

Revision history for this message
UWP (uwp) wrote :

Same here. Here's my data compared to Ralf:

DistroRelease: Ubuntu 11.04
Package: xpdf 3.02-12ubuntu2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :
Download full text (3.2 KiB)

With debug symbols

(gdb) set args lehre_kliniv.pdf
(gdb) run
Starting program: /usr/bin/xpdf lehre_kliniv.pdf

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff71715d8 in CMapCache::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
(gdb) bt
#0 0x00007ffff71715d8 in CMapCache::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
#1 0x00007ffff71af60d in GlobalParams::getCMap(GooString*, GooString*, Stream*) () from /usr/lib/libpoppler.so.13
#2 0x00007ffff719a54f in GfxCIDFont::GfxCIDFont(XRef*, char*, Ref, GooString*, Dict*) () from /usr/lib/libpoppler.so.13
#3 0x00007ffff719b523 in GfxFont::makeFont(XRef*, char*, Ref, Dict*) () from /usr/lib/libpoppler.so.13
#4 0x00007ffff719b6cf in GfxFontDict::GfxFontDict(XRef*, Ref*, Dict*) () from /usr/lib/libpoppler.so.13
#5 0x00007ffff7183be2 in GfxResources::GfxResources(XRef*, Dict*, GfxResources*) () from /usr/lib/libpoppler.so.13
#6 0x00007ffff7195c2a in Gfx::Gfx(XRef*, OutputDev*, int, Dict*, Catalog*, double, double, PDFRectangle*, PDFRectangle*, int, bool (*)(void*), void*) () from /usr/lib/libpoppler.so.13
#7 0x00007ffff71c6e87 in Page::createGfx(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, Catalog*, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.13
#8 0x00007ffff71c710d in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, Catalog*, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.13
#9 0x00000000004149bc in PDFCore::needTile (this=0x6c4b80, page=0x6bf1f0, x=0, y=0) at build/PDFCore.cc:843
#10 0x0000000000417d71 in PDFCore::update (this=0x6c4b80, topPageA=<value optimized out>, scrollXA=<value optimized out>, scrollYA=<value optimized out>, zoomA=0,
    rotateA=<value optimized out>, force=<value optimized out>, addToHist=true) at build/PDFCore.cc:666
#11 0x000000000041a7ad in XPDFCore::update (this=0x6c4b80, topPageA=<value optimized out>, scrollXA=<value optimized out>, scrollYA=<value optimized out>, zoomA=<value optimized out>,
    rotateA=<value optimized out>, force=<value optimized out>, addToHist=true) at build/XPDFCore.cc:290
#12 0x0000000000412755 in PDFCore::displayPage (this=<value optimized out>, topPageA=<value optimized out>, zoomA=<value optimized out>, rotateA=<value optimized out>,
    scrollToTop=<value optimized out>, addToHist=<value optimized out>) at build/PDFCore.cc:294
#13 0x0000000000426e18 in displayPage (this=0x6a25c0, appA=<value optimized out>, fileName=0x6739c0, pageA=<value optimized out>, destName=0x0, fullScreen=<value optimized out>,
    ownerPassword=0x0, userPassword=0x0) at build/XPDFViewer.cc:462
#14 XPDFViewer::XPDFViewer (this=0x6a25c0, appA=<value optimized out>, fileName=0x6739c0, pageA=<value optimized out>, destName=0x0, fullScreen=<value optimized out>, ownerPassword=0x0,
    userPassword=0x0) at build/XPDFViewer.cc:308
#15 0x0000000000418bdd in XPDFApp::open (this=0x65e840, fileName=0x6739c0, page=1, ownerPassword=0x0, userPassword=<value optimized out>) at build/XPDFApp.cc:228
#16 0x0000000000427b7c in main (argc=2, argv=<v...

Read more...

Revision history for this message
ulugeyik (durduran) wrote :

I also have the same problem:
xpdf sil.pdf
Segmentation fault

Changed in xpdf (Ubuntu):
status: New → Confirmed
Revision history for this message
UWP (uwp) wrote :

Just go to this location, there's a workaround for you:

https://bugs.launchpad.net/ubuntu/+source/xpdf/+bug/669211

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.