]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
restored backtrace on failure
authorYann Collet <cyan@fb.com>
Tue, 2 Oct 2018 00:50:16 +0000 (17:50 -0700)
committerYann Collet <cyan@fb.com>
Tue, 2 Oct 2018 00:50:16 +0000 (17:50 -0700)
for Linux and Mac OS-X.

Note : the backtraces fires up through a trap
before the sanitizer get a chance to report.
There are situations where the sanitizer report is actually preferable.

It might be good to consider a kind of build macro
which can disable backtrace
when sanitizer is enabled.

programs/zstdcli.c

index 6b0c89d4653a92e2fb7635ff5f24d3622c1a56a6..1545d1cac5790d74467605c910ff4ea69129e331 100644 (file)
@@ -547,7 +547,7 @@ int main(int argCount, const char* argv[])
     memset(&compressionParams, 0, sizeof(compressionParams));
 
     /* init crash handler */
-    //FIO_addAbortHandler();
+    FIO_addAbortHandler();
 
     /* command switches */
     for (argNb=1; argNb<argCount; argNb++) {