Hi,I want to use address sanitizer to profile a program (say A). However, this program is launched as a child of another process (B). I have built the executable for A using the compiler flags :-fsanitize=address -static-libasanand linked the process using the flags-fsanitize=address -static-libasan -lasan.
However, when I launch Process A as a subprocess of process B, I am not getting any errors or warnings.
How do I get the memory leaks in process A using Address Sanitizer?
--Thanks and RegardsSeshadri
You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to address-saniti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to address-sanitizer+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to address-sanitizer+unsubscribe@googlegroups.com.
Hi Konstantin,Thanks for your reply.The programs makefile has those options (maintained by our build team) and I mentioned them to provide complete information.Coming back to my question, I have tried to introduce a memory leak by adding the following code:int * pp = new int[1000000000];pp = 0;
Even then I did not get any memory leak reported. Is there any other way I can introduce a memory leak to check that my application is built properly and catching memory leaks.Thanks and RegardsSeshadri R
On Mon, May 21, 2018 at 9:54 PM, Konstantin Serebryany <konstantin....@gmail.com> wrote:
On Mon, May 21, 2018 at 9:01 AM Seshadri R <seshad...@gmail.com> wrote:Hi,I want to use address sanitizer to profile a program (say A). However, this program is launched as a child of another process (B). I have built the executable for A using the compiler flags :-fsanitize=address -static-libasanand linked the process using the flags-fsanitize=address -static-libasan -lasan.You should never need -lasan.If any piece of documentation tells you to use -lasan, please let us know, we need to remove that.-fsanitize=address at both compile and link-time should be sufficient.-static-libasan is optional.However, when I launch Process A as a subprocess of process B, I am not getting any errors or warnings.Maybe your program doesn't have bugs?How do I get the memory leaks in process A using Address Sanitizer?Are you only looking for memory leaks or for other types of bugs too?Unlike most other kinds of bugs, memory leaks are reported when the process is exiting,
--Thanks and RegardsSeshadri
You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to address-saniti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to address-saniti...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to address-saniti...@googlegroups.com.