Loading... (original) (raw)

One of the profiler vendors reports a crash when they enable the jvmtiStringPrimitiveCallback implementation. From the description it appears that the heap iteration (IterateThroughHeap) encounters a partially constructed java.lang.String. That is, the value field is null. The invoke_string_value_callback function doesn't check for this case and so will crash.

  1. agent.c
    2 kB
    2015-01-09 09:49
  2. StringBanger.java
    2 kB
    2015-01-09 09:49

backported by

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8072661 jvmtiStringPrimitiveCallback should not be invoked when string value is null

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8076680 jvmtiStringPrimitiveCallback should not be invoked when string value is null

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8082814 jvmtiStringPrimitiveCallback should not be invoked when string value is null

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8086405 jvmtiStringPrimitiveCallback should not be invoked when string value is null

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8137599 jvmtiStringPrimitiveCallback should not be invoked when string value is null

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8139139 jvmtiStringPrimitiveCallback should not be invoked when string value is null

(1 backported by)