Bug 14381 - evince crashed with SIGSEGV in _cairo_ft_unscaled_font_set_scale()
Summary: evince crashed with SIGSEGV in _cairo_ft_unscaled_font_set_scale()
Status: RESOLVED NOTOURBUG
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.5.8
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 01:24 UTC by Sebastien Bacher
Modified: 2008-10-10 06:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sebastien Bacher 2008-02-05 01:24:50 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/libcairo/+bug/172806

"When I try to print a particular pdf file (both on a file or a printer) evince crashes.

http://launchpadlibrarian.net/10635604/104918FormulariInMateriaImmobiliare_Rinaldi.pdf
104918FormulariInMateriaImmobiliare_Rinaldi.pdf  (907.6 KiB, application/pdf) 

#0  FT_Set_Transform (face=0x8414f80, matrix=0xb67df9f8, delta=0x0)
    at /build/buildd/freetype-2.3.5/freetype-2.3.5/src/base/ftobjs.c:452
	internal = (FT_Face_Internal) 0x0
#1  0xb756be83 in _cairo_ft_unscaled_font_set_scale (unscaled=0x8416900, 
    scale=<value optimized out>) at /build/buildd/libcairo-1.4.10/src/cairo-ft-font.c:658
	sf = {x_scale = 1000, y_scale = 1000, shape = {{1, 0}, {0, -1}}}
	mat = {xx = 65536, xy = 0, yx = 0, yy = -65536}
	error = <value optimized out>
	__PRETTY_FUNCTION__ = "_cairo_ft_unscaled_font_set_scale"
#2  0xb756f1c3 in _cairo_ft_scaled_font_create (unscaled=0x8416900, font_face=0x8414598, 
    font_matrix=0xb67dfd20, ctm=0xb67dfcf0, options=0xb67dfd54, ft_options=
      {base = {antialias = CAIRO_ANTIALIAS_DEFAULT, subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT, lcd_filter = CAIRO_LCD_FILTER_DEFAULT, hint_style = CAIRO_HINT_STYLE_DEFAULT, hint_metrics = CAIRO_HINT_METRICS_DEFAULT}, load_flags = 10, extra_flags = 0})
    at /build/buildd/libcairo-1.4.10/src/cairo-ft-font.c:1728
	face = (FT_Face) 0x8414f80
	metrics = <value optimized out>
	fs_metrics = {ascent = -3.2826239886341566e-46, 
  descent = -3.2823087479640466e-46, height = -5.6149787507423538e+287, 
  max_x_advance = -3.2826239886341799e-46, max_y_advance = -3.2826239886341799e-46}
	status = <value optimized out>
#3  0xb756f55b in _cairo_ft_font_face_scaled_font_create (abstract_face=0x8414598, 
    font_matrix=0xb67dfd20, ctm=0xb67dfcf0, options=0xb67dfd54, scaled_font=0xb67dfb7c)
    at /build/buildd/libcairo-1.4.10/src/cairo-ft-font.c:2474
	ft_options = {base = {antialias = CAIRO_ANTIALIAS_DEFAULT, 
    subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT, 
    lcd_filter = CAIRO_LCD_FILTER_DEFAULT, hint_style = CAIRO_HINT_STYLE_DEFAULT, 
    hint_metrics = CAIRO_HINT_METRICS_DEFAULT}, load_flags = 10, extra_flags = 0}
#4  0xb755ca08 in *INT_cairo_scaled_font_create (font_face=0x8414598, 
    font_matrix=0xb67dfd20, ctm=0xb67dfcf0, options=0xb67dfd54)
    at /build/buildd/libcairo-1.4.10/src/cairo-scaled-font.c:540
	i = <value optimized out>
	status = <value optimized out>
	font_map = (cairo_scaled_font_map_t *) 0x822c208
	key = {hash_entry = {hash = 3963507293}, status = CAIRO_STATUS_SUCCESS, 
  ref_count = 3061709736, user_data = {size = 3075900123, num_elements = 3061709848, 
    element_size = 1, elements = 0xc, is_snapshot = 141134104}, font_face = 0x8414598, 
  font_matrix = {xx = 1000, yx = 0, xy = 0, yy = -1000, x0 = 0, y0 = 0}, ctm = {xx = 1, 
    yx = 0, xy = 0, yy = 1, x0 = 0, y0 = 0}, options = {
    antialias = CAIRO_ANTIALIAS_DEFAULT, subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT, 
    lcd_filter = CAIRO_LCD_FILTER_DEFAULT, hint_style = CAIRO_HINT_STYLE_NONE, 
    hint_metrics = CAIRO_HINT_METRICS_OFF}, scale = {xx = 3.4035251916591095e-313, 
    yx = 2.829611673775581e+161, xy = 6.0133444147443713e-154, 
    yy = 7.342927796391715e+223, x0 = 6.9640790763305309e+252, 
    y0 = 2.4287977133756787e-154}, extents = {ascent = -3.559225000500247e-43, 
    descent = -3.9527579089259439e-43, height = -3.9529069639299978e-43, 
    max_x_advance = 1.5179843553100532e-314, max_y_advance = -3.8438074292541524e-42}, 
  mutex = {__data = {__lock = -1233257232, __count = 0, __owner = 1072693248, 
      __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, 
    __size = "ðü}¶\000\000\000\000\000\000ð?", '\0' <repeats 11 times>, 
    __align = -1233257232}, glyphs = 0x0, surface_backend = 0x0, 
  surface_private = 0x3ff00000, backend = 0x0}
	scaled_font = (cairo_scaled_font_t *) 0x0
	__PRETTY_FUNCTION__ = "cairo_scaled_font_create"
#5  0xb7582c07 in cairo_type1_font_create (scaled_font_subset=<value optimized out>, 
    subset_return=0xb67dfdb8, hex_encode=0)
    at /build/buildd/libcairo-1.4.10/src/cairo-type1-fallback.c:105
	font_face = (cairo_font_face_t *) 0x8414598
	font_matrix = {xx = 1000, yx = 0, xy = 0, yy = -1000, x0 = 0, y0 = 0}
	ctm = {xx = 1, yx = 0, xy = 0, yy = 1, x0 = 0, y0 = 0}
	font_options = {antialias = CAIRO_ANTIALIAS_DEFAULT, 
  subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT, lcd_filter = CAIRO_LCD_FILTER_DEFAULT, 
  hint_style = CAIRO_HINT_STYLE_NONE, hint_metrics = CAIRO_HINT_METRICS_OFF}
#6  0xb75835d1 in _cairo_type2_charstrings_init (type2_subset=0xb67dfe0c, 
    scaled_font_subset=0xb67dfff0)
    at /build/buildd/libcairo-1.4.10/src/cairo-type1-fallback.c:824
	font = <value optimized out>
	status = <value optimized out>
	i = <value optimized out>
	charstring = {size = 138319268, num_elements = 3061710280, 
  element_size = 3075989175, elements = 0xb757dca0, is_snapshot = 143660880}
#7  0xb757f2ee in _cairo_cff_fallback_init (cff_subset=0xb67dff44, 
    subset_name=0xb67dff78 "CairoFont-3-0", font_subset=0xb67dfff0)
    at /build/buildd/libcairo-1.4.10/src/cairo-cff-subset.c:2081
	font = <value optimized out>
	status = CAIRO_STATUS_SUCCESS
	i = <value optimized out>
	type2_subset = {widths = 0xb75b9d9c, x_min = 1, y_min = -1222537228, 
  x_max = -1222532800, y_max = 143297432, ascent = -1233256872, descent = -1223424130, 
  charstrings = {size = 3072434496, num_elements = 143297432, element_size = 141143816, 
    elements = 0xb67dfe6c, is_snapshot = -16121856}}
#8  0xb75781ab in _cairo_pdf_surface_emit_unscaled_font_subset (font_subset=0xb67dfff0, 
    closure=0x869ae00) at /build/buildd/libcairo-1.4.10/src/cairo-pdf-surface.c:2274
	surface = <value optimized out>
	status = <value optimized out>
#9  0xb758431e in _cairo_sub_font_collect (entry=0x86cafb0, closure=0xb67e0070)
    at /build/buildd/libcairo-1.4.10/src/cairo-scaled-font-subsets.c:400
	subset = {scaled_font = 0x86ff298, font_id = 3, subset_id = 0, 
  glyphs = 0x87e7520, to_unicode = 0x88000b0, num_glyphs = 2, is_composite = 1}
	i = 0
	j = 3061709304
	__PRETTY_FUNCTION__ = "_cairo_sub_font_collect"
#10 0xb7554abc in _cairo_hash_table_foreach (hash_table=0x8698a80, 
    hash_callback=0xb7584240 <_cairo_sub_font_collect>, closure=0xb67e0070)
    at /build/buildd/libcairo-1.4.10/src/cairo-hash.c:562
	i = 33
	entry = (cairo_hash_entry_t *) 0x8414f80
#11 0xb75841d3 in _cairo_scaled_font_subsets_foreach_internal (font_subsets=0x8698818, 
    font_subset_callback=0xb7577f10 <_cairo_pdf_surface_emit_unscaled_font_subset>, 
    closure=0x869ae00, is_scaled=0)
    at /build/buildd/libcairo-1.4.10/src/cairo-scaled-font-subsets.c:636
	collection = {glyphs = 0x87e7520, glyphs_size = 71, max_glyph = 1, 
  num_glyphs = 2, subset_id = 0, 
  font_subset_callback = 0xb7577f10 <_cairo_pdf_surface_emit_unscaled_font_subset>, 
  font_subset_callback_closure = 0x869ae00}
#12 0xb75785fb in _cairo_pdf_surface_finish (abstract_surface=0x869ae00)
    at /build/buildd/libcairo-1.4.10/src/cairo-pdf-surface.c:2895
	status = CAIRO_STATUS_SUCCESS
	status2 = <value optimized out>
	surface = <value optimized out>
	offset = <value optimized out>
#13 0xb75612a3 in *INT_cairo_surface_finish (surface=0x869ae00)
    at /build/buildd/libcairo-1.4.10/src/cairo-surface.c:504
	status = <value optimized out>
#14 0xb756b64c in _cairo_paginated_surface_finish (abstract_surface=0x869b1c8)
    at /build/buildd/libcairo-1.4.10/src/cairo-paginated-surface.c:138
	status = 141144520
#15 0xb75612a3 in *INT_cairo_surface_finish (surface=0x869b1c8)
    at /build/buildd/libcairo-1.4.10/src/cairo-surface.c:504
	status = <value optimized out>
#16 0xb7561350 in *INT_cairo_surface_destroy (surface=0x869b1c8)
    at /build/buildd/libcairo-1.4.10/src/cairo-surface.c:401
	__PRETTY_FUNCTION__ = "cairo_surface_destroy"
#17 0xb75544d5 in _cairo_gstate_fini (gstate=0x8690ec8)
    at /build/buildd/libcairo-1.4.10/src/cairo-gstate.c:172
No locals.
#18 0xb754d62f in *INT_cairo_destroy (cr=0x8690ea8)
    at /build/buildd/libcairo-1.4.10/src/cairo.c:270
	__PRETTY_FUNCTION__ = "cairo_destroy"
#19 0x0809defc in ?? ()
#20 0x0809df55 in ?? ()
#21 0x0809bb83 in ?? ()
#22 0x0834bb40 in ?? ()
#23 0x0835ed90 in ?? ()
#24 0x01000000 in ?? ()
#25 0x00000000 in ?? ()"
Comment 1 Chris Wilson 2008-10-10 06:56:05 UTC
Is this still an issue? Trying with the on current ubuntu, everything works. The stack trace seems sane, if perhaps the scale factor does seem a bit extreme - but at any rate it would appear to be a FreeType issue since resolved.


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.