From 9cc0a7f4ab4b0584bf06a4713563d96e4a3a9a72 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 29 Sep 2019 23:49:17 +0200 Subject: catch SIGSEGV as well; register sa_handlers only if its SIG_DLF before --- src/benchmark.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index f2aa8a3..4dfaa78 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -345,7 +345,7 @@ class Benchmark: env = dict(os.environ) env["LD_PRELOAD"] = env.get("LD_PRELOAD", "") env["LD_PRELOAD"] += " " + f"{src.globalvars.builddir}/print_status_on_exit.so" - env["LD_PRELOAD"] += " " + f"{src.globalvars.builddir}/abort_handler.so" + env["LD_PRELOAD"] += " " + f"{src.globalvars.builddir}/sig_handlers.so" env["LD_PRELOAD"] += " " + alloc["LD_PRELOAD"] if "LD_LIBRARY_PATH" in alloc: @@ -407,10 +407,7 @@ class Benchmark: result = {} - if any([res.returncode != 0, - "ERROR: ld.so" in res.stderr, - "Segmentation fault" in res.stderr, - os.path.exists("aborted")]): + if res.returncode != 0 or "ERROR: ld.so" in res.stderr: print() print_debug("Stdout:\n" + res.stdout) print_debug("Stderr:\n" + res.stderr) @@ -418,8 +415,6 @@ class Benchmark: print_error("{} failed with exit code {} for {}".format(argv, res.returncode, alloc_name)) elif "ERROR: ld.so" in res.stderr: print_error("Preloading of {} failed for {}".format(alloc["LD_PRELOAD"], alloc_name)) - elif os.path.exists("aborted"): - os.remove("aborted") # parse and store results else: -- cgit v1.2.3