Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2023 18:01:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275172] crash with sysctl -a | less
Message-ID:  <bug-275172-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275172

            Bug ID: 275172
           Summary: crash with sysctl -a | less
           Product: Base System
           Version: 14.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Scenario:
- FreeBSD stable/14 at e4fb49e867ae (with a few harmless local patches ->
83a9fd62727b)
- Executing 'sysctl -a | less'

Result:
- The first page of the sysctl output is shown.

Scenario (continued):
- Press "G" to read all of the output and go to the end

Result (continued):
- Crash.

Note: Maybe there was a different scenario leading to the crash, the machine
was also busy with iSCSI traffic (ctld) to zfs zvols. Subjetively, the crash
coincided with pressing the "G" key.

Crash info:

[0]# cd /usr/lib/debug/boot/kernel=20=20=20=20=20=20=20=20
[0]# kgdb kernel.debug /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.htm=
l>
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 kernel.debug...

Unread portion of the kernel message buffer:


Fatal trap 9: general protection fault while in kernel mode
cpuid =3D 2; apic id =3D 02
instruction pointer     =3D 0x20:0xffffffff804f74c6
stack pointer           =3D 0x28:0xfffffe00f75e4a60
frame pointer           =3D 0x28:0xfffffe00f75e4b00
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 44121 (sysctl)
rdi: fffff8000c8ed088 rsi: 0000000000000000 rdx: 0000000000000000
rcx: 0000000000000000  r8: ffffffff82012090  r9: 0000000000000000
rax: 0000000000000000 rbx: fffff8000c8ed088 rbp: fffffe00f75e4b00
r10: 7fffac007fffac03 r11: fffffe0100f39540 r12: fffffe0100f39020
r13: 0000000000000000 r14: 0000000000000000 r15: 95f8404ead006a00
trap number             =3D 9
Timeout initializing vt_vga
panic: general protection fault
cpuid =3D 2
time =3D 1700327198
KDB: stack backtrace:
#0 0xffffffff8053772d at kdb_backtrace+0x5d
#1 0xffffffff804ec792 at vpanic+0x132
#2 0xffffffff804ec653 at panic+0x43
#3 0xffffffff8080a6fc at trap_fatal+0x40c
#4 0xffffffff807e2c98 at calltrap+0x8
#5 0xffffffff825d0ab4 at drm_vblank_info+0x64
#6 0xffffffff804fda40 at sysctl_root_handler_locked+0x90
#7 0xffffffff804fce66 at sysctl_root+0x216
#8 0xffffffff804fd4f6 at userland_sysctl+0x176
#9 0xffffffff804fd33c at sys___sysctl+0x5c
#10 0xffffffff8080afa5 at amd64_syscall+0x105
#11 0xffffffff807e35ab at fast_syscall_common+0xf8
Uptime: 8h43m24s
Dumping 2556 out of 16096 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..=
91%

__curthread () at
/net/hal/z/SRC/FreeBSD/src/MBi/stable/14/sys/amd64/include/pcpu_aux.h:57
57              __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru=
ct
pcpu,
(kgdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275172-227>