Print panic message after dumping the stack

Resolves #935
This commit is contained in:
Kurtis Rader 2020-03-07 16:23:31 -08:00 committed by Qi Xiao
parent 7868b68ff3
commit 3b70ef3b00

View File

@ -61,9 +61,10 @@ func rescue() {
r := recover()
if r != nil {
println()
println(r)
print(sys.DumpStack())
println("\nexecing recovery shell /bin/sh")
println()
println(r)
println("\nExecing recovery shell /bin/sh")
syscall.Exec("/bin/sh", []string{"/bin/sh"}, os.Environ())
}
}