JDK-6322727 : Notepad crash in fontmanager library on all platforms
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-12
  • Updated: 2011-01-19
  • Resolved: 2005-09-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b53Fixed
Related Reports
Relates :  
Description
The following invocation of nightly build crashes the VM: 

java -jar Notepad.jar

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xd6e0f31c, pid=29573, tid=1
#
# Java VM: Java HotSpot(TM) Server VM (1.6.0-ea-b51 mixed mode)
# Problematic frame:
# C  [libfontmanager.so+0xf31c]
#
# An error report file with more information is saved as hs_err_pid29573.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Comments
EVALUATION Another problem is addStem() method - we should check if current number of frames is not 0 before trying to reuse memory.
12-09-2005

SUGGESTED FIX *** /tmp/geta524 Mon Sep 12 20:49:04 2005 --- truetype.c Mon Sep 12 20:47:43 2005 *************** *** 1487,1492 **** --- 1487,1496 ---- t->colorPlaneCount = 0; t->colorPlaneCountMax = 0; + /* T1 hinting data */ + t->stemFramesCount = 0; + t->stemFramesCountMax = 0; + t->stemFrames = NULL; #ifdef ENABLE_T2KE t->colors = NULL; #endif
12-09-2005

EVALUATION This happens because of fix for CR 6320281. During processing of the TrueType fonts the GlyphClass struture is created without of initialzation of new members.
12-09-2005