United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6982370 SIGBUS in jbyte_fill
JDK-6982370 : SIGBUS in jbyte_fill

Details
Type:
Bug
Submit Date:
2010-09-03
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs19
Fixed Versions:
hs19 (b07)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
When run with -XX:+OptimizeFill which is enabled by AggressiveOpts we got a crash in the nightlies.

http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK7/NIGHTLY/VM/2010-08-30/Comp_Baseline/vm/solaris-sparcv9/server/comp/solaris-sparcv9_vm_server_comp_nsk.stress.testlist/ResultDir/jck12a010/hs_err_pid4281.log

#  SIGBUS (0xa) at pc=0xffffffff77ce3e9c, pid=4281, tid=171
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (19.0-b06-201008301804.kvn.6980978-fastdebug compiled mode solaris-sparc compressed oops)

v  ~StubRoutines::jbyte_fill
j  javasoft.sqe.tests.api.java.io.StreamTokenizer.eolIsSignificantTests.StreamTokenizer0070()Ljavasoft/sqe/harness/Status;+26

                                    

Comments
EVALUATION

6982370: SIGBUS in jbyte_fill
Reviewed-by: kvn

In the new fill routines copy less than 8 bytes long skip over the
main code and go the final cleanup stage.  On sparc this isn't right
since it still hasn't accounted for alignment.  The fix is to have a
special path for handling that.  The code doesn't crash on 32 bit
sparc because handling of misaligned stores seems to be enabled.
Additionally I noticed a problem with the logic for clearing the high
bits of a short value.  The logic I wrote works correctly for clean
ints but doesn't work for 64 bit signed extended ints resulting in
invalid fill values in some cases.  Tested with failing nightly and
new test case to exercise the various alignments.
                                     
2010-09-09
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/065dd1ca3ab6
                                     
2010-09-15
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/065dd1ca3ab6
                                     
2010-09-28
EVALUATION

http://hg.openjdk.java.net/hsx/hsx19/baseline/rev/a8effb842215
                                     
2010-10-08
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/065dd1ca3ab6
                                     
2010-10-09



Hardware and Software, Engineered to Work Together