ref: 9747f40dff831368dc055e4f51bf1379fb607a2e
parent: a16cf093bee150d7cb4cc4f72f80ac8ebee5af20
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 22 16:55:20 EST 2019
pc64: properly handle faulterror in faultamd64() replicate what faulterror() would have done with up->nerrlab == 0, that is, terminate the process.
--- a/sys/src/9/pc64/trap.c
+++ b/sys/src/9/pc64/trap.c
@@ -698,6 +698,10 @@
up->insyscall = 1;
f = fpusave();
if(!user && waserror()){+ if(up->nerrlab == 0){+ pprint("suicide: sys: %s\n", up->errstr);+ pexit(up->errstr, 1);
+ }
int s = splhi();
fpurestore(f);
up->insyscall = insyscall;
--
⑨