vm: restore stacktrace on SIGSEGV

This commit is contained in:
Ben Gras 2013-01-04 18:30:12 +00:00
parent 51a3e84a97
commit b258ab0e66

View file

@ -75,6 +75,7 @@ void do_pagefaults(message *m)
assert(PFERR_NOPAGE(err)); assert(PFERR_NOPAGE(err));
printf("VM: pagefault: SIGSEGV %d bad addr 0x%x; %s\n", printf("VM: pagefault: SIGSEGV %d bad addr 0x%x; %s\n",
ep, addr, pf_errstr(err)); ep, addr, pf_errstr(err));
sys_sysctl_stacktrace(ep);
} }
if((s=sys_kill(vmp->vm_endpoint, SIGSEGV)) != OK) if((s=sys_kill(vmp->vm_endpoint, SIGSEGV)) != OK)
panic("sys_kill failed: %d", s); panic("sys_kill failed: %d", s);