From e485362b0bde40debee791afaf4d9dc8585d0acf Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 14 Mar 2016 03:11:43 +0100 Subject: truss: fix "bad string" error due to missing ape _nsec() syscall --- sys/lib/acid/truss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/lib/acid/truss b/sys/lib/acid/truss index df1c9acdd..86070088d 100644 --- a/sys/lib/acid/truss +++ b/sys/lib/acid/truss @@ -157,8 +157,11 @@ trussapecalls = { defn addressof(pattern) { // translate to ape system calls if we have an ape binary - if _addressof("_EXITS") != 0 then + if _addressof("_EXITS") != 0 then { pattern = trussapecalls[match(pattern, trusscalls)]; + if pattern == {} then + return 0; + } if regexp("(seek|_SEEK)", pattern) && (objtype=="amd64" || objtype == "power64" || objtype == "alpha") then pattern = "_" + pattern; return _addressof(pattern); -- cgit v1.2.3