On Wed, 5 Jun 2024 13:04:03 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

> With ubsan enabled binaries we run into the following issue in HS :tier4 
> tests :
> e.g. 
> vmTestbase/nsk/jvmti/unit/FollowReferences/followref006/TestDescription.jtr
> 
> /jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp:149:16: 
> runtime error: null pointer passed as argument 2, which is declared to never 
> be null
>     #0 0x7fa7a1049482 in add_option 
> test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp:149
>     #1 0x7fa7a1049482 in nsk_jvmti_parseOptions 
> test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp:242
>     #2 0x7fa7a10634cd in Agent_Initialize 
> test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref006/followref006.cpp:216
>     #3 0x7fa79a9dbb36 in invoke_Agent_OnLoad 
> src/hotspot/share/prims/jvmtiAgent.cpp:609
>     #4 0x7fa79a9dbb36 in JvmtiAgent::load(outputStream*) 
> src/hotspot/share/prims/jvmtiAgent.cpp:623
>     #5 0x7fa79a9defd4 in load_agents 
> src/hotspot/share/prims/jvmtiAgentList.cpp:179
>     #6 0x7fa79a9defd4 in JvmtiAgentList::load_agents() 
> src/hotspot/share/prims/jvmtiAgentList.cpp:190
>     #7 0x7fa79bdad503 in Threads::create_vm(JavaVMInitArgs*, bool*) 
> src/hotspot/share/runtime/threads.cpp:505
>     #8 0x7fa79a6e531f in JNI_CreateJavaVM_inner 
> src/hotspot/share/prims/jni.cpp:3581
>     #9 0x7fa79a6e531f in JNI_CreateJavaVM src/hotspot/share/prims/jni.cpp:3672
>     #10 0x7fa7a11277d5 in InitializeJVM 
> src/java.base/share/native/libjli/java.c:1550
>     #11 0x7fa7a11277d5 in JavaMain 
> src/java.base/share/native/libjli/java.c:491
>     #12 0x7fa7a1130f68 in ThreadJavaMain 
> src/java.base/unix/native/libjli/java_md.c:653
>     #13 0x7fa7a10df6e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) 
> (BuildId: 2f8d3c2d0f4d7888c2598d2ff6356537f5708a73)
>     #14 0x7fa7a071550e in clone (/lib64/libc.so.6+0x11850e) (BuildId: 
> f732026552f6adff988b338e92d466bc81a01c37)

This pull request has now been integrated.

Changeset: 880c6b42
Author:    Matthias Baesken <mbaes...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/880c6b42ba74884690daa5c23f6605876f29aece
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8333178: ubsan: jvmti_tools.cpp:149:16: runtime error: null pointer passed as 
argument 2, which is declared to never be null

Reviewed-by: cjplummer, sspitsyn

-------------

PR: https://git.openjdk.org/jdk/pull/19557

Reply via email to