Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK19 serviceability_jvmti_j9_0_FAILED serviceability/jvmti/negative/contmon03/contmon03.java Segmentation error vmState=0x00040000 #15986

Closed
JasonFengJ9 opened this issue Sep 27, 2022 · 0 comments · Fixed by #16008
Assignees
Labels
jdk19 segfault Issues that describe segfaults / JVM crashes test failure
Milestone

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Sep 27, 2022

Failure link

From an internal build(rhel9x86-rt2-1):

openjdk version "19" 2022-09-20
IBM Semeru Runtime Open Edition 19+36 (build 19+36)
Eclipse OpenJ9 VM 19+36 (build master-784820387, JRE 19 Linux amd64-64-Bit Compressed References 20220920_45 (JIT enabled, AOT enabled)
OpenJ9   - 784820387
OMR      - 24b511df5
JCL      - 4efd563f9c based on jdk-19+36)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2022-09-25T07:43:03.014Z] variation: Mode150
[2022-09-25T07:43:03.014Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2022-09-25T07:44:00.117Z] TEST: serviceability/jvmti/negative/contmon03/contmon03.java

[2022-09-25T07:44:00.119Z] STDOUT:
[2022-09-25T07:44:00.119Z] >>> invalid thread check ...
[2022-09-25T07:44:00.119Z] STDERR:
[2022-09-25T07:44:00.119Z] Unhandled exception
[2022-09-25T07:44:00.119Z] Type=Segmentation error vmState=0x00040000
[2022-09-25T07:44:00.119Z] J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
[2022-09-25T07:44:00.119Z] Handler1=00007FCE1CCF8210 Handler2=00007FCE1CC526B0 InaccessibleAddress=0000000000000008
[2022-09-25T07:44:00.119Z] RDI=00007FCE1824E340 RSI=00000000001F5C00 RAX=00007FCE1824E340 RBX=00000000001AEA98
[2022-09-25T07:44:00.119Z] RCX=0000000000000001 RDX=00007FCE1D4C65E0 R8=00007FCE1824E340 R9=0000000000000000
[2022-09-25T07:44:00.119Z] R10=00000000E0048D58 R11=0000000000000000 R12=00007FCE1CEC2460 R13=00000000001F5C00
[2022-09-25T07:44:00.119Z] R14=00000000001F5C00 R15=00007FCDDEE4B230
[2022-09-25T07:44:00.119Z] RIP=00007FCE1CC1A736 GS=0000 FS=0000 RSP=00007FCDDEE4B150
[2022-09-25T07:44:00.119Z] EFlags=0000000000010246 CS=0033 RBP=0000000000000000 ERR=0000000000000004
[2022-09-25T07:44:00.119Z] TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=0000000000000008
[2022-09-25T07:44:00.119Z] xmm0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm1 0000000000000006 (f: 6.000000, d: 2.964394e-323)
[2022-09-25T07:44:00.119Z] xmm2 00007fce1ce91f30 (f: 485039936.000000, d: 6.942770e-310)
[2022-09-25T07:44:00.119Z] xmm3 0000000000006e6f (f: 28271.000000, d: 1.396773e-319)
[2022-09-25T07:44:00.119Z] xmm4 635f33306e6f6d74 (f: 1852796288.000000, d: 4.709899e+170)
[2022-09-25T07:44:00.119Z] xmm5 0000003000000020 (f: 32.000000, d: 1.018558e-312)
[2022-09-25T07:44:00.119Z] xmm6 000000000007ea18 (f: 518680.000000, d: 2.562620e-318)
[2022-09-25T07:44:00.119Z] xmm7 000000000007eb00 (f: 518912.000000, d: 2.563766e-318)
[2022-09-25T07:44:00.119Z] xmm8 2f7972616e69626b (f: 1852400256.000000, d: 5.365304e-80)
[2022-09-25T07:44:00.119Z] xmm9 ffffffffffffffff (f: 4294967296.000000, d: -nan)
[2022-09-25T07:44:00.119Z] xmm10 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm11 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm12 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm13 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm14 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] xmm15 0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2022-09-25T07:44:00.119Z] Module=/home/jenkins/workspace/Test_openjdk19_j9_extended.openjdk_x86-64_linux/openjdkbinary/j2sdk-image/lib/default/libj9thr29.so
[2022-09-25T07:44:00.119Z] Module_base_address=00007FCE1CC10000 Symbol=omrthread_monitor_enter
[2022-09-25T07:44:00.119Z] Symbol_address=00007FCE1CC1A720
[2022-09-25T07:44:00.119Z] Target=2_90_20220920_45 (Linux 5.14.0-70.26.1.el9_0.x86_64)
[2022-09-25T07:44:00.119Z] CPU=amd64 (4 logical CPUs) (0x1e049f000 RAM)
[2022-09-25T07:44:00.119Z] ----------- Stack Backtrace -----------
[2022-09-25T07:44:00.119Z] omrthread_monitor_enter+0x16 (0x00007FCE1CC1A736 [libj9thr29.so+0xa736])
[2022-09-25T07:44:00.119Z] haltThreadForInspection+0xae (0x00007FCE1CD4567E [libj9vm29.so+0x8b67e])
[2022-09-25T07:44:00.119Z] jvmtiGetCurrentContendedMonitor+0x1a2 (0x00007FCE1C30FBD2 [libj9jvmti29.so+0x2fbd2])
[2022-09-25T07:44:00.119Z] Java_contmon03_check+0x50 (0x00007FCE1C022370 [libcontmon03.so+0x2370])
[2022-09-25T07:44:00.119Z] ffi_call_unix64+0x52 (0x00007FCE1CE67B8A [libj9vm29.so+0x1adb8a])
[2022-09-25T07:44:00.119Z] ffi_call_int+0x1a2 (0x00007FCE1CE66D22 [libj9vm29.so+0x1acd22])
[2022-09-25T07:44:00.119Z] _ZN32VM_BytecodeInterpreterCompressed3runEP10J9VMThread+0x11f61 (0x00007FCE1CD61761 [libj9vm29.so+0xa7761])
[2022-09-25T07:44:00.119Z] bytecodeLoopCompressed+0xad (0x00007FCE1CD4F7ED [libj9vm29.so+0x957ed])
[2022-09-25T07:44:00.119Z]  (0x00007FCE1CDF6092 [libj9vm29.so+0x13c092])
[2022-09-25T07:44:00.119Z] ---------------------------------------
[2022-09-25T07:44:00.119Z] JVMDUMP039I Processing dump event "gpf", detail "" at 2022/09/25 00:43:58 - please wait.

[2022-09-25T07:48:25.964Z] serviceability_jvmti_j9_0_FAILED

Similar segmentation errors occurred at following tests as well:

serviceability/jvmti/negative/frameloc03/frameloc03.java
serviceability/jvmti/negative/getstacktr02/getstacktr02.java
@JasonFengJ9 JasonFengJ9 added test failure segfault Issues that describe segfaults / JVM crashes jdk19 labels Sep 27, 2022
@pshipton pshipton changed the title DK19 serviceability_jvmti_j9_0_FAILED serviceability/jvmti/negative/contmon03/contmon03.java Segmentation error vmState=0x00040000 JDK19 serviceability_jvmti_j9_0_FAILED serviceability/jvmti/negative/contmon03/contmon03.java Segmentation error vmState=0x00040000 Sep 27, 2022
@pshipton pshipton added this to the Java 19 milestone Sep 28, 2022
@babsingh babsingh self-assigned this Sep 28, 2022
babsingh added a commit to babsingh/openj9 that referenced this issue Sep 29, 2022
Return JVMTI_ERROR_INVALID_THREAD if the input thread parameter is not
a thread object.

Fixes: eclipse-openj9#15986

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
babsingh added a commit to babsingh/openj9 that referenced this issue Oct 3, 2022
- Return JVMTI_ERROR_INVALID_THREAD if the input thread parameter is
not a thread object.
- Consolidate j.l.Thread and j.l.VirtualThread error-checking within
getVMThread. This avoids repeated NULL checking and potentially
fetching the current thread.
- Convert getVMThread's boolean input parameters to a bit field.
- More verbose naming used to avoid ambiguity: IS_JAVA_LANG_THREAD
and IS_JAVA_LANG_VIRTUALTHREAD.

Fixes: eclipse-openj9#15986

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jdk19 segfault Issues that describe segfaults / JVM crashes test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants