Re: Address Sanitizer issue in detecting memory leak.

2016-11-16 Thread Vamsi Ambati
Address Sanitizer issue is resolved at my end. I am providing the details how it was solved , may be helpful for others. Address sanitizer doesn’t detect memory leaks in Ubuntu 14.04 LTS with gcc version 4.8.4 . I have found a patch to gcc for Address Sanitizer at https://gcc.gnu.org/ml/gcc-p

Re: Address Sanitizer issue in detecting memory leak.

2016-11-15 Thread Bryan Call
Don’t know why Apple Mail didn’t send this. I noticed after restarting: By default you should see some leaks from CRYPTO_malloc even if you don’t have TLS/SSL configured. I am running Fedora 24. [bcall@homer trafficserver]$ sudo /usr/local/bin/traffic_server traffic_server: using root director

Re: Address Sanitizer issue in detecting memory leak.

2016-11-10 Thread Bryan Call
It is working on my Fedora 24. You might need to upgrade your compiler or OS. [bcall@homer ~]$ cat test.cc #include void dummy() { void *x = malloc(20); } int main() { dummy(); return 0; } [bcall@homer ~]$ g++ test.cc -fno-omit-frame-pointer -fsanitize=address [bcall@homer ~]$ ./a.out ===

Re: Address Sanitizer issue in detecting memory leak.

2016-11-10 Thread Sudheer Vinukonda
Not sure if the *leak* in your test code below is detectable..since your program is exiting after allocating the memory (system should automatically reclaim the memory on process exit). You may try to modify it to something more explicit like the below - > #include > void dummy() { > char *