From: Yann Collet Date: Tue, 2 Oct 2018 00:50:16 +0000 (-0700) Subject: restored backtrace on failure X-Git-Tag: v1.3.6^2~8^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d98733b37e3117b8be0e11ff697f25ba44d9db6a;p=thirdparty%2Fzstd.git restored backtrace on failure 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. --- diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 6b0c89d46..1545d1cac 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -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