After obtaining the source code for Octave, use the configure script with whatever options you normally build with and add the special option -enable-address-sanitizer-flags. The current strategy is to use an Address Sanitizer which can be compiled in with a program by modern versions of gcc or clang.Ĭreating a version of Octave which works with an Address Sanitizer is quite simple. Previously the Octave developers had relied on Valgrind, but this is very slow. To combat this, programmers use a variety of tools to identify memory issues. As the complexity of the program grows, the probability of accidentally introducing some sort of memory bug (out-of-range access, misaligned access, use after free, etc.) grows. Memory leaks are a fact of life for programs which use dynamic memory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |