openjdk 20 crash on linux 5.19.9

95 views
Skip to first unread message

Ze Zhang

unread,
Nov 21, 2022, 11:39:44 PM11/21/22
to RISC-V SW Dev
java -version will crash on linux 5.19.9
but 5.15 will be ok
hs_err_pid338.log

Palmer Dabbelt

unread,
Nov 21, 2022, 11:45:29 PM11/21/22
to Ze Zhang, RISC-V SW Dev
There's an issue with large VAs that is causing issues for a handful of userspace stacks (Go and OpenJDK).  If your kernel and implementation supports these, as newer QEMU and Linux do, then you'll see crashes.  There's some fixes in the works but I don't think anything has been posted yet.

That's all I know of, the OpenJDK port list is probably the best place to ask.

On Mon, Nov 21, 2022, 8:39 PM Ze Zhang <zhangz...@gmail.com> wrote:
java -version will crash on linux 5.19.9
but 5.15 will be ok

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/a584deeb-b874-44a5-8ea4-d0194b1e5ec6n%40groups.riscv.org.

Ze Zhang

unread,
Nov 22, 2022, 2:44:44 AM11/22/22
to RISC-V SW Dev, pal...@dabbelt.com, RISC-V SW Dev, Ze Zhang
I found kernel 5.19.9 defaults to PGTABLE_LEVELS = 5, but openjdk 20 only support SV48, 
so I should change qemu 7.10 to SV48, (QEMU 7.10 defaults to SV57).

atish patra

unread,
Nov 22, 2022, 2:49:33 AM11/22/22
to Ze Zhang, RISC-V SW Dev, pal...@dabbelt.com
On Mon, Nov 21, 2022 at 11:44 PM Ze Zhang <zhangz...@gmail.com> wrote:
I found kernel 5.19.9 defaults to PGTABLE_LEVELS = 5, but openjdk 20 only support SV48, 
so I should change qemu 7.10 to SV48, (QEMU 7.10 defaults to SV57).


Here is the qemu patch that allows user to specify the mmu mode
 
Here is the hackish patch from ubuntu repo to force kernel to sv48

There will be an official patch in the kernel to address this as well.

在2022年11月22日星期二 UTC+8 12:45:29<pal...@dabbelt.com> 写道:
There's an issue with large VAs that is causing issues for a handful of userspace stacks (Go and OpenJDK).  If your kernel and implementation supports these, as newer QEMU and Linux do, then you'll see crashes.  There's some fixes in the works but I don't think anything has been posted yet.

That's all I know of, the OpenJDK port list is probably the best place to ask.

On Mon, Nov 21, 2022, 8:39 PM Ze Zhang <zhangz...@gmail.com> wrote:
java -version will crash on linux 5.19.9
but 5.15 will be ok

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/a584deeb-b874-44a5-8ea4-d0194b1e5ec6n%40groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.

Michael Zoran

unread,
Nov 22, 2022, 2:51:31 AM11/22/22
to RISC-V SW Dev, zhangz...@gmail.com, pal...@dabbelt.com, RISC-V SW Dev
I've been playing with a fpga based riscv that can run linux and I'm finding that performance isn't that affected by the page table depth.  Perhaps Sv57 really should be the default for most systems and maybe openjdk could be improved?

Michael Zoran

unread,
Jan 2, 2023, 4:24:19 PM1/2/23
to RISC-V SW Dev, Michael Zoran, zhangz...@gmail.com, pal...@dabbelt.com, RISC-V SW Dev
Have any patches been submitted on this?

Tommy Murphy

unread,
Jan 2, 2023, 5:12:39 PM1/2/23
to Michael Zoran, RISC-V SW Dev, Michael Zoran, zhangz...@gmail.com, pal...@dabbelt.com, RISC-V SW Dev
As Palmer suggested earlier, probably best to follow up here?

Reply all
Reply to author
Forward
0 new messages