Bug 6007 - Evince crashes in CairoFont::getGlyph
Summary: Evince crashes in CairoFont::getGlyph
Status: RESOLVED DUPLICATE of bug 4481
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 08:14 UTC by Mitch
Modified: 2006-05-19 15:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mitch 2006-02-23 08:14:34 UTC
Evince crashes in CairoFont::getGlyph when selecting text in pdf document. The
document viewed is that attached to another bug 5589 comment 1. This is using
poppler lib 0.5.0 and evince 0.5.0

% evince --version
Gnome evince 0.5.0

Stack below

% gdb evince
GNU gdb 6.4
Copyright 2005 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 "i686-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) r propostaproj2005.pdf
Starting program: /usr/bin/evince propostaproj2005.pdf
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 9688)]
[New Thread 32769 (LWP 9692)]
[New Thread 16386 (LWP 9693)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 9688)]
0xb73da11f in CairoFont::getGlyph (this=0x6e650a3e, code=101, u=0x0, uLen=0) at
CairoFontEngine.cc:277
277       if (codeToGID && code < codeToGIDLen) {
Current language:  auto; currently c++
(gdb) where
#0  0xb73da11f in CairoFont::getGlyph (this=0x6e650a3e, code=101, u=0x0, uLen=0)
at CairoFontEngine.cc:277
#1  0xb73db8ae in CairoOutputDev::drawChar (this=0x8371b98, state=0x83ebf90,
x=218.76855129092806, y=108.67021440000006, dx=0, dy=0, originX=0, originY=0,
code=101, nBytes=1, u=0x0, uLen=0) at CairoOutputDev.cc:376
#2  0xb7470ff0 in TextSelectionPainter::visitWord (this=0xbfef67f0,
word=0x8386150, begin=1, end=2, selection=0xbfef6700) at TextOutputDev.cc:3373
#3  0xb747112b in TextWord::visitSelection (this=0x8386150, visitor=0xbfef67f0,
selection=0xbfef6700) at TextOutputDev.cc:3400
#4  0xb7471360 in TextLine::visitSelection (this=0x83fcd20, visitor=0xbfef67f0,
selection=0xbfef6700) at TextOutputDev.cc:3438
#5  0xb7471681 in TextBlock::visitSelection (this=0x83ecb28, visitor=0xbfef67f0,
selection=0xbfef6780) at TextOutputDev.cc:3510
#6  0xb7471a95 in TextPage::visitSelection (this=0x838cb98, visitor=0xbfef67f0,
selection=0xbfef6980) at TextOutputDev.cc:3583
#7  0xb7471b07 in TextPage::drawSelection (this=0x838cb98, out=0x8371b98,
scale=1.3596638441085815, rotation=0, selection=0xbfef6980,
glyph_color=0xbfef6880, box_color=0xbfef6900) at TextOutputDev.cc:3596
#8  0xb7473c50 in TextOutputDev::drawSelection (this=0x80fa0a8, out=0x8371b98,
scale=1.3596638441085815, rotation=0, selection=0xbfef6980,
glyph_color=0xbfef6880, box_color=0xbfef6900) at TextOutputDev.cc:4180
#9  0xb75c19bc in poppler_page_render_selection (page=0x81cb0e0,
scale=1.3596638441085815, rotation=0, pixbuf=0x8190538, selection=0x83628bc,
old_selection=0x836289c, glyph_color=0x836760c, background_color=0x8367648) at
poppler-page.cc:516
#10 0x08093d31 in pdf_selection_render_selection ()
#11 0x08091549 in ev_selection_render_selection ()
#12 0x08068739 in ev_pixbuf_cache_get_selection_pixbuf ()
#13 0x080711ce in ev_view_rotate_right ()
#14 0xb6e25e11 in g_idle_dispatch (source=0x8389700, callback=0,
user_data=0x6e650a3e) at gmain.c:3796
#15 0xb6e2320b in IA__g_main_context_dispatch (context=0x80e5418) at gmain.c:1916
#16 0xb6e24830 in g_main_context_iterate (context=0x80e5418, block=1,
dispatch=1, self=0x80b6a68) at gmain.c:2547
#17 0xb6e24aca in IA__g_main_loop_run (loop=0x834a5a8) at gmain.c:2751
#18 0xb77c7373 in IA__gtk_main () at gtkmain.c:989
#19 0x0807fa18 in main ()
(gdb)
Comment 1 Kristian Høgsberg 2006-05-20 08:48:43 UTC
This is fixed in CVS, should work with poppler 0.5.2

*** This bug has been marked as a duplicate of 4481 ***


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.