Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4804447
Votes 0
Synopsis JNI Get<Type>ArrayElements fails with zero length arrays.
Category hotspot:runtime_system
Reported Against mantis-beta
Release Fixed 1.3.1_09, 1.4.1_07(Bug ID:2063586) , 1.4.2(mantis-b17) (Bug ID:2063587) , 1.5(tiger-beta) (Bug ID:2063588)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4834329 , 4836743 , 4932795
Submit Date 16-JAN-2003
Description
Sunone Appserver 7 fails to start with latest hotspot debug/fastdebug binaries

I tried the latest two putbacks from archive pages:
----
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b12)
Java HotSpot(TM) Server VM (build 20030115110541.steved.main_baseline-product, mixed mode)
----
Both crash at the same location:typeArrayOop.hpp:44

Log:
[16/Jan/2003:12:05:23] INFO ( 6086): WEB0100: Loading web module [adminapp:adminapp.war] in virtual server [admin-server] at [/web1]
[16/Jan/2003:12:05:25] INFO ( 6086): WEB0100: Loading web module [admingui:adminGUI.war] in virtual server [admin-server] at [/admin]
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # To suppress the following error report, specify this argument
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # after -XX: or in .hotspotrc:  SuppressErrorAt=/typeArrayOop.hpp:44
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # HotSpot Virtual Machine Error, assertion failure
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # Please report this error at
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # http://java.sun.com/cgi-bin/bugreport.cgi
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # Java VM: Java HotSpot(TM) Server VM (20030114131733.jmasa.main_baseline_4802112-fastdebug-debug
 mixed mode)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # assert(is_within_bounds(which), "index out of bounds")
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # Error ID: /export/imgr_home/ws/20030114131733.jmasa.main_baseline_4802112/src/share/vm/oops/typ
eArrayOop.hpp, 44 [ Patched ]
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: # Problematic Thread: prio=5 tid=0x0020bbe8 nid=0x1 runnable
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: #
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: Heap at VM Abort:
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: Heap
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:  def new generation   total 2112K, used 500K [0xeb800000, 0xeba20000, 0xee2a0000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:   eden space 2048K,  21% used [0xeb800000, 0xeb86d0d8, 0xeba00000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:   from space 64K, 100% used [0xeba00000, 0xeba10000, 0xeba10000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:   to   space 64K,   0% used [0xeba10000, 0xeba10000, 0xeba20000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:  tenured generation   total 4104K, used 3771K [0xee2a0000, 0xee6a2000, 0xf3800000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:    the space 4104K,  91% used [0xee2a0000, 0xee64efc8, 0xee64f000, 0xee6a2000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:  compacting perm gen  total 16384K, used 11999K [0xf3800000, 0xf4800000, 0xf7800000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr:    the space 16384K,  73% used [0xf3800000, 0xf43b7ed8, 0xf43b8000, 0xf4800000)
[16/Jan/2003:12:05:32] WARNING ( 6086): CORE3283: stderr: Dumping core....
Work Around
N/A
Evaluation
  xxxxx@xxxxx   2003-01-22

I am changing the subcategory to runtime_system since Madhava
confirms that this assertion also fails with -client.  I've asked 
Madhava to generate core files when he encounters this assertion 
failure so that we can investigate the stack trace.  In addition, 
I've asked him to run the appserver using -XX:SupressErrorAt=/typeArrayOop.hpp:44
to look for later assertion failures.
----- -----



  xxxxx@xxxxx   2003-02-06
Commiting this for tiger.  Since fastdebug binaries are not shipped,
this does not meet mantis beta/fcs criteria.

The problem (from the comments) is that the JNI Get<Type>ArrayElements
methods fail (in non-product debug builds) when the array length is zero.
----- -----
  xxxxx@xxxxx   2003-02-06

There is a plan to ship fastdebug binaries in mantis.  Since this assertion 
failure occurs early in execution of a major product it should be fixed.
In addition, the fix would be a low-risk.
----- -----



-----------------------------------------------------------------
  xxxxx@xxxxx   2003-02-07
Attached simple test case.
Fixed.
-----------------------------------------------------------------
Comments
  
  Include a link with my name & email   

Submitted On 26-JUL-2005
This whole page does not have anything regarding admingui.war file ... where can I get it?


Submitted On 26-JUL-2005
Where can I get the admingui.war file?



PLEASE NOTE: JDK6 is formerly known as Project Mustang