From d38bdd460f2b14ad7f8db0b8627cb634c79281df Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Fri, 7 Mar 2014 17:41:53 -0500 Subject: [PATCH] debugging for the watchdog segv. This is still there, and I still don't understand it. --- watchdog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/watchdog.c b/watchdog.c index 204a537..1a8dc4e 100644 --- a/watchdog.c +++ b/watchdog.c @@ -221,6 +221,10 @@ unsigned int check_if_fd(unsigned int child) if (syscalls_32bit[callno].entry->arg1type == ARG_FD) return TRUE; } else { + if (callno > max_nr_64bit_syscalls) { + output(0, "Weird, child:%d callno:%d (64bit max:%d)\n", child, callno, max_nr_64bit_syscalls); + return FALSE; + } if (syscalls_64bit[callno].entry->arg1type == ARG_FD) return TRUE; } -- 2.11.4.GIT