On Fri, 25 Sep 2026 05:02:54 GMT, Yasumasa Suenaga <[email protected]> wrote:

>> serviceability/sa/TestJhsdbJstackMixedWithXComp.java#xcomp failed due 
>> because stderr has message to report DebuggerException caused by unknown 
>> DWARF opcode.
>> 
>> During the discussion, we've reached the conclusion that it is better to add 
>> `print_waring()` to notice this case (it is handled in 
>> [JDK-8392120](https://bugs.openjdk.org/browse/JDK-8392120): PR #33047), and 
>> the exception should not be shown in normal.
>> 
>> Thus this PR proposes to show DebuggerException when `LIBSAPROC_DEBUG` 
>> environment variable is set in mixed jstack.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Yasumasa Suenaga has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Introduce DwarfException

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/PStack.java line 200:

> 198:             } catch (DwarfException dex) {
> 199:                // Linux: DwarfException would be shown if DWARF 
> processing is failed.
> 200:                // Stack unwinding should be aborted, however we can 
> continue for other threads.

Suggestion:

               // Linux: DwarfException will be thrown if DWARF processing 
fails.
               // Stack unwinding should be aborted. However, we can continue 
for other threads.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33048#discussion_r4105595897

Reply via email to