[JBS DO NOT REPLY] (JDK-8000620) runtime/jni/LockTest crashes on all platforms
David Holmes
david.holmes at oracle.com
Tue Oct 9 04:55:30 PDT 2012
As far as I can see that test will always fail at some point. On a debug
build we will hit the assert:
void ATTR ObjectMonitor::exit(TRAPS) {
Thread * Self = THREAD ;
if (THREAD != _owner) {
if (THREAD->is_lock_owned((address) _owner)) {
// Transmute _owner from a BasicLock pointer to a Thread address.
// We don't need to hold _mutex for this transition.
// Non-null to Non-null is safe as long as all readers can
// tolerate either flavor.
assert (_recursions == 0, "invariant") ;
_owner = THREAD ;
_recursions = 0 ;
OwnerIsThread = 1 ;
} else {
// NOTE: we need to handle unbalanced monitor enter/exit
// in native code by throwing an exception.
// TODO: Throw an IllegalMonitorStateException ?
TEVENT (Exit - Throw IMSX) ;
assert(false, "Non-balanced monitor enter/exit!");
if (false) {
THROW(vmSymbols::java_lang_IllegalMonitorStateException());
}
return;
}
Has this test just been re-enabled or something?
David
-----
On 9/10/2012 9:31 PM, Rickard Bäckman (JBS) wrote:
> Rickard Bäckman
> <https://jbs.oracle.com/bugs/secure/ViewProfile.jspa?name=rbackman>
> created Bug JDK-8000620 <https://jbs.oracle.com/bugs/browse/JDK-8000620>
> *runtime/jni/LockTest crashes on all platforms*
> <https://jbs.oracle.com/bugs/browse/JDK-8000620>
>
>
> *Issue Type:* Bug Bug
> *Assignee:* Unassigned
> *Attachments:* hs_err_pid17039.log
> *Components:* hotspot
> *Created:* 2012-10-09 04:30
> *Description:* ;; Using jvm:
> "/export/local/common/jdk/baseline/linux-amd64/jre/lib/amd64/server/libjvm.so"
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # Internal Error
> (/tmp/jprt/P1/221228.cphillim/s/src/share/vm/runtime/objectMonitor.cpp:946),
> pid=17039, tid=140107613533952
> # assert(false) failed: Non-balanced monitor enter/exit!
> #
> # JRE version: Java(TM) SE Runtime Environment (8.0-b59)
> # Java VM: Java HotSpot(TM) 64-Bit Server VM
> (25.0-b04-internal-201210082212.cphillim.dtrace-closed-fastdebug mixed
> mode linux-amd64 compressed oops)
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # If you would like to submit a bug report, please visit:
> # http://bugreport.sun.com/bugreport/crash.jsp
> #
>
> http://aurora.ru.oracle.com/functional/faces/ChessBoard.xhtml?reportName=J2SEFailures¶meters=%5BtestNameFilterRegExp%5D%25%5Bjdkproduct%5DJava%28TM%29%25%5Brelease%5Dnone%5Bbuild%5D%25%5Bvmproduct%5DJava%25VM%25%5Bvmrelease%5D%25%5Bvmbuild%5D%25%5Bcomponent%5D%25%5Btags%5D%25%5BstartDate%5DSep+10%2C+2009+1%3A00%3A00+AM+GMT%2B04%3A00%5BendDate%5DSep+10%2C+2020+1%3A00%3A00+AM+GMT%2B04%3A00%5BrunNames%5D%27%27%5BbatchNames%5D109364.JAVASE.NIGHTLY.VM.RT_Baseline.2012-10-08%5BbatchNameFilterRegExp%5D%25%5BrunNameFilterRegExp%5D%25%5BtestsuiteNameFilterRegExp%5D%25%5Bstatuses%5Dfailure.status+%3D+com.sun.aurora.data.entity.reporting.Status.FAILED+AND+failure.isValid+%3D+true+AND+%28%3Amatches%29%5Bmatches%5D%28NOT+failure.isKnown+%3D+true%29%5Bbundles%5Dnone&splitting=%5BX+axis%5Dplatform%2C+VMFlavor%5BComplement%5DproductConfiguration%2C+os%2C+bitness%2C+vmrelease%2C+vmbuild%2C+VMVersionString%2C+tags%2C+hostname%2C+harness%2C+osFlavor%2C+osVersion%2C+msDate%2C+baseline%2C+!
batch%2C
+crs%2C+duration%2C+release%2C+build%2C+date%5BZ+axis%5DbaselineName%2C+component%2C+testsuite%2C+buildType%2C+truncatedProductConfiguration%5BY+axis%5Dfailure%2C+reason%2C+VMMode&reference=%5BOthers%5Drelease%2C+build%2C+vmrelease%2C+vmbuild%2C+VMVersionString%2C+tags%2C+platform%2C+truncatedProductConfiguration%2C+buildType%2C+bitness%2C+productConfiguration%2C+VMMode%2C+VMFlavor%2C+hostname%2C+harness%2C+os%2C+osFlavor%2C+osVersion%2C+date%2C+msDate%2C+baseline%2C+batch%2C+baselineName%2C+testsuite%2C+component%2C+failure%2C+reason%2C+crs%2C+duration%5BReference+Set%5D&mixReference=false&flags=&significance=empty&hideDataConfiguration=true&calculateSummary=false&showSummaryExpanded=false&showSummaryContents=true&showComplementAttributes=false&compactTables=true&viewStyle=chessboard&filter=%28not+contains%28os%2C%27Mac%27%29%29+and+%28failure%3D%3D%27runtime%2Fjni%2FLockTest%27%29&filter_override=%28not+contains%28os%2C%27Mac%27%29%29+and+%28failure%3D%3D%27runtime%2Fjni%2!
FLockTest
%27%29
> <http://aurora.ru.oracle.com/functional/faces/ChessBoard.xhtml?reportName=J2SEFailures¶meters=%5BtestNameFilterRegExp%5D%25%5Bjdkproduct%5DJava%28TM%29%25%5Brelease%5Dnone%5Bbuild%5D%25%5Bvmproduct%5DJava%25VM%25%5Bvmrelease%5D%25%5Bvmbuild%5D%25%5Bcomponent%5D%25%5Btags%5D%25%5BstartDate%5DSep+10%2C+2009+1%3A00%3A00+AM+GMT%2B04%3A00%5BendDate%5DSep+10%2C+2020+1%3A00%3A00+AM+GMT%2B04%3A00%5BrunNames%5D%27%27%5BbatchNames%5D109364.JAVASE.NIGHTLY.VM.RT_Baseline.2012-10-08%5BbatchNameFilterRegExp%5D%25%5BrunNameFilterRegExp%5D%25%5BtestsuiteNameFilterRegExp%5D%25%5Bstatuses%5Dfailure.status+%3D+com.sun.aurora.data.entity.reporting.Status.FAILED+AND+failure.isValid+%3D+true+AND+%28%3Amatches%29%5Bmatches%5D%28NOT+failure.isKnown+%3D+true%29%5Bbundles%5Dnone&splitting=%5BX+axis%5Dplatform%2C+VMFlavor%5BComplement%5DproductConfiguration%2C+os%2C+bitness%2C+vmrelease%2C+vmbuild%2C+VMVersionString%2C+tags%2C+hostname%2C+harness%2C+osFlavor%2C+osVersion%2C+msDate%2C+baseline%2C!
+batch%2
C+crs%2C+duration%2C+release%2C+build%2C+date%5BZ+axis%5DbaselineName%2C+component%2C+testsuite%2C+buildType%2C+truncatedProductConfiguration%5BY+axis%5Dfailure%2C+reason%2C+VMMode&reference=%5BOthers%5Drelease%2C+build%2C+vmrelease%2C+vmbuild%2C+VMVersionString%2C+tags%2C+platform%2C+truncatedProductConfiguration%2C+buildType%2C+bitness%2C+productConfiguration%2C+VMMode%2C+VMFlavor%2C+hostname%2C+harness%2C+os%2C+osFlavor%2C+osVersion%2C+date%2C+msDate%2C+baseline%2C+batch%2C+baselineName%2C+testsuite%2C+component%2C+failure%2C+reason%2C+crs%2C+duration%5BReference+Set%5D&mixReference=false&flags=&significance=empty&hideDataConfiguration=true&calculateSummary=false&showSummaryExpanded=false&showSummaryContents=true&showComplementAttributes=false&compactTables=true&viewStyle=chessboard&filter=%28not+contains%28os%2C%27Mac%27%29%29+and+%28failure%3D%3D%27runtime%2Fjni%2FLockTest%27%29&filter_override=%28not+contains%28os%2C%27Mac%27%29%29+and+%28failure%3D%3D%27runtime%2Fjni%!
2FLockTes
t%27%29>
>
>
> http://aurora-ds.ru.oracle.com:9500/runs/109364.JAVASE.NIGHTLY.VM.RT_Baseline.2012-10-08-50/results/ResultDir/LockTest
>
> *Project:* JDK <https://jbs.oracle.com/bugs/browse/JDK>
> *Priority:* P2 P2
> *Reporter:* Rickard Bäckman
> <https://jbs.oracle.com/bugs/secure/ViewProfile.jspa?name=rbackman>
>
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> <https://jbs.oracle.com/bugs/secure/ContactAdministrators!default.jspa>.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
More information about the hotspot-runtime-dev
mailing list