United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6729772 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
JDK-6729772 : 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2

Details
Type:
Bug
Submit Date:
2008-07-25
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
infrastructure
OS:
solaris_nevada
Sub-Component:
build
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

Description
RE (###@###.###) did a special build of the JDK7b31 sources on Solaris[tm] using the SS12 compiler suite.

Problem: BAT using the 64-bit VM (solaris-amd64) java2demo crashed:

% which java
/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/bin/java

% echo $JAVA_HOME
/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64

% java -d64 -jar $JAVA_HOME/demo/jfc/Java2D/Java2Demo.jar -runs=1 -delay=5 -ccthread
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0-b01 mixed mode solaris-amd64 )
# Problematic frame:
# C  0x0000000000000048
#
# An error report file with more information is saved as:
# /tmp/SS12/hs_err_pid14826.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
zsh: IOT instruction (core dumped)  java -d64 -jar $JAVA_HOME/demo/jfc/Java2D/Java2Demo.jar -runs=1 -delay=5 

The same .jar file ran fine on this system using this JDK build in 32-bit mode.

hs_err_pid14826.log and core file are attached.
I am moving this bug report to java/java/classes_2d.

See below for the decoded hs_err file.
The signposts are aimed at jre/lib/amd64/libdcpr.so:

Content-Type: text/plain; charset=ISO-8859-1

;; Using jvm: "/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/server/libjvm.so"
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0-b01 mixed mode solaris-amd64 )
# Problematic frame:
# C  0x0000000000000048
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x000000000041a000):  JavaThread "main" [_thread_in_native, id=2, stack(0xfffffd7ffdeaf000,0xfffffd7ffdfaf000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000048;; 

Registers:
RAX=0x0000000000000048, RBX=0x0000000000000001, RCX=0x00000000ffffffff, RDX=0x0000000000000000
RSP=0xfffffd7ffdfad9f0, RBP=0x0000000000000024, RSI=0x0000000000000020, RDI=0x00000000e1a60000
, R8=0x0000000000000020, R9=0x00000000ffffffff, R10=0x00000000fe7a0000, R11=0x0000000004000000, R12=0x0000000000778b30, R13=0x0000000000a03d28, R14=0x0000000000778a80, R15=0x0000000000863fa0
RIP=0x0000000000000048, RFLAGS=0x0000000000010282

Top of Stack: (sp=0xfffffd7ffdfad9f0)
0xfffffd7ffdfad9f0:   fffffd7ffdfada10 0000000000778a80
0xfffffd7ffdfada00:   0000000000884e58 00000000012f7588
0xfffffd7ffdfada10:   fffffd7ffdfada70 fffffd7fb3af4e06
0xfffffd7ffdfada20:   00000000fdfada30 0000000000a03d28
0xfffffd7ffdfada30:   00000000008905e8 00000020fea30891
0xfffffd7ffdfada40:   fffffd7ffefa2968 0000000000778a80
0xfffffd7ffdfada50:   0000000000000001 000000000041a1c0
0xfffffd7ffdfada60:   fffffd7ffdfadb88 0000000000000020
0xfffffd7ffdfada70:   fffffd7ffdfadad0 fffffd7fb3aeb2b3
0xfffffd7ffdfada80:   0000000500000000 00000000008904c8
0xfffffd7ffdfada90:   0000000000863fa0 000000000041a000
0xfffffd7ffdfadaa0:   fffffd7ffdfadb90 000000000041a000
0xfffffd7ffdfadab0:   fffffd7ffdfadb90 fffffd7fb64241e0
0xfffffd7ffdfadac0:   fffffd7fb5a63cc0 fffffd7fb64241e8
0xfffffd7ffdfadad0:   fffffd7ffdfadb50 fffffd7ffac0ec10
0xfffffd7ffdfadae0:   fffffd7ffdfadbe8 fffffd7ffac19063
0xfffffd7ffdfadaf0:   fffffd7ffac02690 fffffd7f00000000
0xfffffd7ffdfadb00:   fffffd7ffdfadc60 fffffd7ffdfadbe8
0xfffffd7ffdfadb10:   fffffd7ffdfadb10 fffffd7fb64241e0
0xfffffd7ffdfadb20:   fffffd7ffdfadb90 fffffd7fb6424c40
0xfffffd7ffdfadb30:   0000000000000000 fffffd7fb64241e8
0xfffffd7ffdfadb40:   0000000000000000 fffffd7ffdfadb70
0xfffffd7ffdfadb50:   fffffd7ffdfadbd8 fffffd7ffac030fa
0xfffffd7ffdfadb60:   0000000000000000 fffffd7ffac0b358
0xfffffd7ffdfadb70:   0000000000000000 0000000000000020
0xfffffd7ffdfadb80:   0000000000000001 fffffd7fe54f6c10
0xfffffd7ffdfadb90:   fffffd7fe54f63f0 fffffd7ffdfadb98
0xfffffd7ffdfadba0:   fffffd7fb6424046 fffffd7ffdfadc08
0xfffffd7ffdfadbb0:   fffffd7fb6424c40 0000000000000000
0xfffffd7ffdfadbc0:   fffffd7fb6424058 fffffd7ffdfadb70
0xfffffd7ffdfadbd0:   fffffd7ffdfadbe8 fffffd7ffdfadc60
0xfffffd7ffdfadbe0:   fffffd7ffac030fa 0000000000000000 

Instructions: (pc=0x0000000000000048)
0x0000000000000038:   
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
;; 
Stack: [0xfffffd7ffdeaf000,0xfffffd7ffdfaf000],  sp=0xfffffd7ffdfad9f0,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0000000000000048

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.dc.pr.PathFiller.writeAlpha8([BIII)V+0
j  sun.dc.pr.PathFiller.writeAlpha([BIII)V+6
j  sun.dc.pr.Rasterizer.getAlpha([BII)V+15
j  sun.java2d.pipe.AAShapePipe.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;Ljava/awt/BasicStroke;)V+308
j  sun.java2d.pipe.AAShapePipe.fill(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+4
j  sun.java2d.pipe.PixelToShapeConverter.fillOval(Lsun/java2d/SunGraphics2D;IIII)V+22
j  sun.java2d.pipe.ValidatePipe.fillOval(Lsun/java2d/SunGraphics2D;IIII)V+19
j  sun.java2d.SunGraphics2D.fillOval(IIII)V+10
j  java2d.demos.Transforms.TransformAnim.<clinit>()V+42
v  ~StubRoutines::call_stub
j  java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j  java2d.DemoPanel.<init>(Ljava/lang/Object;)V+34
j  java2d.DemoGroup.<init>(Ljava/lang/String;)V+155
j  java2d.Java2Demo.<init>()V+308
j  java2d.Java2Demo.main([Ljava/lang/String;)V+388
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x000000000085c800 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=19, stack(0xfffffd7fb393f000,0xfffffd7fb3a3f000)]
  0x00000000007ef000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=18, stack(0xfffffd7fb3b2f000,0xfffffd7fb3c2f000)]
  0x0000000000715000 JavaThread "AWT-Shutdown" [_thread_blocked, id=17, stack(0xfffffd7fb3c5e000,0xfffffd7fb3d5e000)]
  0x0000000000785000 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=16, stack(0xfffffd7fb3d5f000,0xfffffd7fb3e5f000)]
  0x000000000065d800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=15, stack(0xfffffd7fb3eff000,0xfffffd7fb3fff000)]
  0x00000000005aa000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=13, stack(0xfffffd7fb4472000,0xfffffd7fb4572000)]
  0x00000000005a5800 JavaThread "CompilerThread1" daemon [_thread_in_native, id=12, stack(0xfffffd7fb4573000,0xfffffd7fb4673000)]
  0x00000000005a3800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=11, stack(0xfffffd7fb4674000,0xfffffd7fb4774000)]
  0x00000000005a2000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10, stack(0xfffffd7fb4775000,0xfffffd7fb4875000)]
  0x000000000057e000 JavaThread "Finalizer" daemon [_thread_blocked, id=9, stack(0xfffffd7fb4876000,0xfffffd7fb4976000)]
  0x000000000057c000 JavaThread "Reference Handler" daemon [_thread_blocked, id=8, stack(0xfffffd7fb4977000,0xfffffd7fb4a77000)]
=>0x000000000041a000 JavaThread "main" [_thread_in_native, id=2, stack(0xfffffd7ffdeaf000,0xfffffd7ffdfaf000)]

Other Threads:
  0x0000000000577000 VMThread [stack: 0xfffffd7fb4a78000,0xfffffd7fb4b78000] [id=7]
  0x00000000005ac800 WatcherThread [stack: 0xfffffd7fb4371000,0xfffffd7fb4471000] [id=14]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 19712K, used 4045K [0xfffffd7fe5400000, 0xfffffd7fe7c00000, 0xfffffd7ffaa00000)
  eden space 16896K, 7% used [0xfffffd7fe5400000,0xfffffd7fe5539358,0xfffffd7fe6480000)
  from space 2816K, 99% used [0xfffffd7fe6480000,0xfffffd7fe673a460,0xfffffd7fe6740000)
  to   space 2816K, 0% used [0xfffffd7fe7940000,0xfffffd7fe7940000,0xfffffd7fe7c00000)
 PSOldGen        total 45056K, used 4669K [0xfffffd7fba800000, 0xfffffd7fbd400000, 0xfffffd7fe5400000)
  object space 45056K, 10% used [0xfffffd7fba800000,0xfffffd7fbac8f6c8,0xfffffd7fbd400000)
 PSPermGen       total 22528K, used 16533K [0xfffffd7fb5400000, 0xfffffd7fb6a00000, 0xfffffd7fba800000)
  object space 22528K, 73% used [0xfffffd7fb5400000,0xfffffd7fb6425578,0xfffffd7fb6a00000)

Dynamic libraries:
0x0000000000400000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/bin/amd64/java
0xfffffd7fff380000 	/lib/64/libthread.so.1
0xfffffd7fff340000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/bin/amd64/../../jre/lib/amd64/jli/libjli.so
0xfffffd7fff370000 	/lib/64/libdl.so.1
0xfffffd7fff000000 	/lib/64/libc.so.1
0xfffffd7ffe200000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/server/libjvm.so
0xfffffd7fff2c0000 	/lib/64/libsocket.so.1
0xfffffd7fff330000 	/usr/lib/64/libsched.so.1
0xfffffd7fff280000 	/lib/64/libm.so.1
0xfffffd7fff250000 	/usr/lib/64/libCrun.so.1
0xfffffd7fff2a0000 	/lib/64/libdoor.so.1
0xfffffd7ffe120000 	/lib/64/libnsl.so.1
0xfffffd7ffe0a0000 	/lib/64/libm.so.2
0xfffffd7ffe070000 	/lib/64/libscf.so.1
0xfffffd7ffe050000 	/lib/64/libuutil.so.1
0xfffffd7ffe030000 	/lib/64/libgen.so.1
0xfffffd7ffe010000 	/lib/64/libmd.so.1
0xfffffd7ffdff0000 	/lib/64/libmp.so.2
0xfffffd7ffde80000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/native_threads/libhpi.so
0xfffffd7ffde30000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libverify.so
0xfffffd7ffddd0000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libjava.so
0xfffffd7ffdda0000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libzip.so
0xfffffd7ffdc90000 	/usr/lib/locale/en_US.ISO8859-1/amd64/en_US.ISO8859-1.so.3
0xfffffd7fb41a0000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libawt.so
0xfffffd7ffdc20000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/xawt/libmawt.so
0xfffffd7ffaa70000 	/usr/openwin/lib/amd64/libXext.so.0
0xfffffd7fb4000000 	/usr/openwin/lib/amd64/libX11.so.4
0xfffffd7ffaa50000 	/usr/openwin/lib/amd64/libXtst.so.1
0xfffffd7ffaa30000 	/usr/openwin/lib/amd64/libXi.so.5
0xfffffd7fb52e0000 	/usr/X11/lib/amd64/libXau.so.6
0xfffffd7fb5270000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libfontmanager.so
0xfffffd7fb3e60000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libt2k.so
0xfffffd7fb5250000 	/usr/openwin/lib/locale/common/amd64/xlibi18n.so.2
0xfffffd7fb3c30000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libnet.so
0xfffffd7fb5230000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libnio.so
0xfffffd7ffaa40000 	/lib/64/librt.so.1
0xfffffd7fb3ae0000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libdcpr.so
0xfffffd7fb3a40000 	/usr/openwin/lib/locale/common/amd64/ximlocal.so.2
0xfffffd7fb38d0000 	/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/libjpeg.so

VM Arguments:
java_command: /net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/demo/jfc/Java2D/Java2Demo.jar -runs=1 -delay=5 -ccthread
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64
PATH=/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/bin:/devtools/i386/bin:/devtools/i386/mercurial/0.9.5/bin:/devtools/i386/SUNWspro/SS11/bin:/home/tbell/bin:/home/tbell/bin/i386:/devtools/share/bin:/devtools/i386/bin:/devtools/i386/teamware/7.7/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/X11/bin:/pkg/local/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin
LD_LIBRARY_PATH=/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64/server:/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/lib/amd64:/net/mizu/p/dolphin/jdk7/B31/binaries/solaris-amd64/jre/../lib/amd64
SHELL=/bin/zsh
DISPLAY=localhost:45.0
ARCH=i586

Signal Handlers:
SIGSEGV: [libjvm.so+0xbfe830], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0xbfe830], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x3a87f0], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x3a87f0], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGXFSZ: [libjvm.so+0x3a87f0], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x3a87f0], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0xa8e630], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0xa8e630], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0xa8e630], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0xa8e630], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0xa925d0], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x3a87f0], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c


---------------  S Y S T E M  ---------------

OS:                   Solaris Express Community Edition snv_80 X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 17 December 2007

uname:SunOS 5.11 snv_80 i86pc  (T2 libthread)
rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity
load average:0.08 0.08 0.08

CPU:total 4 (2 cores per cpu, 1 threads per core) family 15 model 65 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 4192756k(361232k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (14.0-b01) for solaris-amd64 JRE (1.7.0-ea-b99), built on Jul 24 2008 09:58:18 by "" with Workshop 5.9

time: Thu Jul 24 20:30:41 2008
elapsed time: 2 seconds

                                    

Comments
EVALUATION

This seems to be due to a tail call optimization by the newer SS12 x86/amd64 backend.

I'll take this bug as a build bug. I assum e you 2d guys won't mind... ;^)
                                     
2008-07-31
EVALUATION

http://hg.openjdk.java.net/jdk7/build/jdk/rev/b374f6174534
                                     
2008-08-08



Hardware and Software, Engineered to Work Together