Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407521 - kde-base/okular-4.8.1 crashes on valid pdf
Summary: kde-base/okular-4.8.1 crashes on valid pdf
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-09 13:29 UTC by octoploid
Modified: 2012-03-09 20:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description octoploid 2012-03-09 13:29:13 UTC
Crash happens when I try to open a valid pdf file.
Backtrace without debugging info:
rogram received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff0dca700 (LWP 11584)]
0x00007ffff501f307 in FcStringHash () from /usr/lib64/libfontconfig.so.1
(gdb) bt
#0  0x00007ffff501f307 in FcStringHash () from /usr/lib64/libfontconfig.so.1
#1  0x00007ffff501df39 in FcObjectFindByName () from /usr/lib64/libfontconfig.so.1
#2  0x00007ffff501e06e in FcObjectFromName () from /usr/lib64/libfontconfig.so.1
#3  0x00007ffff502081c in IA__FcPatternAdd () from /usr/lib64/libfontconfig.so.1
#4  0x00007ffff5020972 in IA__FcPatternBuild () from /usr/lib64/libfontconfig.so.1
#5  0x00007ffff159daf0 in GlobalParams::getDisplayFont(GfxFont*) () from /usr/lib64/libpoppler.so.19
#6  0x00007ffff15f1a71 in SplashOutputDev::doUpdateFont(GfxState*) () from /usr/lib64/libpoppler.so.19
#7  0x00007ffff15f1dd4 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib64/libpoppler.so.19
#8  0x00007ffff1580d7c in Gfx::doShowText(GooString*) () from /usr/lib64/libpoppler.so.19
#9  0x00007ffff1581481 in Gfx::opShowText(Object*, int) () from /usr/lib64/libpoppler.so.19
#10 0x00007ffff1579520 in Gfx::go(bool) () from /usr/lib64/libpoppler.so.19
#11 0x00007ffff157991e in Gfx::display(Object*, bool) () from /usr/lib64/libpoppler.so.19
#12 0x00007ffff15b5518 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, Catalog*, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) () from /usr/lib64/libpoppler.so.19
#13 0x00007ffff16f3d6f in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const ()
   from /usr/lib64/libpoppler-qt4.so.3
#14 0x00007ffff1744e4f in PDFGenerator::image(Okular::PixmapRequest*) () from /usr/lib/kde4/okularGenerator_poppler.so
#15 0x00007ffff26dc4c9 in Okular::PixmapGenerationThread::run() () from /usr/lib64/libokularcore.so.1
#16 0x00007ffff719563b in ?? () from /usr/lib64/qt4/libQtCore.so.4
#17 0x00007ffff5c9bdfe in start_thread (arg=0x7ffff0dca700) at pthread_create.c:304
#18 0x00007ffff62e815d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

With debugging info:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff0dca700 (LWP 26601)]
FcStringHash (s=0x7fff00000000 <Address 0x7fff00000000 out of bounds>) at fcpat.c:215
215     fcpat.c: No such file or directory.
(gdb) bt
#0  FcStringHash (s=0x7fff00000000 <Address 0x7fff00000000 out of bounds>) at fcpat.c:215
#1  0x00007ffff501df39 in FcObjectFindByName (object=0x7fff00000000 <Address 0x7fff00000000 out of bounds>, insert=1) at fcname.c:153
#2  0x00007ffff501e06e in FcObjectFromName (name=<optimized out>) at fcname.c:323
#3  0x00007ffff502081c in IA__FcPatternAdd (p=0x7fffe80025f0, object=<optimized out>, value=..., append=1) at fcpat.c:544
#4  0x00007ffff5020972 in IA__FcPatternBuild (p=0x0) at fcpat.c:963
#5  0x00007ffff159daf0 in buildFcPattern (font=0x7fffe8009c20)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/GlobalParams.cc:1178
#6  GlobalParams::getDisplayFont (this=0x8306c0, font=0x7fffe8009c20)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/GlobalParams.cc:1212
#7  0x00007ffff15f1a71 in SplashOutputDev::doUpdateFont (this=0x7fffe8002190, state=0x7fffe8769200)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/SplashOutputDev.cc:1784
#8  0x00007ffff15f1dd4 in SplashOutputDev::drawChar (this=0x7fffe8002190, state=0x7fffe8769200, x=<optimized out>, y=<optimized out>, 
    dx=<optimized out>, dy=<optimized out>, originX=<optimized out>, originY=<optimized out>, code=66, nBytes=<optimized out>, u=<optimized out>, 
    uLen=<optimized out>) at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/SplashOutputDev.cc:2104
#9  0x00007ffff1580d7c in Gfx::doShowText (this=0x7fffe8008120, s=0x7fffe80089c0)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/Gfx.cc:3922
#10 0x00007ffff1581481 in Gfx::opShowText (this=0x7fffe8008120, args=0x7ffff0dc9780, numArgs=<optimized out>)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/Gfx.cc:3708
#11 0x00007ffff1579520 in Gfx::go (this=0x7fffe8008120, topLevel=true)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/Gfx.cc:712
#12 0x00007ffff157991e in Gfx::display (this=0x7fffe8008120, obj=<optimized out>, topLevel=true)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/Gfx.cc:679
#13 0x00007ffff15b5518 in Page::displaySlice (this=0x7983d0, out=0x7fffe8002190, hDPI=<optimized out>, vDPI=<optimized out>, rotate=0, 
    useMediaBox=false, crop=true, sliceX=<optimized out>, sliceY=-1, sliceW=-1, sliceH=-1, printing=false, catalog=0x7a0330, abortCheckCbk=0, 
    abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
    at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/poppler/Page.cc:483
#14 0x00007ffff16f3d6f in Poppler::Page::renderToImage (this=0x7fffe80013b0, xres=126.03238530349898, yres=<optimized out>, x=-1, y=-1, w=-1, h=-1, 
    rotate=Poppler::Page::Rotate0) at /var/tmp/portage/app-text/poppler-0.18.4/work/poppler-0.18.4/qt4/src/poppler-page.cc:218
#15 0x00007ffff1744e4f in PDFGenerator::image (this=0x7f9d90, request=0x829970)
    at /var/tmp/portage/kde-base/okular-4.8.1/work/okular-4.8.1/generators/poppler/generator_pdf.cpp:793
#16 0x00007ffff26dc4c9 in Okular::PixmapGenerationThread::run (this=0x9f0740)
    at /var/tmp/portage/kde-base/okular-4.8.1/work/okular-4.8.1/core/generator_p.cpp:64
#17 0x00007ffff719563b in ?? () from /usr/lib64/qt4/libQtCore.so.4
#18 0x00007ffff5c9bdfe in start_thread (arg=0x7ffff0dca700) at pthread_create.c:304
#19 0x00007ffff62e815d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

media-libs/fontconfig-2.8.0
app-text/poppler-0.18.4



Reproducible: Always
Comment 1 octoploid 2012-03-09 20:33:28 UTC
Further investigation showed that this was a glibc problem.
Fixed by downgrading from git head to 2.15.