NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/54090: gcc -fsanitize=address creates an unusable binary on amd64



The following reply was made to PR toolchain/54090; it has been noted by GNATS.

From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost, alnsn%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/54090: gcc -fsanitize=address creates an unusable
 binary on amd64
Date: Sun, 31 Mar 2019 10:05:33 +0900

 detect_leaks, which is turned on default for amd64, is currently broken.
 You can disable it by setting ASAN_OPTIONS to detect_leaks=false
 
 % uname -a
 NetBSD latipes 8.99.36 NetBSD 8.99.36 (AMD64) #0: Fri Mar 22 19:13:47 JST 2019  rin@latipes:/build/src/sys/arch/amd64/compile/AMD64 amd64
 % gcc -fsanitize=address hello.c -o hello.asan
 % ./hello.asan
 Hello, World!
 ASAN:DEADLYSIGNAL
 ^C
 % ASAN_OPTIONS=detect_leaks=false ./hello.asan
 Hello, World!
 
 Options for asan/lsan are described here
 
 https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
 https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
 


Home | Main Index | Thread Index | Old Index