You wrote:

"Pros: Can use a breakpoint to investigate the point when error happens"

I'd like to just point out that you can do that with valgrind + gdb too:
http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver-gdb

This has proved valuable to me on more than one occasion. Maybe the new gcc
__asan_report_error is still a bit easier to use though.


On Fri, Apr 26, 2013 at 12:44 PM, Campbell Barton <[email protected]>wrote:

> Just wrote down some info about how to use address sanitizer (now
> included with GCC),
> since I've found it useful recently and how to use with breakpoints
> isn't so obvious.
>
> Others who run into memory bugs once in a while may find it handy.
>
> wiki.blender.org/index.php/Dev:Doc/Tools/Debugging/GCC_Address_Sanitizer
>
> --
> - Campbell
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
>
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to