]> git.ipfire.org Git - thirdparty/asterisk.git/commit
debug_utilities: Create the ast_coredumper utility 23/4723/1
authorGeorge Joseph <gjoseph@digium.com>
Wed, 11 Jan 2017 00:10:39 +0000 (17:10 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 16 Jan 2017 16:24:54 +0000 (09:24 -0700)
commit8e5e3c2b0c8ef12ef25f1428fed2961bc3a487fc
treef5a013562bf9e39faebcec7bfb19577a5ab57569
parent08fb0b4ff6603c4932d5f031bc39deb30404292e
debug_utilities:  Create the ast_coredumper utility

This utility allows easy manipulation of asterisk coredumps.

* Configurable search paths and patterns for existing coredumps
* Can generate a consistent coredump from the running instance
* Can dump the lock_infos table from a coredump
* Dumps backtraces to separate files...
  - thread apply 1 bt full -> <coredump>.thread1.txt
  - thread apply all bt -> <coredump>.brief.txt
  - thread apply all bt full -> <coredump>.full.txt
  - lock_infos table -> <coredump>.locks.txt
* Can tarball corefiles and optionally delete them after processing
* Can tarball results files and optionally delete them after processing
* Converts ':' in coredump and results file names '-' to facilitate
  uploading.  Jira for instance, won't accept file names with colons
  in them.

Tested on Fedora24+, Ubuntu14+, Debian6+, CentOS6+ and FreeBSD9+[1].

[1] For *BSDs, the "devel/gdb" package might have to be installed to
get a recent gdb.  The utility will check all instances of gdb
it finds in $PATH and if one isn't found that can run python, it
prints a friendly error.

Change-Id: I935d37ab9db85ef923f32b05579897f0893d33cd
(cherry picked from commit 47474cfd54a9185c1433464ccfd6301427a03957)
configs/samples/ast_debug_tools.conf.sample [new file with mode: 0644]
contrib/Makefile
contrib/scripts/ast_coredumper [new file with mode: 0755]