Bug 223282

Summary: [kern.panic_reboot_wait_time] Does not work, immediate reboot
Product: Base System Reporter: Ben RUBSON <ben.rubson>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 11.0-RELEASE   
Hardware: Any   
OS: Any   

Description Ben RUBSON 2017-10-27 16:41:32 UTC
Hi,

# uname -sr
FreeBSD 11.0-RELEASE-p13

# sysctl kern.panic_reboot_wait_time
kern.panic_reboot_wait_time: -1

According to source code (sys/kern/kern_shutdown.c), FreeBSD should not reboot after a panic.
However it does, without displaying any message.
I also tried setting this sysctl to some seconds, same behavior.

I tried some debugging, kernel enter poweroff_wait(), but does not seem to enter shutdown_*(), where it should finally wait in shutdown_panic().

I would like my systems not to reboot after a panic, so that I can get the stack trace on the console if dump failed, thus allowing me to know what happened.

Thank you !

Ben