Re: CURRENT: panic init() on acpi_shutdown
Date: Wed, 17 Sep 2025 21:48:57 UTC
On Wed, 17 Sep 2025, Oleg Nauman wrote:
> On Wed, Sep 17, 2025 at 10:44 PM A FreeBSD User <freebsd@walstatt-de.de> wrote:
>>
>> Hello,
>>
>> Maybe some minor issue, but since two days I can not shutdown recent CURRENT (at the moment
>> FreeBSD 16.0-CURRENT #0 master-n280445-2d85bc89294b: Wed Sep 17 20:11:48 CEST 2025 amd64).
>>
>> System stops with a db> carret, a backtrace is shown. No core saved (although configured), USB
>> keyboards unresponsive, filesystems (system on UFS, data graveyard on ZFS) unharmed and
>> already cleanly unmounted as it seems, tried to save the backtrace, but keyboards are
>> nonworking at that stage (picture taken from screen only).
>>
>> The crash seems to occur quite after everything is ready to reboot and or switch the box off.
Yes, and USB is all detached; same problem here. Started after I
rebased my branch to main yesterday.
> I am experiencing the same issue with panic on shutdown
>
> Backtrace looks like
Seems you are blessed in that your keyboard still worked? I could not
get a dump either; only a photo of the panic so far. The end of the
backtrace looks the same.
> __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
> 57 __asm("movq %%gs:%c1,%0" : "=r" (td)
> (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
> td = <optimized out>
> #1 doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:399
> error = 0
> coredump = <optimized out>
> #2 0xffffffff80517da9 in kern_reboot (howto=260)
> at /usr/src/sys/kern/kern_shutdown.c:519
> once = 1
> #3 0xffffffff8051824b in vpanic (fmt=0xffffffff808b9cbc "%s",
> ap=ap@entry=0xfffffe00df015970) at /usr/src/sys/kern/kern_shutdown.c:974
> buf = "page fault", '\000' <repeats 245 times>
> __pc = 0x0
> __pc = 0x0
> __pc = 0x0
> other_cpus = {__bits = {254, 0 <repeats 15 times>}}
> td = 0xfffff8010261b780
> bootopt = <unavailable>
> newpanic = <optimized out>
> #4 0xffffffff805180e3 in panic (fmt=<unavailable>)
> at /usr/src/sys/kern/kern_shutdown.c:887
> ap = {{gp_offset = 16, fp_offset = 48,
> overflow_arg_area = 0xfffffe00df0159a0,
> reg_save_area = 0xfffffe00df015940}}
> #5 0xffffffff80860ead in trap_fatal (frame=<optimized out>,
> eva=<optimized out>) at /usr/src/sys/amd64/amd64/trap.c:969
> type = <optimized out>
> #6 0xffffffff80860ead in trap_pfault (frame=0xfffffe00df0159f0,
> usermode=<optimized out>, signo=<optimized out>, ucode=<optimized out>)
> __pc = 0x0
> __pc = 0x0
> __pc = 0x0
> td = <optimized out>
> p = <optimized out>
> eva = 136
> map = <optimized out>
> ftype = <optimized out>
> rv = <optimized out>
> #7 <signal handler called>
> No locals.
> #8 device_get_softc (dev=dev@entry=0x0) at /usr/src/sys/kern/subr_bus.c:2141
> No locals.
> #9 0xffffffff80369ce5 in acpi_wake_sleep_prep (handle=0xfffff80001675c80,
> stype=POWER_STYPE_POWEROFF) at /usr/src/sys/dev/acpica/acpi.c:3689
> prw = {gpe_handle = 0x0, gpe_bit = 105, lowest_wake = 4, power_res = {{
> Type = 0, Integer = {Type = 0, Value = 18446741878427704080},
> String = {Type = 0, Length = 0,
> Pointer = 0xfffffe00df015b10 "`[", <incomplete
> sequence \337>}, Buffer = {Type = 0, Length = 0,
> Pointer = 0xfffffe00df015b10 "`[", <incomplete
> sequence \337>}, Package = {Type = 0, Count = 0, Elements =
> 0xfffffe00df015b10}, Reference = {
> Type = 0, ActualType = 0, Handle = 0xfffffe00df015b10},
> Processor = {Type = 0, ProcId = 0,
> PblkAddress = 18446741878427704080, PblkLength = 2150908252},
> PowerResource = {Type = 0, SystemLevel = 0,
> ResourceOrder = 3741408016}}, {Type = 3741408001, Integer = {
> Type = 3741408001, Value = 0}, String = {Type = 3741408001,
> Length = 4294966784, Pointer = 0x0}, Buffer = {
> Type = 3741408001, Length = 4294966784, Pointer = 0x0},
> Package = {Type = 3741408001, Count = 4294966784,
> Elements = 0x0}, Reference = {Type = 3741408001,
> ActualType = 4294966784, Handle = 0x0}, Processor = {
> Type = 3741408001, ProcId = 4294966784, PblkAddress = 0,
> PblkLength = 3741408001}, PowerResource = {Type = 3741408001,
> SystemLevel = 4294966784, ResourceOrder = 0}}, {
> Type = 19051264, Integer = {Type = 19051264,
> Value = 18446741878427704160}, String = {Type = 19051264,
> Length = 4294965248,
> Pointer = 0xfffffe00df015b60 "\340[", <incomplete
> sequence \337>}, Buffer = {Type = 19051264, Length = 4294965248,
> Pointer = 0xfffffe00df015b60 "\340[", <incomplete
> sequence \337>}, Package = {Type = 19051264, Count = 4294965248,
> Elements = 0xfffffe00df015b60}, Reference = {Type = 19051264,
> ActualType = 4294965248, Handle = 0xfffffe00df015b60},
> Processor = {Type = 19051264, ProcId = 4294965248,
> PblkAddress = 18446741878427704160, PblkLength = 2150851410},
> PowerResource = {Type = 19051264, SystemLevel = 4294965248,
> ResourceOrder = 3741408096}}, {Type = 0, Integer = {Type = 0,
> Value = 17328064}, String = {Type = 0, Length = 0,
> Pointer = 0x10867c0 <error: Cannot access memory at
> address 0x10867c0>}, Buffer = {Type = 0, Length = 0,
> Pointer = 0x10867c0 <error: Cannot access memory at
> address 0x10867c0>}, Package = {Type = 0, Count = 0, Elements =
> 0x10867c0}, Reference = {
> Type = 0, ActualType = 0, Handle = 0x10867c0}, Processor = {
> Type = 0, ProcId = 0, PblkAddress = 17328064,
> PblkLength = 1598182239}, PowerResource = {Type = 0,
> SystemLevel = 0, ResourceOrder = 17328064}}, {Type = 0,
> Integer = {Type = 0, Value = 18446735277642536049}, String = {
> Type = 0, Length = 0, Pointer = 0xfffff800018cd471 "GPRW"},
> Buffer = {Type = 0, Length = 0,
> Pointer = 0xfffff800018cd471 "GPRW"}, Package = {Type = 0,
> Count = 0, Elements = 0xfffff800018cd471}, Reference = {
> Type = 0, ActualType = 0, Handle = 0xfffff800018cd471},
> Processor = {Type = 0, ProcId = 0,
> PblkAddress = 18446735277642536049, PblkLength = 0},
> PowerResource = {Type = 0, SystemLevel = 0,
> ResourceOrder = 26006641}}, {Type = 2161121376, Integer = {
> Type = 2161121376, Value = 2}, String = {Type = 2161121376,
> Length = 4294967295,
> Pointer = 0x2 <error: Cannot access memory at address 0x2>},
> Buffer = {Type = 2161121376, Length = 4294967295,
> Pointer = 0x2 <error: Cannot access memory at address 0x2>},
> Package = {Type = 2161121376, Count = 4294967295,
> Elements = 0x2}, Reference = {Type = 2161121376,
> ActualType = 4294967295, Handle = 0x2}, Processor = {
> Type = 2161121376, ProcId = 4294967295, PblkAddress = 2,
> PblkLength = 3741408224}, PowerResource = {Type = 2161121376,
> SystemLevel = 4294967295, ResourceOrder = 2}}, {
> Type = 2150833742, Integer = {Type = 2150833742,
> Value = 18446741878427704232}, String = {Type = 2150833742,
> Length = 4294967295, Pointer = 0xfffffe00df015ba8 "\001"},
> Buffer = {Type = 2150833742, Length = 4294967295,
> Pointer = 0xfffffe00df015ba8 "\001"}, Package = {
> Type = 2150833742, Count = 4294967295,
> Elements = 0xfffffe00df015ba8}, Reference = {
> Type = 2150833742, ActualType = 4294967295,
> Handle = 0xfffffe00df015ba8}, Processor = {Type = 2150833742,
> ProcId = 4294967295, PblkAddress = 18446741878427704232,
> PblkLength = 2150889998}, PowerResource = {Type = 2150833742,
> SystemLevel = 4294967295, ResourceOrder = 3741408168}}, {
> Type = 557304, Integer = {Type = 557304, Value = 4097},
> String = {Type = 557304, Length = 4294966784,
> Pointer = 0x1001 <error: Cannot access memory at
> address 0x1001>}, Buffer = {Type = 557304, Length = 4294966784,
> Pointer = 0x1001 <error: Cannot access memory at
> address 0x1001>}, Package = {Type = 557304, Count = 4294966784,
> Elements = 0x1001},
> Reference = {Type = 557304, ActualType = 4294966784,
> Handle = 0x1001}, Processor = {Type = 557304,
> ProcId = 4294966784, PblkAddress = 4097, PblkLength = 3},
> PowerResource = {Type = 557304, SystemLevel = 4294966784,
> ResourceOrder = 4097}}}, power_res_count = 0}
> dev = 0x0
> sc = <optimized out>
> sstate = <optimized out>
> #10 acpi_wake_prep (handle=0xfffff80001675c80, level=<optimized out>,
> context=<optimized out>, status=<optimized out>)
> at /usr/src/sys/dev/acpica/acpi.c:3764
> stype = POWER_STYPE_POWEROFF
> #11 0xffffffff80336eab in AcpiNsWalkNamespace (Type=Type@entry=6,
> StartNode=<optimized out>, StartNode@entry=0xfffff8000122b300,
> MaxDepth=MaxDepth@entry=100, Flags=Flags@entry=1,
> DescendingCallback=DescendingCallback@entry=0xffffffff80369c80
> <acpi_wake_prep>, AscendingCallback=AscendingCallback@entry=0x0,
> Context=0xfffffe00df015cd4, ReturnValue=0x0)
> at /usr/src/sys/contrib/dev/acpica/components/namespace/nswalk.c:484
> NodePreviouslyVisited = 0 '\000'
> ParentNode = 0xfffff80001506cc0
> ChildNode = 0xfffff80001675c80
> ChildType = 6
> Level = 3
> Status = 0
> MutexStatus = <optimized out>
> #12 0xffffffff80337415 in AcpiWalkNamespace (Type=Type@entry=6,
> StartObject=0xfffff8000122b300, MaxDepth=MaxDepth@entry=100,
> DescendingCallback=0xffffffff80369c80 <acpi_wake_prep>,
> AscendingCallback=AscendingCallback@entry=0x0,
> Context=Context@entry=0xfffffe00df015cd4, ReturnValue=<optimized out>)
> at /usr/src/sys/contrib/dev/acpica/components/namespace/nsxfeval.c:809
> Status = 0
> #13 0xffffffff80366cf4 in acpi_wake_prep_walk (stype=POWER_STYPE_POWEROFF)
> at /usr/src/sys/dev/acpica/acpi.c:3777
> sb_handle = 0xfffff8000122b300
> #14 acpi_shutdown (dev=0xfffff80001264800)
> at /usr/src/sys/dev/acpica/acpi.c:878
> No locals.
> #15 0xffffffff805533e6 in DEVICE_SHUTDOWN (dev=0xfffff80001264800)
> at ./device_if.h:267
> rc = <optimized out>
> _m = <optimized out>
> _cep = <optimized out>
> _ce = <optimized out>
> _desc = <optimized out>
> #16 device_shutdown (dev=0xfffff80001264800)
> at /usr/src/sys/kern/subr_bus.c:2753
> No locals.
> #17 bus_generic_shutdown (dev=<optimized out>)
> at /usr/src/sys/kern/subr_bus.c:3563
> child = <optimized out>
> #18 0xffffffff805533e6 in DEVICE_SHUTDOWN (dev=0xfffff80001263500)
> at ./device_if.h:267
> rc = <optimized out>
> _m = <optimized out>
> _cep = <optimized out>
> _ce = <optimized out>
> _desc = <optimized out>
> #19 device_shutdown (dev=0xfffff80001263500)
> at /usr/src/sys/kern/subr_bus.c:2753
> No locals.
> #20 bus_generic_shutdown (dev=<optimized out>)
> at /usr/src/sys/kern/subr_bus.c:3563
> child = <optimized out>
> #21 0xffffffff80557686 in DEVICE_SHUTDOWN (dev=0xfffff8000129f800)
> at ./device_if.h:267
> rc = <optimized out>
> _m = <optimized out>
> _cep = <optimized out>
> _ce = <optimized out>
> _desc = <optimized out>
> #22 device_shutdown (dev=0xfffff8000129f800)
> at /usr/src/sys/kern/subr_bus.c:2753
> No locals.
> #23 root_bus_module_handler (mod=<optimized out>, what=<optimized out>,
> arg=<optimized out>) at /usr/src/sys/kern/subr_bus.c:5211
> No locals.
> #24 0xffffffff804fa0dc in module_shutdown (arg1=<optimized out>,
> arg2=<optimized out>) at /usr/src/sys/kern/kern_module.c:101
> mod = 0xfffff80001197c00
> #25 0xffffffff80517e57 in kern_reboot (howto=16392)
> at /usr/src/sys/kern/kern_shutdown.c:527
> _ep = <optimized out>
> _t = 0xfffff800010867c0
> _el = 0xfffff8000108b500
> once = 1
> #26 0xffffffff80517797 in sys_reboot (td=<optimized out>,
> uap=0xfffff8010261bba8) at /usr/src/sys/kern/kern_shutdown.c:308
> error = 5
> #27 0xffffffff808617d8 in syscallenter (td=0xfffff8010261b780)
> at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:193
> se = 0xffffffff80c4e2a0 <sysent+1760>
> p = 0xfffffe00c8c02568
> sa = <optimized out>
> error = <optimized out>
> sy_thr_static = <optimized out>
> traced = <optimized out>
> _tid = <optimized out>
> _v = <optimized out>
> _v = <optimized out>
> _tid = <optimized out>
> _v = <optimized out>
> _v = <optimized out>
> _tid = <optimized out>
> _v = <optimized out>
> _v = <optimized out>
> #28 amd64_syscall (td=0xfffff8010261b780, traced=0)
> at /usr/src/sys/amd64/amd64/trap.c:1208
> ksi = {ksi_link = {tqe_next = 0xffffffff808609de <trap+1950>,
> tqe_prev = 0x0}, ksi_info = {si_signo = 1, si_errno = 0,
> si_code = 39958400, si_pid = -2047, si_uid = 4255167736,
> si_status = 21105, si_addr = 0xfffffe00df015e80, si_value = {
> sival_int = 555446720, sival_ptr = 0xfffffe00211b71c0,
> sigval_int = 555446720, sigval_ptr = 0xfffffe00211b71c0},
> _reason = {_fault = {_trapno = 40006216}, _timer = {
> _timerid = 40006216, _overrun = -2047}, _mesgq = {
> _mqd = 40006216}, _poll = {_band = -8791758048696},
> _capsicum = {_syscall = 40006216}, __spare__ = {
> __spare1__ = -8791758048696, __spare2__ = {555446720, -512,
> -553558288, -512, 39958400, -2047, -2134899320}}}},
> ksi_flags = 7, ksi_sigq = 0x205}
> #29 <signal handler called>
> No locals.
> #30 0x000000000028b13a in ?? ()
> No symbol table info available.
> Backtrace stopped: Cannot access memory at address 0x8204d4108
>
>
> Thank you
>
>>
>> --
>>
>> A FreeBSD user
>
>
--
Bjoern A. Zeeb r15:7