United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6504660 HPI panic callback is unimplemented
6504660 : HPI panic callback is unimplemented

Details
Type:
Bug
Submit Date:
2006-12-14
Status:
Open
Updated Date:
2012-09-17
Project Name:
JDK
Resolved Date:
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
7
Targeted Versions:
tbd_major

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
In the fastdebug and debug builds, libhpi.so may call our HPI panic() callback during a sysAssert() failure.  Currently the callback is unimplemented and results in a call to Unimplemented(), masking the true cause of the failure.  We should provide an implementation for the sake of better error reporting.

For further background see bug 6502237.
I don't think hpi should call back to the VM to die anyway, but call regular unix assert, but we should give an error and add that the bug is in hpi not the VM.

This is annoying that so many linux tests intermittently fail with this hpi bug.
I changed this hpi_panic from Unimplemented() crash to a warning(Unimplemented) because bug number 6626677 was affecting testing.  This is safe for this particular bug anyway.

As part of this fix, the crash should be restored in the VM for jdk7 only (there's apparently a gate we have in the vm) after bug 6626677 is fixed.  If the jdk fix is backported to jdk 6 we can enable the crash unconditionally in the VM, but after HS13.

                                    

Comments
EVALUATION

I think the JDK still calls this, just not through the HPI layer, contrary to the name.
                                     
2012-09-17
EVALUATION

Now that HPI has been removed from HotSpot via:

    6348631 4/2 remove the use of the HPI library from Hotspot

I think this bug can be closed as "will not fix". I'll double
check with Coleen...
                                     
2011-02-11



Hardware and Software, Engineered to Work Together