On Thu, 20 Jun 2024 11:58:23 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

> The following issue has been observed when running
> serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest  (and some 
> other :tier1 tests)
> on Linux with ubsan enabled binaries :
> 
> test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/libHeapMonitorTest.cpp:518:9:
>  runtime error: null pointer passed as argument 2, which is declared to never 
> be null
>     #0 0xffff80388020 in event_storage_augment_storage 
> test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/libHeapMonitorTest.cpp:518
>     #1 0xffff80388020 in event_storage_add 
> test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/libHeapMonitorTest.cpp:557
>     #2 0xffff85e695fc in JvmtiExport::post_sampled_object_alloc(JavaThread*, 
> oopDesc*) src/hotspot/share/prims/jvmtiExport.cpp:2926
>     #3 0xffff85e558b8 in 
> JvmtiObjectAllocEventCollector::generate_call_for_allocated() 
> src/hotspot/share/prims/jvmtiExport.cpp:3074
>     #4 0xffff85e56c14 in 
> JvmtiSampledObjectAllocEventCollector::~JvmtiSampledObjectAllocEventCollector()
>  src/hotspot/share/prims/jvmtiExport.cpp:3171
>     #5 0xffff85e56c14 in 
> JvmtiSampledObjectAllocEventCollector::~JvmtiSampledObjectAllocEventCollector()
>  src/hotspot/share/prims/jvmtiExport.cpp:3166
>     #6 0xffff862ace34 in 
> MemAllocator::Allocation::notify_allocation_jvmti_sampler() 
> src/hotspot/share/gc/shared/memAllocator.cpp:196
>     #7 0xffff862af7a4 in MemAllocator::Allocation::~Allocation() 
> src/hotspot/share/gc/shared/memAllocator.cpp:87
>     #8 0xffff862af7a4 in MemAllocator::allocate() const 
> src/hotspot/share/gc/shared/memAllocator.cpp:356
>     #9 0xffff86dca4dc in CollectedHeap::array_allocate(Klass*, unsigned long, 
> int, bool, JavaThread*) 
> src/hotspot/share/gc/shared/collectedHeap.inline.hpp:41
>     #10 0xffff86dca4dc in TypeArrayKlass::allocate_common(int, bool, 
> JavaThread*) src/hotspot/share/oops/typeArrayKlass.cpp:93
>     #11 0xffff86dca4dc in TypeArrayKlass::allocate_common(int, bool, 
> JavaThread*) src/hotspot/share/oops/typeArrayKlass.cpp:89
>     #12 0xffff857f35c8 in InterpreterRuntime::newarray(JavaThread*, 
> BasicType, int) src/hotspot/share/interpreter/interpreterRuntime.cpp:232
>     #13 0xffff6b094cf4 (<unknown module>)

LGTM.

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

Marked as reviewed by lucy (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19804#pullrequestreview-2130462767

Reply via email to