If you're having certain types of crashes, such as those associated with
memory corruption, a bug marshal from Digium may ask us to run Asterisk
under valgrind. You should follow these steps, to give the bug marshal
the maximum amount of information about the crash.
Asterisk package provided by ScopServ already have proper Compiler Options like MALLOC_DEBUG, DONT_OPTIMIZE and DEBUG_THREAD. No Rebuild are required !
You can obtain more informations on how to debug Asterisk on
this page.
1 - Install Valgrind
In order to install Valgrind, please execute the following command:
2 - Run Asterisk using Valgrind
Run Asterisk as follows:
valgrind --log-file=/tmp/valgrind.txt asterisk -vvvvcg -U scopserv -G scopserv 2>/tmp/malloc_debug.txt
3 - Reproduce the issue
4 - Upload Debug files
Following the manifestation of the issue (or when the process crashes),
upload the two files,
/tmp/valgrind.txt and
/tmp/malloc_debug.txt
to the ScopServ bugtracker or directly on Digium issue tracker.