[riscv-port-jdk11u:riscv-port] RFR: 8293474: RISC-V: Unify the way of moving function pointer
Dingli Zhang
dzhang at openjdk.org
Thu Oct 10 06:18:34 UTC 2024
On Wed, 9 Oct 2024 18:51:22 GMT, Andreas Schwab <duke at openjdk.org> wrote:
> This is causing a crash during boostrap, please revert.
>
> ```
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # Internal Error (output.cpp:1491), pid=174079, tid=174883
> # guarantee((int)(blk_starts[i+1] - blk_starts[i]) >= (current_offset - blk_offset)) failed: shouldn't increase block size
> #
> # JRE version: OpenJDK Runtime Environment (11.0.24+8) (build 11.0.24+8-suse-370.1-riscv64)
> # Java VM: OpenJDK 64-Bit Server VM (11.0.24+8-suse-370.1-riscv64, mixed mode, tiered, compressed oops, g1 gc, linux-riscv64)
> # Core dump will be written. Default location: /.build/cores/174079
> #
> # An error report file with more information is saved as:
> # /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/make/hs_err_pid174079.log
> [thread 174088 also had an error]
> #
> # Compiler replay data is saved as:
> # /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/make/replay_pid174079.log
> #
> # If you would like to submit a bug report, please visit:
> # https://bugreport.java.com/bugreport/crash.jsp
> #
> /usr/bin/bash: line 1: 174079 Aborted /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/jdk/bin/jlink -J-Djlink.debug=true --module-path /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/images/jmods --endian little --release-info /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/jdk/release --order-resources=**module-info.class,@/home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/support/link_opt/classlist,/java.base/java/**,/java.base/jdk/**,/java.base/sun/**,/java.base/com/**,/jdk.localedata/** --dedup-legal-notices=error-if-not-same-content --generate-jli-classes=@/home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/support/link_opt/default_jli_trace.txt --add-modules java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.smartcardio,java.sql,java.sql.rowset,java.trans
action.xa,java.xml,java.xml.crypto,jdk.accessibility,jdk.attach,jdk.charsets,jdk.compiler,jdk.crypto.cryptoki,jdk.crypto.ec,jdk.dynalink,jdk.editpad,jdk.hotspot.agent,jdk.httpserver,jdk.internal.ed,jdk.internal.jvmstat,jdk.internal.le,jdk.internal.opt,jdk.jartool,jdk.javadoc,jdk.jcmd,jdk.jconsole,jdk.jdeps,jdk.jdi,jdk.jdwp.agent,jdk.jfr,jdk.jlink,jdk.jshell,jdk.jsobject,jdk.jstatd,jdk.localedata,jdk.management,jdk.management.agent,jdk.management.jfr,jdk.naming.dns,jdk.naming.ldap,jdk.naming.rmi,jdk.net,jdk.pack,jdk.rmic,jdk.scripting.nashorn,jdk.scripting.nashorn.shell,jdk.sctp,jdk.security.auth,jdk.security.jgss,jdk.unsupported,jdk.unsupported.desktop,jdk.xml.dom,jdk.zipfs --output /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/images/jdk > >(/usr/bin/tee -a /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/support/images/jdk.log) 2> >(/usr/bin/tee -a /home/abuild/rpmbuild/BUILD/jdk11u-jdk-11.0.24-8/build/support/images/jdk.log 1>&2)
> ```
I use [this](https://builds.shipilev.net/openjdk-jdk11-riscv/openjdk-jdk11-riscv-linux-riscv64-server.tar.xz) as bootjdk and compiled on the commit `d46c73c4d90670a06f8351bde444a3f4e5c0fc41` using the following command:
bash configure \
--disable-warnings-as-errors \
--with-boot-jdk=/home/dingli/jdk-bin/openjdk-11/jdk
time make bootcycle-images
It can be built successfully.
Could you please try the same [bootjdk](https://builds.shipilev.net/openjdk-jdk11-riscv/openjdk-jdk11-riscv-linux-riscv64-server.tar.xz) ? Also can you give reproduction conditions? Thanks a lot.
-------------
PR Comment: https://git.openjdk.org/riscv-port-jdk11u/pull/33#issuecomment-2404129453
More information about the riscv-port-dev
mailing list