RFR: 8329421: Native methods can not be selectively printed [v2]
Volker Simonis
simonis at openjdk.org
Wed Jun 5 14:04:04 UTC 2024
On Wed, 5 Jun 2024 10:08:03 GMT, Wang Haomin <wanghaomin at openjdk.org> wrote:
>> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add test for -XX:+PrintNativeNMethods
>
> Hi @simonis , I encountered a build error after this commit. When `make images` using congiure `--with-jvm-variants=core`, the error is as follows:
>
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0x0000fffdea9ad1f4, pid=1696170, tid=1696241
> #
> # JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.wanghaomin.jdk-ls)
> # Java VM: OpenJDK 64-Bit Core VM (fastdebug 23-internal-adhoc.wanghaomin.jdk-ls, interpreted mode, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
> # Problematic frame:
> # V [libjvm.so+0x8ed1f4] BasicMatcher::match(methodHandle const&)+0x15c
> #
> # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/wanghaomin/jdk-ls/make/core.1696170)
> #
> # An error report file with more information is saved as:
> # /home/wanghaomin/jdk-ls/make/hs_err_pid1696170.log
> #
> # If you would like to submit a bug report, please visit:
> # https://bugreport.java.com/bugreport/crash.jsp
> #
> /usr/bin/bash: line 1: 1696170 Aborted (core dumped) /home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/jdk/bin/javac -g -Xlint:all -source 23 -target 23 -implicit:none -Xprefer:source -XDignore.symbol.file=true -encoding ascii -Werror --add-modules jdk.compiler,jdk.jdeps --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED --add-exports jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED -Xlint:-options -XDmodifiedInputs=/home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/create_symbols_javac/_the.COMPILE_CREATE_SYMBOLS_batch.modfiles.fixed -d /home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/create_symbols_javac @/home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/create_symbols_javac/_the.COMPILE_CREATE_SYMBO
LS_batch.filelist > >(/usr/bin/tee -a /home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/create_symbols_javac/_the.COMPILE_CREATE_SYMBOLS_batch.log) 2> >(/usr/bin/tee -a /home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/create_symbols_javac/_the.COMPILE_CREATE_SYMBOLS_batch.log >&2)
> gmake[3]: *** [Gendata.gmk:64: /home/wanghaomin/jdk-ls/build/linux-aarch64-core-fastdebug/buildtools/c...
Hi @haominw,
Unfortunately I can't reproduce this crash. I've tried with the latest HEAD revision from today and with the commit introduced by this PR. In both cases, when I configure with `--with-jvm-variants=core` and kick off the build, I run into the following compilation error:
/priv/simonisv/OpenJDK/Git/jdk/src/hotspot/cpu/x86/gc/z/zBarrierSetAssembler_x86.cpp: In function ‘bool is_c2_compilation()’:
/priv/simonisv/OpenJDK/Git/jdk/src/hotspot/cpu/x86/gc/z/zBarrierSetAssembler_x86.cpp:366:30: error: incomplete type ‘ciEnv’ used in nested name specifier
366 | CompileTask* task = ciEnv::current()->task();
| ^~~~~~~
Can you please detail the exact steps to reproduce the crash?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18567#issuecomment-2150065791
More information about the hotspot-dev
mailing list