JDK-8205562 : vmTestbase/nsk/stress/strace tests failing with unexpected method name
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2018-06-23
  • Updated: 2018-06-26
  • Resolved: 2018-06-26
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 11
11Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Various tests in vmTestbase/nsk/stress/strace have started failing with an "Unexpected method name: ..." error, where the method name seems to vary with the specific test.  These failures are occurring on multiple platforms, but seem to be somewhat intermittent.  The tests seem to be failing because some unexpected method names / frames are being found in a stack trace.


Comments
Fixed by JDK-8205540.
26-06-2018

These failures first showed up in the jdk11-jdk-911 CI job set. That job has this changeset for open: $ hg log -r bc104aaf24e9ce76fb89f40b3c1220e51b69588e changeset: 50722:bc104aaf24e9 user: michaelm date: Fri Jun 22 18:10:20 2018 +0100 summary: 8204233: Add configurable option for enhanced socket IOException messages The fix for JDK-8204233 was pushed at 2018.06.22 @ 1310 ET. The fix for JDK-8205540 was pushed via this changeset: $ hg log -r 7348c41ca46d changeset: 50742:7348c41ca46d user: plevart date: Sun Jun 24 10:41:51 2018 +0200 summary: 8205540: test/hotspot/jtreg/vmTestbase/nsk/jdb/trace/trace001/trace001.java fails with Debuggee did not exit after 15 <cont> commands The fix for JDK-8205540 was pushed on 2018.06.24 @ 0443 ET. I'm not finding an instance of this bug's failure mode after the jdk11-jdk-915 CI job set on 2018.06.23. There are a couple of sightings in private Mach5 jobs on 2018.06.24, but those private repos could simply be missing the fix for JDK-8205540. I believe this bug can be closed as a duplicate of JDK-8205540. [~kbarrett] - If you concur, can you please remove the 'promotion_blocker' label and close this bug as a duplicate of JDK-8205540.
26-06-2018

Are those tests still failing after the change for JDK-8205540 ? This patch added a check which skips calling ThreadLocal.isPresent() and Thread.currentThread() when the exiting thread didn't use any thread locals. If those failing tests don't use Java thread locals, they might be fine now.
26-06-2018

This is a regression and a promotion_blocker so raising the priority from P4 -> P3.
24-06-2018

JDK-8202788 (which is in the new changes listed above) changed Thread.exit, causing it to call some new functions. I think that might be the underlying cause of this, e.g. I think these tests need to be updated to account for that change to Thread.exit. Functions I've seen complained about here include "isPresent" (and there's an isPresent in the new code) and (native) currentThread (which I think can also be called from the new code). See also JDK-8205540.
23-06-2018

Putting this in hotspot/runtime only because that's where the tests are. This could just be a test bug, where the various tests needs to be updated to account for some change. These failures first started appearing 23-June-2018. Changes that were new in the first mach5 job containing these failures are: 8205445 Add RSASSA-PSS Signature support to SunMSCAPI 8204233 Add configurable option for enhanced socket IOException messages 8202788 Explicitly reclaim cached thread-local direct buffers at thread exit 8205195 NestedThreadsListHandleInErrorHandlingTest fails because hs_err doesn't contain _nested_thread_list_max 8205474 AARCH64: wrong zr encoding for ccmp instruction 8205004 AArch64: fix failures in jtreg ArraysEqCmpTest 8205445 Add RSASSA-PSS Signature support to SunMSCAPI 8203299 StringPoolBuffer access covered by exclusive access invariant, remove (problematic) cas operations 8204331 AArch64: fix CAS not embedded in normal graph error 8195077 [Testbug] tools/javac/processing/model/completionfailure/NoAbortForBadClassFile.java - AccessDeniedException plus a couple of merge changesets (8205445 appears twice because it had a closed part.)
23-06-2018