[sw-dev] openjdk crash on linux kernel 6.1.5

Ze Zhang zhangze.linux at gmail.com
Thu Feb 23 09:15:49 UTC 2023


Yes, it is.
thanks a lot,  my current kernel version 6.1.9 uses this:

    if
(!static_branch_likely(&riscv_isa_ext_keys[RISCV_ISA_EXT_KEY_ZIHINTPAUSE]))
{

which has this issue, and kernel 5.15 / 5.19 / 6.20 do not use this array.

but I have no evidence about this, because gdb can not print vdso backtrace:

(gdb) info threads
  Id   Target Id                                         Frame
  1    Thread 0x7ffff7e97020 (LWP 432) "java"            0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff6090250,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  2    Thread 0x7ffff6090180 (LWP 437) "java"            syscall
(syscall_number=98, arg1=<optimized out>, arg2=128, arg3=21, arg4=0,
arg5=0, arg6=0, arg7=178)
    at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/riscv/syscall.c:30
  3    Thread 0x7ffff48d7180 (LWP 438) "GC Thread#0"     0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0068508,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  4    Thread 0x7ffff46d5180 (LWP 439) "G1 Main Marker"  0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0025ad8,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  5    Thread 0x7ffff44d3180 (LWP 440) "G1 Conc#0"       0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0070758,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  6    Thread 0x7fffd839e180 (LWP 441) "G1 Refine#0"     0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff00a1318,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  7    Thread 0x7fffc9fff180 (LWP 442) "G1 Service"      0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff00a2468,
expected=<optimized out>, op=<optimized out>, abstime=0x7fffc9ffe6e8,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  8    Thread 0x7fffc9dfd180 (LWP 443) "VM Thread"       0x00007ffff7f23466
in __GI___clock_nanosleep (clock_id=clock_id at entry=0, flags=flags at entry=0,
req=0x7fffc9dfc268, rem=0x0)
    at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/clock_nanosleep.c:48
  9    Thread 0x7fffc9bfb180 (LWP 444) "Reference Handl" 0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff002a078,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  10   Thread 0x7fffc99fb180 (LWP 445) "Finalizer"       0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0221678,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  11   Thread 0x7fffc97fb180 (LWP 446) "Signal Dispatch" 0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0017cf0,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  12   Thread 0x7fffc95fb180 (LWP 447) "Service Thread"  0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0026938,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  13   Thread 0x7fffc93fb180 (LWP 448) "Monitor Deflati" 0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0026858,
expected=<optimized out>, op=<optimized out>, abstime=0x7fffc93fa6d8,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  14   Thread 0x7fffc91fb180 (LWP 449) "C2 CompilerThre" 0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0027b08,
expected=<optimized out>, op=<optimized out>, abstime=0x7fffc91fa548,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  15   Thread 0x7fffc8ffb180 (LWP 450) "C1 CompilerThre" syscall
(syscall_number=98, arg1=<optimized out>, arg2=128, arg3=21, arg4=0,
arg5=0, arg6=0, arg7=178)
    at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/riscv/syscall.c:30
  16   Thread 0x7fffc8dfb180 (LWP 451) "Notification Th" 0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0026a18,
expected=<optimized out>, op=<optimized out>, abstime=0x0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
  17   Thread 0x7fffc8bfb180 (LWP 452) "VM Periodic Tas" 0x00007ffff7f23466
in __GI___clock_nanosleep (clock_id=clock_id at entry=0, flags=flags at entry=0,
req=0x7fffc8bfa788, rem=0x0)
    at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/clock_nanosleep.c:48
  18   Thread 0x7fffc89f9180 (LWP 453) "Common-Cleaner"  0x00007ffff7efa506
in __futex_abstimed_wait_common64 (futex_word=0x7ffff0366f88,
expected=<optimized out>, op=<optimized out>, abstime=0x7fffc89f7bf0,
    private=<optimized out>, cancel=<optimized out>) at futex-internal.c:57
* 19   Thread 0x7fffc87f9180 (LWP 454) "Tail"            _SafeFetch32_fault
() at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/os_cpu/linux_riscv/safefetch_linux_riscv.S:40
  20   Thread 0x7fffc85f9180 (LWP 455) "Tail"            syscall
(syscall_number=98, arg1=<optimized out>, arg2=128, arg3=21, arg4=0,
arg5=0, arg6=0, arg7=178)
    at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/riscv/syscall.c:30
(gdb) bt
#0  _SafeFetch32_fault () at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/os_cpu/linux_riscv/safefetch_linux_riscv.S:40
#1  0x00007ffff6ed5072 in SafeFetch32 (adr=0x18c87f7fa0,
errValue=-889275714) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/safefetch.hpp:51
#2  0x00007ffff6effd62 in os::is_readable_pointer (p=0x18c87f7fa0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/os.cpp:1115
#3  0x00007ffff6effece in os::print_location (st=0x7fffc87f2830,
x=106443014048, verbose=false) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/os.cpp:1151
#4  0x00007ffff724c832 in VMError::report (st=0x7fffc87f2830,
_verbose=true) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:890
#5  0x00007ffff724eff6 in VMError::report_and_die (id=-536870912,
message=0x7ffff782b9c0 "assert(!is_global_tagged(handle) ||
is_storage_handle(global_handles(), global_ptr(handle))) failed",
    detail_fmt=0x7ffff782b9b0 "invalid storage",
detail_args=0x7fffc87f29e0, thread=0x7ffff05255b0, pc=0x0, siginfo=0x0,
context=0x0,
    filename=0x7ffff782b780
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/jniHandles.cpp",
lineno=245, size=0)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1588
#6  0x00007ffff724e766 in VMError::report_and_die (thread=0x7ffff05255b0,
context=0x0, filename=0x7ffff782b780
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/jniHandles.cpp",

    lineno=245, message=0x7ffff782b9c0 "assert(!is_global_tagged(handle) ||
is_storage_handle(global_handles(), global_ptr(handle))) failed",
detail_fmt=0x7ffff782b9b0 "invalid storage",
    detail_args=0x7fffc87f29e0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1351
#7  0x00007ffff67acf9e in report_vm_error (file=0x7ffff782b780
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/jniHandles.cpp",
line=245,
    error_msg=0x7ffff782b9c0 "assert(!is_global_tagged(handle) ||
is_storage_handle(global_handles(), global_ptr(handle))) failed",
detail_fmt=0x7ffff782b9b0 "invalid storage")
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/debug.cpp:286
#8  0x00007ffff6ba1178 in JNIHandles::is_global_handle
(handle=0x7ffff7fe0916 <__vdso_clock_gettime+228>) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/jniHandles.cpp:245
#9  0x00007ffff6efff02 in os::print_location (st=0x7fffc87f36e0,
x=140737354008854, verbose=false) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/runtime/os.cpp:1155
#10 0x00007ffff6f13062 in os::print_register_info (st=0x7fffc87f36e0,
context=0x7fffc87f7ba0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/os_cpu/linux_riscv/os_linux_riscv.cpp:387
#11 0x00007ffff724c578 in VMError::report (st=0x7fffc87f36e0,
_verbose=true) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:867
#12 0x00007ffff724eff6 in VMError::report_and_die (id=-536870912,
message=0x7ffff758ceb0 "assert(false) failed", detail_fmt=0x7ffff758ce80
"section header string table should be loaded",
    detail_args=0x7fffc87f3890, thread=0x7ffff05255b0, pc=0x0, siginfo=0x0,
context=0x0, filename=0x7ffff758ca50
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp",

    lineno=536, size=0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1588
#13 0x00007ffff724e766 in VMError::report_and_die (thread=0x7ffff05255b0,
context=0x0, filename=0x7ffff758ca50
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp",

    lineno=536, message=0x7ffff758ceb0 "assert(false) failed",
detail_fmt=0x7ffff758ce80 "section header string table should be loaded",
detail_args=0x7fffc87f3890)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1351
#14 0x00007ffff67acf9e in report_vm_error (file=0x7ffff758ca50
"/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp",
line=536,
    error_msg=0x7ffff758ceb0 "assert(false) failed",
detail_fmt=0x7ffff758ce80 "section header string table should be loaded")
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/debug.cpp:286
#15 0x00007ffff6865928 in ElfFile::read_section_header
(this=0x7fff880049d0, name=0x7ffff758cd48 ".gnu_debuglink", hdr=...)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp:536
#16 0x00007ffff6865066 in ElfFile::read_debug_info (this=0x7fff880049d0,
debug_info=0x7fffc87f39f8) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp:407
#17 0x00007ffff6864f0e in ElfFile::load_dwarf_file (this=0x7fff880049d0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp:391
#18 0x00007ffff6864c9a in ElfFile::get_source_info (this=0x7fff880049d0,
offset_in_library=2326, filename=0x7fffc87f6c08 "", filename_len=128,
line=0x7fffc87f6bfc, is_pc_after_call=false)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/elfFile.cpp:354
#19 0x00007ffff67b45ac in ElfDecoder::get_source_info (this=0x7fff880042f0,
pc=0x7ffff7fe0916 <__vdso_clock_gettime+228> "\334CcR\360\b\017",
filename=0x7fffc87f6c08 "", filename_len=128, line=0x7fffc87f6bfc,
    is_pc_after_call=false) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/decoder_elf.cpp:90
#20 0x00007ffff67b3cd6 in Decoder::get_source_info (pc=0x7ffff7fe0916
<__vdso_clock_gettime+228> "\334CcR\360\b\017", filename=0x7fffc87f6c08 "",
filename_len=128, line=0x7fffc87f6bfc, is_pc_after_call=false)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/decoder.cpp:118
#21 0x00007ffff7249f5a in VMError::print_native_stack (st=0x7fffc87f7870,
fr=..., t=0x7ffff05255b0, print_source_info=true, max_frames=-1,
    buf=0x7ffff7e8f350 <VMError::report(outputStream*, bool)::buf>
"mill.main.client.FileToStreamTailer.run()V", buf_size=2000)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:366
#22 0x00007ffff724beee in VMError::report (st=0x7fffc87f7870,
_verbose=true) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:820
#23 0x00007ffff724eff6 in VMError::report_and_die (id=11, message=0x0,
detail_fmt=0x7ffff7c278c0 "%s", detail_args=0x7fffc87f79d0,
thread=0x7ffff05255b0,
    pc=0x7ffff7fe0916 <__vdso_clock_gettime+228> "\334CcR\360\b\017",
siginfo=0x7fffc87f7b20, context=0x7fffc87f7ba0, filename=0x0, lineno=0,
size=0)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1588
#24 0x00007ffff724e69c in VMError::report_and_die (thread=0x7ffff05255b0,
sig=11, pc=0x7ffff7fe0916 <__vdso_clock_gettime+228> "\334CcR\360\b\017",
siginfo=0x7fffc87f7b20, context=0x7fffc87f7ba0,
    detail_fmt=0x7ffff7c278c0 "%s") at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1339
#25 0x00007ffff724e708 in VMError::report_and_die (thread=0x7ffff05255b0,
sig=11, pc=0x7ffff7fe0916 <__vdso_clock_gettime+228> "\334CcR\360\b\017",
siginfo=0x7fffc87f7b20, context=0x7fffc87f7ba0)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/share/utilities/vmError.cpp:1345
#26 0x00007ffff70c389e in JVM_handle_linux_signal (sig=11,
info=0x7fffc87f7b20, ucVoid=0x7fffc87f7ba0, abort_if_unrecognized=1)
    at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/os/posix/signals_posix.cpp:655
#27 0x00007ffff70c3936 in javaSignalHandler (sig=11, info=0x7fffc87f7b20,
context=0x7fffc87f7ba0) at
/usr/src/debug/openjdk/20+gitAUTOINC+5dfc4ec7d9-r0/src/hotspot/os/posix/signals_posix.cpp:666
#28 <signal handler called>
#29 0x00007ffff7fe0916 in __vdso_clock_gettime ()
#30 0x00007ffff7f23356 in __GI___clock_gettime (clock_id=<optimized out>,
tp=<optimized out>) at
/usr/src/debug/glibc/2.37-r0/sysdeps/unix/sysv/linux/clock_gettime.c:42
#31 0x00000000d5fa7858 in ?? ()
(gdb)



Tommy Murphy <tommy_murphy at hotmail.com> 于2023年1月31日周二 22:01写道:

> Could it be related to this issue?
>
>
> https://lore.kernel.org/all/3815b200-a9e2-a3db-c7f1-1e3f86dbab3f@cloudbear.ru/T/#rccffdbbebe5130653c80cdd5189ed25fdc609936
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/riscv-port-dev/attachments/20230223/f4b2aab9/attachment-0001.htm>


More information about the riscv-port-dev mailing list