[Bug 984541] Re: compiz crashed with SIGSEGV in af_cjk_hints_compute_edges()

Tyler Hicks tyhicks at canonical.com
Fri Apr 20 23:40:56 UTC 2012


I'm not familiar with this code at all, but the diff below would be
enough to keep libfreetype from the immediate crash. However, we'd need
the font file to be sure that it wouldn't crash somewhere a little more
down the execution path.

diff -Nurp freetype-2.4.8.orig/src/autofit/afcjk.c freetype-2.4.8/src/autofit/afcjk.c
--- freetype-2.4.8.orig/src/autofit/afcjk.c	2012-04-20 18:28:29.935273458 -0500
+++ freetype-2.4.8/src/autofit/afcjk.c	2012-04-20 18:32:44.215279502 -0500
@@ -1115,7 +1115,7 @@
             else
               edge2 = seg2->edge;
 
-            if ( is_serif )
+            if ( is_serif && edge2 )
             {
               edge->serif   = edge2;
               edge2->flags |= AF_EDGE_SERIF;

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to freetype in Ubuntu.
https://bugs.launchpad.net/bugs/984541

Title:
  compiz crashed with SIGSEGV in af_cjk_hints_compute_edges()

Status in “freetype” package in Ubuntu:
  Incomplete

Bug description:
  none

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: unity 5.10.0-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
  Uname: Linux 3.2.0-23-generic-pae i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu4
  Architecture: i386
  Date: Wed Apr 18 11:44:48 2012
  ExecutablePath: /usr/bin/compiz
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
  ProcCmdline: compiz
  SegvAnalysis:
   Segfault happened at: 0xb3a7dcb4:	orb    $0x2,0xc(%esi)
   PC (0xb3a7dcb4) ok
   source "$0x2" ok
   destination "0xc(%esi)" (0x0000000c) not located in a known VMA region (needed writable region)!
  SegvReason: writing NULL VMA
  Signal: 11
  SourcePackage: unity
  StacktraceTop:
   ?? () from /usr/lib/i386-linux-gnu/libfreetype.so.6
   ?? () from /usr/lib/i386-linux-gnu/libfreetype.so.6
   ?? () from /usr/lib/i386-linux-gnu/libfreetype.so.6
   ?? () from /usr/lib/i386-linux-gnu/libfreetype.so.6
   FT_Load_Glyph () from /usr/lib/i386-linux-gnu/libfreetype.so.6
  Title: compiz crashed with SIGSEGV in FT_Load_Glyph()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/984541/+subscriptions




More information about the foundations-bugs mailing list