]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
When process dies due to a signal, show the signal and the stacktrace
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 17 May 2015 18:31:55 +0000 (18:31 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 17 May 2015 18:31:55 +0000 (18:31 +0000)
at default verbosity

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15251

NEWS
coregrind/m_signals.c
drd/tests/tc22_exit_w_lock.stderr.exp-32bit
drd/tests/tc22_exit_w_lock.stderr.exp-64bit
drd/tests/tc22_exit_w_lock.vgtest
gdbserver_tests/nlgone_abrt.stderr.exp
gdbserver_tests/nlgone_abrt.vgtest
helgrind/tests/tc22_exit_w_lock.stderr.exp

diff --git a/NEWS b/NEWS
index 387cf2f8e1e761860a2e58664a275d840bb7231b..8b3ea137f01d305f53a9d35247330579bd72cb89 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,9 @@ Release 3.11.0 is under development, not yet released.
 
 * ==================== OTHER CHANGES ====================
 
+* When a process dies due to a signal, Valgrind now shows the signal
+  and the stacktrace at default verbosity (i.e. verbosity 1).
+
 * Address description logic (used by memcheck and helgrind)
   now describes addresses in anonymous segments, file mmap-ed
   segments, shared memory segments and the brk data segment.
index 16d220c8f51b85ece84058dffe0b2e8b9e9420ee..78e2a6d0dc212c08d6d99301d31ce908643d2a67 100644 (file)
@@ -1639,7 +1639,7 @@ static void default_action(const vki_siginfo_t *info, ThreadId tid)
         core = False;
    }
 
-   if ( (VG_(clo_verbosity) > 1 ||
+   if ( (VG_(clo_verbosity) >= 1 ||
          (could_core && is_signal_from_kernel(tid, sigNo, info->si_code))
         ) &&
         !VG_(clo_xml) ) {
index b4e5b2c17f4c86ce352bbe85b579f859ba49d781..55631264370ce0d62f13a6700d1ef291eb523722 100644 (file)
@@ -135,5 +135,3 @@ Mutex still locked at thread exit: address 0x........, recursion count 1, owner
    at 0x........: pthread_join (drd_pthread_intercepts.c:?)
    by 0x........: main (tc22_exit_w_lock.c:43)
 
-
-ERROR SUMMARY: 12 errors from 12 contexts (suppressed: 0 from 0)
index cf7e0d2d015715a6f60100bcd61bb10e6b939a48..03e8046506705f16f17e9a72953b90e2a45ebcf3 100644 (file)
@@ -1,4 +1,3 @@
-
 Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 3.
    at 0x........: pthread_join (drd_pthread_intercepts.c:?)
    by 0x........: main (tc22_exit_w_lock.c:43)
@@ -7,5 +6,3 @@ mutex 0x........ was first observed at:
    by 0x........: child_fn1 (tc22_exit_w_lock.c:18)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
-
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
index 673380c91af6c92234f4ed8f9417d576f824c964..f16c1dfe91502438d2808a29b749d841fd541430 100644 (file)
@@ -1,3 +1,3 @@
 prereq: ./supported_libpthread && [ -e ../../helgrind/tests/tc22_exit_w_lock ]
-vgopts: --num-callers=3
+vgopts: --num-callers=3 -q
 prog: ../../helgrind/tests/tc22_exit_w_lock
index f1d766b9e1101b972e19e2075a1f48f2454dd654..8daa1f96b3945fc80919f40a49c9207c83e425d2 100644 (file)
@@ -1,8 +1,5 @@
-Nulgrind, the minimal Valgrind tool
-
 (action at startup) vgdb me ... 
 
 
 starting ...
 aborting ...
-
index 09916f02b4a5311ed670053f0c37625b7ed3f4cc..86aecfd5cc3b4274a53523edc2b7e3d8818b5072 100644 (file)
@@ -2,7 +2,7 @@
 
 prog: gone
 args: abort
-vgopts: --tool=none --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-nlgone-abrt
+vgopts: -q --tool=none --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-nlgone-abrt
 stderr_filter: filter_stderr
 prereq: test -e gdb
 progB: gdb
index 6f3de66ea661a5a37a6e2a514969f49c807f4bfa..25e5d4ebf2ac963544f7a04edc71c561cb6ec06a 100644 (file)
@@ -23,6 +23,10 @@ Thread #x was created
 Thread #x: Exiting thread still holds 1 lock
    ...
 
+
+Process terminating with default action of signal 6 (SIGABRT)
+   ...
+   by 0x........: main (tc22_exit_w_lock.c:48)
 ---Thread-Announcement------------------------------------------
 
 Thread #x is the program's root thread