address-sanitizer

By Reini Urban (‎rurban‎) from Dresden.pm
Date: Monday, 20 August 2012 15:20
Duration: 20 minutes
Target audience: Advanced
Language: English


address-sanitizer (aka ASan) is a memory error detector for C/C++, superior to valgrind. It comes with clang.

It finds:
* Use after free
* Out-of-bounds accesses to
** heap
** stack
** globals
* Use after return

It is very fast. The average slowdown of the instrumented program is ~2x, it's ~10-20x faster than valgrind. DEBUGGING builds should just use it.
The tool works on x86 Linux and Mac.
How it works, what errors it finds, some tools.


Attended by: Martin Becker (‎martin‎), Tadeusz Sośnierz (‎tadzik‎), Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 (‎daxim‎), Tobias Leich (‎froggs‎), Salve J. Nilsen (‎sjn‎), Stevan Little (‎stevan‎), Oleg Komarov (‎komarov‎), Stefan Seifert (‎Nine‎), Todd Rinaldo (‎toddr‎), Erik Johansen (‎uniejo‎), Reini Urban (‎rurban‎), Claes Jakobsson (‎claes‎), Torsten Förtsch, Herbert Leitz, Dmitry Karasik (‎McFist‎), Martin Vorländer (‎mvorl‎), Alex Timoshenko, Gianni Ceccarelli (‎dakkar‎), Sébastien Aperghis-Tramoni (‎Maddingue‎), Martin Evans (‎mjevans‎), J. Nick Koston (‎bdraco‎), Kang-min Liu (‎gugod‎), Arjen Laarhoven, Stefan O'Rear (‎sorear‎), Stéphane Payrard (‎cognominal‎), Bron Gondwana (‎brong‎),
Platin Sponsors Gold Sponsors Silver Sponsors Sponsors

Want to sponsor YAPC::EU? See the sponsor packages