Bug 22688

Summary: smask-text-ps2-argb32 test crashes
Product: cairo Reporter: David Keeler <keelerda>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.8.8   
Hardware: x86 (IA32)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description David Keeler 2009-07-09 11:53:17 UTC
smask-text-ps2-argb32 test fails with a crash (bus error) on OS X 10.5.7

Here's the relevant parts of the crash report:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libcairo.2.dylib              	0x000f2b83 _cairo_quartz_scaled_to_face + 35 (cairo-quartz-font.c:274)
1   libcairo.2.dylib              	0x000f2cb8 _cairo_quartz_font_scaled_glyph_init + 72 (cairo-quartz-font.c:625)
2   libcairo.2.dylib              	0x000ca4aa _cairo_scaled_glyph_lookup + 314 (cairo-scaled-font.c:2408)
3   libcairo.2.dylib              	0x000ca86b _cairo_scaled_font_show_glyphs + 603 (cairo-scaled-font.c:1851)
4   libcairo.2.dylib              	0x000d24fd _cairo_surface_old_show_glyphs_draw_func + 397 (cairo-surface-fallback.c:965)
5   libcairo.2.dylib              	0x000d11d7 _clip_and_composite + 327 (cairo-surface-fallback.c:395)
6   libcairo.2.dylib              	0x000d2609 _cairo_surface_fallback_show_glyphs + 233 (cairo-surface-fallback.c:1028)
7   libcairo.2.dylib              	0x000d024f _cairo_surface_show_text_glyphs + 495 (cairo-surface.c:2325)
8   libcairo.2.dylib              	0x000bcf5d _cairo_meta_surface_replay_internal + 2349 (cairo-meta-surface.c:932)
9   libcairo.2.dylib              	0x000bd12b _cairo_meta_surface_acquire_source_image + 59 (cairo-meta-surface.c:200)
10  libcairo.2.dylib              	0x000ce5f2 _cairo_surface_acquire_source_image + 82 (cairo-surface.c:1004)
11  libcairo.2.dylib              	0x000c664b _cairo_pattern_acquire_surface + 1195 (cairo-pattern.c:1904)
12  libcairo.2.dylib              	0x000c7969 _cairo_pattern_acquire_surfaces + 329 (cairo-pattern.c:2193)
13  libcairo.2.dylib              	0x000b9393 _cairo_image_surface_composite + 115 (cairo-image-surface.c:968)
14  libcairo.2.dylib              	0x000cebf1 _cairo_surface_composite + 241 (cairo-surface.c:1293)
15  libcairo.2.dylib              	0x000d1eb4 _cairo_surface_mask_draw_func + 100 (cairo-surface-fallback.c:742)
16  libcairo.2.dylib              	0x000d11d7 _clip_and_composite + 327 (cairo-surface-fallback.c:395)
17  libcairo.2.dylib              	0x000d2033 _cairo_surface_fallback_mask + 259 (cairo-surface-fallback.c:779)
18  libcairo.2.dylib              	0x000d0b82 _cairo_surface_mask + 226 (cairo-surface.c:1529)
19  libcairo.2.dylib              	0x000bc990 _cairo_meta_surface_replay_internal + 864 (cairo-meta-surface.c:812)
20  libcairo.2.dylib              	0x000beeb0 _paint_fallback_image + 320 (cairo-paginated-surface.c:270)
21  libcairo.2.dylib              	0x000bf1cc _paint_page + 620 (cairo-paginated-surface.c:402)
22  libcairo.2.dylib              	0x000bf3d7 _cairo_paginated_surface_show_page + 55 (cairo-paginated-surface.c:467)
23  libcairo.2.dylib              	0x000cf3ff cairo_surface_show_page + 79 (cairo-surface.c:1815)
24  libcairo.2.dylib              	0x000bebf8 _cairo_paginated_surface_finish + 120 (cairo-paginated-surface.c:168)
25  libcairo.2.dylib              	0x000cdda6 cairo_surface_finish + 70 (cairo-surface.c:531)
26  smask                         	0x00006bf0 _cairo_boilerplate_ps_finish_surface + 272 (cairo-boilerplate-ps.c:205)
27  smask                         	0x00003834 cairo_test_for_target + 1716 (cairo-test.c:798)
28  smask                         	0x000045d8 cairo_test_run + 1896 (cairo-test.c:1123)
29  smask                         	0x0000494c cairo_test + 540 (cairo-test.c:1306)
30  smask                         	0x000022cb main + 27 (smask.c:129)
31  smask                         	0x00001926 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x000f2c81  ecx: 0x000cb41b  edx: 0x0051e130
  edi: 0x0051ef00  esi: 0x00000000  ebp: 0xbfffd898  esp: 0xbfffd880
   ss: 0x0000001f  efl: 0x00210206  eip: 0x000f2b83   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000000
Comment 1 Andrea Canciani 2010-10-30 14:50:27 UTC
I'm unable to reproduce this problem on OSX 10.6 with cairo/master.
Could you try upgrading to 1.10 and check if it still affects you?
Comment 2 David Keeler 2010-10-31 12:10:51 UTC
I don't have OSX any more, so I can't reproduce it either.  If it works for you, then I assume it's been fixed.

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.