diff options
author | Marian Csontos <mcsontos@redhat.com> | 2015-07-10 11:47:46 +0200 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2015-07-10 14:43:17 +0200 |
commit | e29dcca0eb16366b027c9082de3e038df97d6dda (patch) | |
tree | 7a4a3e9e62a5ad4f7d4e1ac0dc0491605819240d | |
parent | e3e495bdae6a8dbb592f9d64ab5afdac8f3c3c6a (diff) | |
download | lvm2-e29dcca0eb16366b027c9082de3e038df97d6dda.tar.gz |
test: Print stacks for all threads
May be useful in case of deadlocks...
-rw-r--r-- | test/lib/utils.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 24c9076d4..c04ecb29e 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -126,6 +126,8 @@ STACKTRACE() { if which gdb &>/dev/null; then echo bt full > gdb_commands.txt echo l >> gdb_commands.txt + echo thread apply all bt full >> gdb_commands.txt + echo thread apply all l >> gdb_commands.txt echo quit >> gdb_commands.txt for core in $(ls core* 2>/dev/null); do bin=$(gdb -batch -c "$core" 2>&1 | grep "generated by" | \ |