JDK-4458038 : CTW assertion at codeBuffer.hpp, 179 [ Patched ]
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2001-05-13
  • Updated: 2001-07-19
  • Resolved: 2001-06-05
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.
Other
1.4.0 beta2Fixed
Related Reports
Relates :  
Description

Name: fh87463			Date: 05/13/2001



Following assertion occur when running Compile The Wrold tests.

# HotSpot Virtual Machine Error, assertion failure
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# assert(end >= _instsStart && end <= _instsOverflow, "CodeBuffer overflow")
#
# Error ID: /net/jano/export/disk05/hotspot/auto/ws_jano/fpt/src/share/vm/asm/codeBuffer.hpp, 179 [ Patched ]
#
# Problematic Thread: prio=5 tid=0xd71a8 nid=0xb runnable 
#
Dumping core....
VM option '+CompileTheWorld'
VM option '+PatchALot'
VM option 'MinInliningThreshold=0'
VM option 'MaxPermSize=64m'
VM option 'CompileTheWorldStartAt=0'
VM option 'CompileTheWorldStopAt=473'
/net/taloraan.eng/export/vsn/users/ctwresult/scripts/compileTheWorld/result/solsparc/baseline/compiler1/20010511-203129.pkg/run.i18n.jar.0.473.ksh[35]: 5513 Abort
Exit Value 134
This assertion occured in following log files
========================================================
file:/net/sqesvr/export/vsn/users/ctwresult/solsparc/baseline/compiler1/20010511-203129.pkg/ctw.i18n.jar.0.473.txt
jar: /net/pkg.eng/export/pkg.sparc.sunos5/isv/packages/netscape601a/java/lib/i18n.jar

Binary used:
  Fastdebug binary of [baseline/compiler1/20010511-203129.pkg] from build archive page. 
  /net/jano.eng/export/disk05/hotspot/auto/ar/baseline/20010511-203129.pkg/bin_solaris_sparc_compiler1_fastg.tar.gz

Please look into rerun scripts for more detail.

#########################
# To reproduce the bug:
#########################
1. cd /net/jano.eng/export/disk20/GammaBase/Bugs/[bug ID]
2. edit script if needed.
3. run one of the shell scripts: 
   run.i18n.jar.0.473.ksh

#########################
# Rerun script 
#########################
$ cat run.i18n.jar.0.473.ksh
#!/bin/ksh
# Script automatic generated at Sat May 12 19:14:54 PDT 2001 by fhsu
#
print "Running $(cd $(dirname $0) ; pwd)/$(basename $0)"


export JAVA_HOME=/net/taloraan.eng/export/vsn/users/ctwresult/scripts/compileTheWorld/jdk/baseline/jdk1.4/j2sdk-1_4_0-beta-bin-b64-solsparc-10_may_2001
case "$(uname)" in
  SunOS)
    platform="$(uname -p)" # i386 or sparc
    ;;
  Linux|Windows*)
    platform="i386"
    ;;
esac
FLAGS="-compiler1.20010511-203129 -verify -XX:+CompileTheWorld -XX:+PatchALot -XX:MinInliningThreshold=0 -XX:MaxPermSize=64m"
VMTYPE="-compiler1.20010511-203129"
JARFILE="/net/pkg.eng/export/pkg.sparc.sunos5/isv/packages/netscape601a/java/lib/i18n.jar"
START=0
END=473
CMDLINE="$JAVA_HOME/bin/java $FLAGS -XX:CompileTheWorldStartAt=$START -XX:CompileTheWorldStopAt=$END -Xbootclasspath/p:${JARFILE}"

print "*****Debug Info: java -version(-Xinternalversion)*****"
$JAVA_HOME/bin/java ${VMTYPE} -version 2>&1 
$JAVA_HOME/bin/java ${VMTYPE} -fullversion 2>&1
$JAVA_HOME/bin/java ${VMTYPE} -Xinternalversion 2>&1
print "*****Debug Info: JAVA_HOME*****"
print "JAVA_HOME=$JAVA_HOME"
print "*****Debug Info: Machine Used*****"
print "$(uname -a)"

print "*****Debug Info: Command Line As Follow*****"
print "$CMDLINE"
print "*****Compile The World Start AT $(date)*****"
ksh -c "${CMDLINE}"
print "Exit Value $?"
echo "*****Compile The World End AT $(date)*****"
    

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta2 FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2 VERIFIED IN: merlin-beta2
14-06-2004

EVALUATION The LIR needs to be check that we aren't overflowing the codebuffer in more places. The check we have in there right now are appropriate for the old backend but aren't sufficient for the new backend. Basically just adding checks during the LIR assembly and the stub emissions takes care of it. thomas.rodriguez@eng 2001-05-16
16-05-2001