build.log: Output from failing command(s) repeated here - do not miss the hs_error file in case of crashes
Erik Joelsson
erik.joelsson at oracle.com
Thu Jul 25 17:37:43 UTC 2019
That sounds like a good idea. I'm sure the number 12 was chosen rather
arbitrarily.
/Erik
On 2019-07-16 07:39, Baesken, Matthias wrote:
> Hello, In case of JVM crashes in the build (yes they happen in development 😉 ) , we print some info about the crash at the end of the build log file
> In the Output from failing command(s) repeated here … section .
> This looks like the following (from a recent crash on AIX ) :
>
> === Output from failing command(s) repeated here ===
> /opt/freeware/bin/printf "* For target jdk__optimize_image_exec:\n"
> * For target jdk__optimize_image_exec:
> (/opt/freeware/bin/grep -v -e "^Note: including file:" < /nightly/output-jdk-test/make-support/failure-logs/jdk__optimize_image_exec.log || true) | /opt/freeware/bin/head -n 12
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0x3c0009003cc0a080, pid=34341128, tid=258
> #
> # JRE version: OpenJDK Runtime Environment (14.0.1) (build 14.0.0.1-internal+0-adhoc.openjdk.jdk)
> # Java VM: OpenJDK 64-Bit Server VM (14.0.0.1-internal+0-adhoc.openjdk.jdk, mixed mode, tiered, compressed oops, serial gc, aix-ppc64)
> # Problematic frame:
> # C 0x3c0009003cc0a080
> #
> # Core dump will be written. Default location: /nightly/jdk/make/core or core.34341128
> #
>
> Unfortunately , we miss the path to the hs_error file which is a pity because this is a VERY important info in the error analysis .
>
> The reason seems to be that we currently only print 12 lines (head -n 12) and this is not ehought to get the line with the hs_error file .
> Could we switch to 15 lines , this would include the hs_error file .
>
> Change would be done in jdk/make/InitSupport.gmk where PrintFailureReports is done .
>
>
> Best regards, Matthias
>
>
More information about the build-dev
mailing list