Improving debugging support for Asterisk
    Paul Belanger 
    pabelanger at digium.com
       
    Thu Apr  7 23:48:48 UTC 2011
    
    
  
Evening,
Currently, we don't have a good method to generate unoptimized 
backtraces if Asterisk crashes; this make it hard for upstream developer 
to get the required information.  With this patch, we now toggle 
--enable-dev-mode, DONT_OPTIMIZE and DEBUG_THREADS, the usually flags 
required to generate a backtrace[1].
This does not affect packages in the repository (because of the overhead 
added to Asterisk), but allows local users to rebuild the package if 
required.
$ sudo apt-get build-dep asterisk
$ DEB_BUILD_OPTIONS="debug" apt-get -b source asterisk
Once built, the local user can install, reproduce their issue, and 
generate a good backtrace.
[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace
-- 
Paul Belanger
Digium, Inc. | Software Developer
twitter: pabelanger | IRC: pabelanger (Freenode)
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable_dev_mode.patch
Type: text/x-patch
Size: 2766 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20110407/81b04f98/attachment-0001.bin>
    
    
More information about the Pkg-voip-maintainers
mailing list