aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-29 23:49:17 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-29 23:49:17 +0200
commit9cc0a7f4ab4b0584bf06a4713563d96e4a3a9a72 (patch)
treecb03fcc51cdf4442f1a5cce5fa6e18f978bb1617 /src/benchmark.py
parent3f173d0b6c85ce5fffdcbe3da3b01eef8192033e (diff)
downloadallocbench-9cc0a7f4ab4b0584bf06a4713563d96e4a3a9a72.tar.gz
allocbench-9cc0a7f4ab4b0584bf06a4713563d96e4a3a9a72.zip
catch SIGSEGV as well; register sa_handlers only if its SIG_DLF before
Diffstat (limited to 'src/benchmark.py')
-rw-r--r--src/benchmark.py9
1 files changed, 2 insertions, 7 deletions
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: