JDK-8145055 : Marlin renderer causes unaligned write accesses
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-12-10
  • Updated: 2021-06-28
  • Resolved: 2015-12-14
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 8 JDK 9 Other
8u311Fixed 9 b99Fixed openjdk8u252Fixed
Related Reports
Cloners :  
Duplicate :  
Description
Both SwingSet2 and Java2d demos crash upon start with SIGBUS on Solaris 10u10 - sparcv9 .
Note: these demos run fine on Linux and on Windows.

# Problematic frame:
# V  [libjvm.so+0x10a932c]  Unsafe_SetNativeInt+0x15c

Per Jim and Phil, here's the fix: http://hg.openjdk.java.net/jdk9/client/jdk/rev/779ee10f495f
The problem is the fix is in 9/client and we may have to push
just this one patch to 9/dev (if SQE request it before the regular 9/client integration).

======= More details: ===========
Both  demos ran fine on the same sparcv9 test machine during previous PIT integration (Verona integration).

Build location:
  /net/scanas404.us.oracle.com/export/jcg/NB.archived/9/dev/2015-12-07.1321.devmach_pit/solaris-sparcv9
PIT info: http://javaweb.us.oracle.com/jcg/ws-depot/9/dev/pit-info/9.b96/PIT.req
Platform:  SunOS sc11152554 5.10 Generic_147440-26 sun4v sparc sun4v  - s10u10

Steps to reproduce:
$ cd   /net/scanas404.us.oracle.com/export/jcg/NB.archived/9/dev/2015-12-07.1321.devmach_pit/solaris-sparcv9
$ bin/java -jar demo/jfc/SwingSet2/SwingSet2.jar
$ bin/java -jar demo/jfc/Java2D/Java2Demo.jar

Log file: 
/net/scanas411.us.oracle.com/export/infra_jano/jcg/ws-depot/9/dev/build-archive/2015-12-07.1321.devmach_pit/logs/jcia-demo-all.sc11152554.2015-12-09-13.log 

ssteuck@jcia-sparcv9:logs$ head -40 /net/scanas411.us.oracle.com/export/infra_jano/jcg/ws-depot/9/dev/build-archive/2015-12-07.1321.devmach_pit/logs/jcia-demo-all.sc11152554.2015-12-09-13.log 

09-Dec-15 13:46:40 - =================== solaris-sparcv9 ============================== 
09-Dec-15 13:46:40 - pwd
/net/scanas411.us.oracle.com/export/infra_jano/jcg/ws-depot/9/dev/build-archive/2015-12-07.1321.devmach_pit/solaris-sparcv9
09-Dec-15 13:46:40 - uname_a
SunOS sc11152554 5.10 Generic_147440-26 sun4v sparc sun4v

09-Dec-15 13:46:40 - test_jdk_ver
========== version =========
java version "9-internal"
Java(TM) SE Runtime Environment (build 9-internal+0-2015-12-07-172905.mach5one.9-dev-build-solaris-sparc)
Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2015-12-07-172905.mach5one.9-dev-build-solaris-sparc, mixed mode)
09-Dec-15 13:46:41 - jcia-demo-java2d
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0xffffffff7dca932c, pid=18911, tid=23
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (build 9-internal+0-2015-12-07-172905.mach5one.9-dev-build-solaris-sparc)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9-internal+0-2015-12-07-172905.mach5one.9-dev-build-solaris-sparc, mixed mode, tiered, compressed oops, g1 gc, solaris-sparc)
# Problematic frame:
# V  [libjvm.so+0x10a932c]  Unsafe_SetNativeInt+0x15c
#
# Core dump will be written. Default location: /net/scanas404.us.oracle.com/export/jcg/NB.archived/9/dev/2015-12-07.1321.devmach_pit/solaris-sparcv9/core or core.18911
#
# An error report file with more information is saved as:
# /net/scanas404.us.oracle.com/export/jcg/NB.archived/9/dev/2015-12-07.1321.devmach_pit/solaris-sparcv9/hs_err_pid18911.log
Compiled method (nm)    3770 1334     n 0       jdk.internal.misc.Unsafe::putInt (native)
 total in heap  [0xffffffff6f06f510,0xffffffff6f06f8b8] = 936
 relocation     [0xffffffff6f06f640,0xffffffff6f06f660] = 32
 main code      [0xffffffff6f06f660,0xffffffff6f06f8b0] = 592
 metadata       [0xffffffff6f06f8b0,0xffffffff6f06f8b8] = 8
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
/net/scanas411.us.oracle.com/export/infra_jano/jcg/ws-depot/tools/add_to_PATH/jcia/jcia-demo-java2d: line 3: 18911 Abort                   (core dumped) bin/java -jar demo/jfc/Java2D/Java2Demo.jar -runs=2 -delay=3
09-Dec-15 13:49:16 - jcia-demo-swing
#
# A fatal error has been detected by the Java Runtime Environment:
#

Comments
Fix Request [8u] This is the 2nd patch for the Marlin renderer backport in OpenJDK 8 updates. The unshuffled patch applies cleanly and the build is OK. See http://cr.openjdk.java.net/~lbourges/marlin8u/marlin-8.02/m02.8145055.patch FYI 8u webrev and unshuffled patch are also available: http://cr.openjdk.java.net/~lbourges/marlin8u/marlin-8.02/
06-02-2020

Already fixed by JDK-8144828
10-12-2015