On Mon, May 21, 2018 at 9:01 AM Seshadri R <[email protected]> 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-libasan > > and 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, see https://clang.llvm.org/docs/LeakSanitizer.html > > Thanks and Regards > Seshadri > > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
