[jdk15u-dev] RFR: 8279077: JFR crashes on Linux ppc due to missing crash protector in signal handler

Paul Hohensee phh at openjdk.java.net
Wed Dec 22 00:05:28 UTC 2021


On Tue, 21 Dec 2021 20:34:14 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> This is a linux_ppc specific bug, probably a day-one bug till relevant code was refactored by JDK-8255711 in 16.
> 
> Linux ppc signal handler does not install crash protector as other Linux based platforms do, e.g. linux_x86, that can result a crash while jfr tries to fill stack trace for other thread.

Please add the jdk16 and later comment:

  // Handle JFR thread crash protection.
  //  Note: this may cause us to longjmp away. Do not use any code before this
  //  point which really needs any form of epilogue code running, eg RAII objects.

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

Changes requested by phh (Reviewer).

PR: https://git.openjdk.java.net/jdk15u-dev/pull/155


More information about the jdk-updates-dev mailing list