Star Labs StarBook (AMD version) - kernel dump

The machine paniced, and produced a kernel dump:
Code:
root@kg-starone:~ # cat /var/crash/info.1
Dump header from device: /dev/nda0p2
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 2360213504
  Blocksize: 512
  Compression: none
  Dumptime: 2024-01-09 20:16:38 +0100
  Hostname: kg-starone
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
  Panic String: page fault
  Dump Parity: 2465842221
  Bounds: 1
  Dump Status: good
kgdb says
Code:
root@kg-starone:~ # kgdb /boot/kernel/kernel /var/crash/vmcore.1
GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 9; apic id = 09
fault virtual address   = 0x10
fault code      = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff828341e0
stack pointer           = 0x28:0xfffffe01c396c900
frame pointer           = 0x28:0xfffffe01c396c910
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 3
current process     = 2086 (Xorg:cs0)
rdi: fffffe01c07f1058 rsi: 0000000000000000 rdx: ffffffff82bbae6f
rcx: 0000000000000000  r8: 0000000000000010  r9: 0000000000000000
rax: 0000000000000000 rbx: fffffe01c07f1058 rbp: fffffe01c396c910
r10: 000000000001ffee r11: 0000000000000003 r12: fffffe01c07f1058
r13: 0000000000000000 r14: fffffe01c396c9e0 r15: fffffe01c396c9a8
trap number     = 12
panic: page fault
cpuid = 9
time = 1704827798
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff8100c85c at trap_fatal+0x40c
#4 0xffffffff8100c8af at trap_pfault+0x4f
#5 0xffffffff80fe3a38 at calltrap+0x8
#6 0xffffffff8280bc69 at amdgpu_cs_parser_bos+0x639
#7 0xffffffff8280b4ff at amdgpu_cs_ioctl+0xd8f
#8 0xffffffff82d3cbb6 at drm_ioctl_kernel+0xc6
#9 0xffffffff82d3cf65 at drm_ioctl+0x2b5
#10 0xffffffff80da7902 at linux_file_ioctl+0x312
#11 0xffffffff80bb15a5 at kern_ioctl+0x255
#12 0xffffffff80bb12e3 at sys_ioctl+0x123
#13 0xffffffff8100d119 at amd64_syscall+0x109
#14 0xffffffff80fe434b at fast_syscall_common+0xf8
Uptime: 1h40m24s
Dumping 2250 out of 64892 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57  /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) quit
 
I also see that I have an older dump
Code:
root@kg-starone:~ # cat /var/crash/info.0
Dump header from device: /dev/nda0p2
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 7880724480
  Blocksize: 512
  Compression: none
  Dumptime: 2023-12-30 21:19:17 +0100
  Hostname: kg-starone
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
  Panic String: page fault
  Dump Parity: 1092208941
  Bounds: 0
  Dump Status: good
kgdb info
Code:
root@kg-starone:~ # kgdb /boot/kernel/kernel /var/crash/vmcore.0
GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 6; apic id = 06
fault virtual address   = 0x68
fault code      = supervisor write data, page not present
instruction pointer = 0x20:0xffffffff82d039ef
stack pointer           = 0x28:0xfffffe01c2d7d9d0
frame pointer           = 0x28:0xfffffe01c2d7da00
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 3
current process     = 1590 (MainThread)
rdi: fffff807b3635000 rsi: ffffffff82d64764 rdx: ffffffff82d640f5
rcx: 0000000000000064  r8: 0000000000000002  r9: fffff8031d9c0a00
rax: 0000000000000000 rbx: fffff803332b5600 rbp: fffffe01c2d7da00
r10: 0000000000000000 r11: 0000000000000438 r12: 0000000000000060
r13: 0000000000000000 r14: fffff80001e65800 r15: fffff803332b5600
trap number     = 12
panic: page fault
cpuid = 6
time = 1703967557
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff8100c85c at trap_fatal+0x40c
#4 0xffffffff8100c8af at trap_pfault+0x4f
#5 0xffffffff80fe3a38 at calltrap+0x8
#6 0xffffffff82d0abff at page_flip_common+0x6f
#7 0xffffffff82d0ab3d at drm_atomic_helper_page_flip+0x4d
#8 0xffffffff82d47027 at drm_mode_page_flip_ioctl+0x407
#9 0xffffffff82d3cbb6 at drm_ioctl_kernel+0xc6
#10 0xffffffff82d3cf65 at drm_ioctl+0x2b5
#11 0xffffffff80da7902 at linux_file_ioctl+0x312
#12 0xffffffff80bb15a5 at kern_ioctl+0x255
#13 0xffffffff80bb12e3 at sys_ioctl+0x123
#14 0xffffffff8100d119 at amd64_syscall+0x109
#15 0xffffffff80fe434b at fast_syscall_common+0xf8
Uptime: 5h54m42s
Dumping 7515 out of 64892 MB:..1% (CTRL-C to abort) ..11% (CTRL-C to abort) ..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57  /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) quit
 
I even got a third one this evening
Code:
root@kg-starone:~ # cat /var/crash/info.2
Dump header from device: /dev/nda0p2
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 2535940096
  Blocksize: 512
  Compression: none
  Dumptime: 2024-01-09 21:25:13 +0100
  Hostname: kg-starone
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
  Panic String: handle_written_jnewblk: Unknown type 18.
  Dump Parity: 4157991790
  Bounds: 2
  Dump Status: good
now I have gdb installed, so I get more info
Code:
kg-starone dumped core - see /var/crash/vmcore.2

Tue Jan  9 21:26:04 CET 2024

FreeBSD kg-starone 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023     root@amd64-builder.daemonology.net:/usr/
obj/usr/src/amd64.amd64/sys/GENERIC  amd64

panic: handle_written_jnewblk: Unknown type 18.

GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:
panic: handle_written_jnewblk: Unknown type 18.
cpuid = 7
time = 1704831913
KDB: stack backtrace:
#0 0xffffffff80b9009d at kdb_backtrace+0x5d
#1 0xffffffff80b431a2 at vpanic+0x132
#2 0xffffffff80b43063 at panic+0x43
#3 0xffffffff80e7e095 at complete_jsegs+0x6d5
#4 0xffffffff80e68490 at softdep_disk_write_complete+0x6d0
#5 0xffffffff80c02fce at bufdone+0x1fe
#6 0xffffffff80a7fe01 at g_io_deliver+0x211
#7 0xffffffff80a7fe01 at g_io_deliver+0x211
#8 0xffffffff80a7d0d6 at g_disk_done+0x106
#9 0xffffffff80387034 at xpt_done_process+0x344
#10 0xffffffff80386ce7 at xpt_done_direct+0x47
#11 0xffffffff807a0739 at nvme_qpair_complete_tracker+0x149
#12 0xffffffff8079eab5 at _nvme_qpair_process_completions+0x155
#13 0xffffffff8079f1cb at nvme_qpair_msi_handler+0x2b
#14 0xffffffff80b01507 at ithread_loop+0x257
#15 0xffffffff80afdb7f at fork_exit+0x7f
#16 0xffffffff80fe4a9e at fork_trampoline+0xe
Uptime: 1h8m10s
Dumping 2418 out of 64892 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57      /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b42d37 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:526
#3  0xffffffff80b4320f in vpanic (
    fmt=0xffffffff81211c33 "handle_written_jnewblk: Unknown type %d.", 
    ap=ap@entry=0xfffffe015aa81b20) at /usr/src/sys/kern/kern_shutdown.c:970
#4  0xffffffff80b43063 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:894
#5  0xffffffff80e7e095 in handle_written_jnewblk (jnewblk=0xfffff80533682080)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:4143
#6  complete_jseg (jseg=0xfffff803b99de500)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:3902
#7  complete_jsegs (jseg=0xfffff803b99de500)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:3949
#8  0xffffffff80e68490 in handle_written_jseg (jseg=0xfffff803b99de500, 
    bp=0xfffffe006a141200) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3976
#9  softdep_disk_write_complete (bp=0xfffffe006a141200, 
    bp@entry=<error reading variable: value is not available>)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:11374
#10 0xffffffff80c02fce in buf_complete (bp=<optimized out>)
    at /usr/src/sys/sys/buf.h:458
#11 bufdone (bp=<optimized out>) at /usr/src/sys/kern/vfs_bio.c:4597
#12 0xffffffff80a7fe01 in g_io_deliver (bp=0xfffff80542de92f0, error=0)
    at /usr/src/sys/geom/geom_io.c:686
#13 0xffffffff80a7fe01 in g_io_deliver (bp=0xfffff80548573d38, error=0)
    at /usr/src/sys/geom/geom_io.c:686
#14 0xffffffff80a7d0d6 in g_disk_done (bp=0xfffff80542ddf758)
    at /usr/src/sys/geom/geom_disk.c:262
#15 0xffffffff80387034 in xpt_done_process (
    ccb_h=ccb_h@entry=0xfffff80548133000) at /usr/src/sys/cam/cam_xpt.c:5380
#16 0xffffffff80386ce7 in xpt_done_direct (done_ccb=0xfffff80548133000, 
    done_ccb@entry=<error reading variable: value is not available>)
    at /usr/src/sys/cam/cam_xpt.c:4532
#17 0xffffffff807a0739 in nvme_qpair_complete_tracker (tr=0xfffff80002639d80, 
    cpl=cpl@entry=0xfffffe015aa81e08, 
    print_on_error=print_on_error@entry=ERROR_PRINT_ALL)
    at /usr/src/sys/dev/nvme/nvme_qpair.c:448
#18 0xffffffff8079eab5 in _nvme_qpair_process_completions (
    qpair=qpair@entry=0xfffff80003b5d540)
    at /usr/src/sys/dev/nvme/nvme_qpair.c:637
#19 0xffffffff8079f1cb in nvme_qpair_process_completions (
    qpair=0xfffff80003b5d540) at /usr/src/sys/dev/nvme/nvme_qpair.c:696
#20 nvme_qpair_msi_handler (arg=0xfffff80003b5d540)
    at /usr/src/sys/dev/nvme/nvme_qpair.c:708
#21 0xffffffff80b01507 in intr_event_execute_handlers (ie=0xfffff800027d7600, 
    p=<optimized out>) at /usr/src/sys/kern/kern_intr.c:1205
#22 ithread_execute_handlers (ie=0xfffff800027d7600, p=<optimized out>)
    at /usr/src/sys/kern/kern_intr.c:1218
#23 ithread_loop (arg=arg@entry=0xfffff80001fd9660)
    at /usr/src/sys/kern/kern_intr.c:1306
#24 0xffffffff80afdb7f in fork_exit (
    callout=0xffffffff80b012b0 <ithread_loop>, arg=0xfffff80001fd9660, 
    frame=0xfffffe015aa81f40) at /usr/src/sys/kern/kern_fork.c:1160
#25 <signal handler called>
(kgdb)
(I didn't feel it necessary to put the whole textdump in there)
 
Back
Top