This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/59061] Port leaksanitizer
- From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jan 2014 07:19:55 +0000
- Subject: [Bug sanitizer/59061] Port leaksanitizer
- Auto-submitted: auto-generated
- References: <bug-59061-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #42 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
(In reply to Joost VandeVondele from comment #41)
> I'll close it as soon as libbacktrace is used with sanitizer in trunk (see
> comment #12), but if Jakob feels this is covered by e.g. PR59136, this one
> can be closed, indeed.
I believe this now works nicely:
> gfortran -g1 -fsanitize=leak test.f90 ; ./a.out
=================================================================
==55523==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7f5e57c63348 in __interceptor_malloc
../../../../gcc/libsanitizer/lsan/lsan_interceptors.cc:66
#1 0x400862 in s1 /data/vjoost/gnu/bugs/test.f90:3
#2 0x4008be in MAIN__ /data/vjoost/gnu/bugs/test.f90:6
#3 0x4008f4 in main /data/vjoost/gnu/bugs/test.f90:7
#4 0x305321ecdc in __libc_start_main (/lib64/libc.so.6+0x305321ecdc)
SUMMARY: LeakSanitizer: 40 byte(s) leaked in 1 allocation(s)
thanks!