Index: runtests.py =================================================================== --- runtests.py (revision 4730) +++ runtests.py (working copy) @@ -106,7 +106,16 @@ if not os.path.exists(dest_dir): os.makedirs(dest_dir) dest_file = open(dest_dir + "/backtrace_%s.txt" % str(random_num), "w") - gdb_cmd = ["gdb", "-se", "asterisk", "-ex", "bt full", "-ex", "thread apply all bt", "--batch", "-c", core] + gdb_cmd = [ + "gdb", + "-se", "asterisk", + "-ex", "bt full", + "-ex", "thread apply all bt", + "-ex", "thread apply all bt full", + "-ex", 'printf "chancount = %d\\n", chancount', + "--batch", + "-c", core + ] print "Running %s" % (" ".join(gdb_cmd),) try: res = subprocess.call(gdb_cmd, stdout=dest_file, stderr=subprocess.STDOUT) Index: lib/python/asterisk/asterisk.py =================================================================== --- lib/python/asterisk/asterisk.py (revision 4730) +++ lib/python/asterisk/asterisk.py (working copy) @@ -401,8 +401,8 @@ """Check to see if the process is running and kill it with fire""" try: if not self.process_protocol.exited: - LOGGER.warning("Sending KILL to Asterisk %s" % self.host) - self.process.signalProcess("KILL") + LOGGER.warning("Sending ABRT to Asterisk %s" % self.host) + self.process.signalProcess(6) except error.ProcessExitedAlready: # Pass on this pass @@ -440,7 +440,7 @@ else: # Schedule a kill. If we don't gracefully shut down Asterisk, this # will ensure that the test is stopped. - self._stop_cancel_tokens.append(reactor.callLater(10, __send_kill)) + self._stop_cancel_tokens.append(reactor.callLater(20, __send_kill)) # Start by asking to stop gracefully. __send_stop_gracefully()