adoptium / adoptium/aqa-tests

vmTestbase/nsk/jvmti/IterateThroughHeap/callbacks/Callbacks.java fails on jdk25 + s390x_linux

Open
#7,096 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

Test fails on s390x_linux (see https://github.com/adoptium/aqa-tests/pull/7092):
[vmTestbase/nsk/jvmti/IterateThroughHeap/callbacks/Callbacks.java](https://github.com/openjdk/jdk/blob/fa874fac23ce9a905d99d51185c298148ac149db/test/hotspot/jtreg/vmTestbase/nsk/jvmti/IterateThroughHeap/callbacks/Callbacks.java)

**Output:**
```
----------System.out:(21/2460)----------
[12:19:0.269] Verifying reachable objects.
The following fake exception stacktrace is for failure analysis.
nsk.share.Fake_Exception_for_RULE_Creation: (Callbacks.cpp:230) Field Lnsk/jvmti/IterateThroughHeap/callbacks/PublicPrimitives;::floatStaticField has unexpected value.
at nsk_lvcomplain(nsk_tools.cpp:172)
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PublicPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PublicPrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/ProtectedPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/ProtectedPrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PrivatePrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PrivatePrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/DefaultPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/DefaultPrimitives;::floatField has unexpected value.
[12:19:0.284] Verifying unreachable objects.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PublicPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PublicPrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/ProtectedPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/ProtectedPrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PrivatePrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/PrivatePrimitives;::floatField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/DefaultPrimitives;::floatStaticField has unexpected value.
# ERROR: Callbacks.cpp, 230: Field Lnsk/jvmti/IterateThroughHeap/callbacks/DefaultPrimitives;::floatField has unexpected value.
----------System.err:(5/532)----------
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by nsk.share.jvmti.DebugeeClass in an unnamed module (file:/home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17778971352434/hotspot_custom_0/work/classes/vmTestbase/nsk/jvmti/IterateThroughHeap/callbacks/Callbacks.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
...
14:19:00 TEST RESULT: Failed. Execution failed: Execution failed
```

**Additional info:**
I was able to reproduce the issue on rhel-8 s390x when with temurin jdk25 and corresponding testimage. However I have not seen this issue with jdk25u-dev built from source. Also when natives (test image) built from source was used together with temurin jdk, test passed. I am not sure, what causes this. (maybe something with build environment? I see no recent changes in test)

Contributor guide

Open the contributing guide

Research direction

Start with test/hotspot/jtreg/vmTestbase/nsk/jvmti/IterateThroughHeap/callbacks/Callbacks.java and the reported Callbacks.cpp:230 failures. Reproduce on RHEL 8 s390x with Temurin JDK 25 and its test image, then compare with a source-built jdk25u-dev and source-built natives. Done means the test passes consistently and the build-environment difference is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.