Summary: | >media-libs/freetype-2.3.5 crashes on amd64 when being called from app-text/evince-2.22* when scrolling in a particular pdf file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jim Faulkner <dogshu> |
Component: | [OLD] Library | Assignee: | Gentoo Fonts Team <fonts> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amd64, fonts, gnome |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://lists.gnu.org/archive/html/freetype-devel/2008-08/msg00023.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jim Faulkner
2008-11-16 18:06:43 UTC
This one is fonts/toolchain. Freetype makes a mess dividing by 0. Upstream thinks it's GCC, though. Doesn't happen on 32-bit platforms according to upstream who is on x86, using gcc 4.1.2. I can reproduce with gcc-4.3.2 on amd64 and so can poppler upstream with 4.2.3 on amd64. List of links to peruse: http://lists.gnu.org/archive/html/freetype-devel/2008-08/msg00023.html http://bugs.freedesktop.org/show_bug.cgi?id=17045 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494350 Backtrace: Program received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x423bd950 (LWP 7193)] 0x00007f9dc863b47e in cff_parse_real (start=0x7f9dc11e56eb "\237\036y\232\231@/\036�", limit=<value optimized out>, power_ten=0, scaling=0x0) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffparse.c:361 361 if ( ( number / power_tens[fraction_length] ) > 0x7FFFL ) (gdb) bt #0 0x00007f9dc863b47e in cff_parse_real (start=0x7f9dc11e56eb "\237\036y\232\231@/\036�", limit=<value optimized out>, power_ten=0, scaling=0x0) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffparse.c:361 #1 0x00007f9dc863b5d0 in cff_parse_num (d=<value optimized out>) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffparse.c:389 #2 0x00007f9dc863b849 in cff_parser_run (parser=<value optimized out>, start=<value optimized out>, limit=0x7f9dc11e5731 "") at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffparse.c:782 #3 0x00007f9dc863f9ad in cff_subfont_load (font=0x7f9dbd20d398, idx=<value optimized out>, font_index=<value optimized out>, stream=0x7f9dbc008c10, base_offset=0) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffload.c:1309 #4 0x00007f9dc863fe5e in cff_face_init (stream=0x7f9dbc008c10, cffface=0x7f9dbd20c830, face_index=0, num_params=<value optimized out>, params=<value optimized out>) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/cff/cffload.c:1429 #5 0x00007f9dc861faaf in open_face (driver=0xc56590, stream=0x7f9dbc008c10, face_index=0, num_params=0, params=0x0, aface=0x423bc868) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/base/ftobjs.c:1072 #6 0x00007f9dc8621eee in FT_Open_Face (library=0xc51970, args=0x423bc8c0, face_index=0, aface=0x423bc9e0) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/base/ftobjs.c:1794 #7 0x00007f9dc8622cb2 in FT_New_Face (library=0x7f9dc11e56eb, pathname=<value optimized out>, face_index=0, aface=0xfffffffe) at /usr/src/debug/media-libs/freetype-2.3.7/freetype-2.3.7/src/base/ftobjs.c:1133 #8 0x00007f9dcad3c84d in _ft_new_face (lib=0xc51970, filename=0x7f9dbc1ebb20 "/tmp/EVXFYy", face_out=0x423bca78, font_face_out=0x423bca70) at CairoFontEngine.cc:202 #9 0x00007f9dcad3cd28 in CairoFont::create (gfxFont=0x7f9dbc00d820, xref=0xbe0de0, lib=0xc51970, useCIDs=1) at CairoFontEngine.cc:319 #10 0x00007f9dcad3d0bf in CairoFontEngine::getFont (this=0xc57350, gfxFont=0x7f9dbc00d820, xref=0xbe0de0) at CairoFontEngine.cc:563 #11 0x00007f9dcad3ff3a in CairoOutputDev::updateFont (this=0xc51800, state=0x7f9dbc00ebe0) at CairoOutputDev.cc:411 #12 0x00007f9dc6ba1afd in Gfx::opShowText (this=0x7f9dbc1cbc80, args=0x423bcbf0, numArgs=0) at Gfx.cc:3213 #13 0x00007f9dc6b99fdc in Gfx::go (this=0x7f9dbc1cbc80, topLevel=1) at Gfx.cc:642 #14 0x00007f9dc6b9d286 in Gfx::display (this=0x7f9dbc1cbc80, obj=0x423bcf20, topLevel=1) at Gfx.cc:611 #15 0x00007f9dc6bde6b0 in Page::displaySlice (this=0xbbf330, out=0xc51800, hDPI=72, vDPI=72, rotate=<value optimized out>, useMediaBox=<value optimized out>, crop=1, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0xbe0e80, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:438 #16 0x00007f9dcad38c57 in _poppler_page_render (page=0x7f9dbc18e230, cairo=0x7f9dbc0430d0, printing=0) at poppler-page.cc:530 #17 0x00007f9dc0f907ad in pdf_document_render (document=<value optimized out>, rc=0x7f9dbc18d320) at ev-poppler.cc:477 #18 0x00000000004229d1 in ev_job_render_run (job=0x1470c40) at ev-jobs.c:512 #19 0x0000000000420260 in ev_job_thread_proxy (data=<value optimized out>) at ev-job-scheduler.c:183 #20 0x00007f9dc8e84724 in g_thread_create_proxy (data=0xbe64a0) at gthread.c:635 #21 0x00007f9dc98df037 in start_thread (arg=<value optimized out>) at pthread_create.c:297 #22 0x00007f9dc8b9d9fd in clone () from /lib/libc.so.6 #23 0x0000000000000000 in ?? () Turned out to not be a compiler bug after all. +*freetype-2.3.7-r1 (01 Jan 2009) + + 01 Jan 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/freetype-2.3.7-b.g.o-247104.patch, + +files/freetype-2.3.7-b.g.o-253029.patch, + +files/freetype-2.3.7-fix-incorrect-scaling.patch, + +files/freetype-2.3.7-no-segfault-on-load_mac_face.patch, + +freetype-2.3.7-r1.ebuild: + Fix bug 247104, segfault in cffparse.c:361, bug 253029, missing letters in + certain fonts, thanks to Andreas Turriff for the patch-pointer. Also + import patches for alien bugs: http://bugs.debian.org/487101, segfault + when building certain fonts and + http://savannah.nongnu.org/bugs/index.php?23973 , incorrect scaling of + certain fonts. + |