You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
(1) |
2
(10) |
3
(10) |
4
(14) |
5
(10) |
|
6
|
7
(1) |
8
(14) |
9
(10) |
10
(4) |
11
(2) |
12
(4) |
|
13
|
14
(2) |
15
(11) |
16
(10) |
17
|
18
|
19
(18) |
|
20
(14) |
21
(10) |
22
(1) |
23
(11) |
24
(14) |
25
(10) |
26
(6) |
|
27
(13) |
28
(13) |
29
(12) |
30
(13) |
|
|
|
|
From: <sv...@va...> - 2014-04-26 22:50:16
|
Author: philippe
Date: Sat Apr 26 22:50:08 2014
New Revision: 13915
Log:
clo_processing is now done when this procedure is called.
So, we can now allocate this memory only when approx history level
is requested.
I double checked using printf that clo processing was done before
this procedure is called.
Modified:
trunk/helgrind/libhb_core.c
Modified: trunk/helgrind/libhb_core.c
==============================================================================
--- trunk/helgrind/libhb_core.c (original)
+++ trunk/helgrind/libhb_core.c Sat Apr 26 22:50:08 2014
@@ -3668,14 +3668,11 @@
thr->llexit_done = False;
thr->joinedwith_done = False;
thr->filter = HG_(zalloc)( "libhb.Thr__new.2", sizeof(Filter) );
- /* We only really need this at history level 1, but unfortunately
- this routine is called before the command line processing is
- done (sigh), so we can't rely on HG_(clo_history_level) at this
- point. Hence always allocate it. Bah. */
- thr->local_Kws_n_stacks
- = VG_(newXA)( HG_(zalloc),
- "libhb.Thr__new.3 (local_Kws_and_stacks)",
- HG_(free), sizeof(ULong_n_EC) );
+ if (HG_(clo_history_level) == 1)
+ thr->local_Kws_n_stacks
+ = VG_(newXA)( HG_(zalloc),
+ "libhb.Thr__new.3 (local_Kws_and_stacks)",
+ HG_(free), sizeof(ULong_n_EC) );
/* Add this Thr* <-> ThrID binding to the mapping, and
cross-check */
|
Author: philippe
Date: Sat Apr 26 21:50:57 2014
New Revision: 13914
Log:
Add a new test that shows a surprising side effect of the
medium resolution (4 callers) used to compare errors.
To look at the strange side effect, do:
./vg-in-place -v --suppressions=memcheck/tests/suppfreecollision.supp memcheck/tests/suppfree activatenondangerouserror
You obtain at the end:
...
--19240-- used_suppression: 2 suppressnondangerouserror memcheck/tests/suppfreecollision.supp:2
...
showing that the suppression aiming at suppressing a nondangerous error has in fact
suppressed more than expected.
This is because m_errormgr.c compares the exe_context in medium resolution/4 calls
(or low resolution/2 calls once 100 errors have been collected).
The error machinery first encounters the non dangerous error. This error is suppressed,
because all callers match the suppression entry. In particular, we have
in the stacktrace the function ok_to_suppress_double_free_from_this_fun
Then the error machinery encounters the second error.
The stacktrace of the 2nd error has the same first 4 callers than the non
dangerous error. So the 2nd error is considered equal to the first one
and is (unexpectedly in my opinion) suppressed.
This looks a bug (or at least something very surprising).
(the doc mentions the fact that errors are 'commoned up' on 4 callers, but
I am not sure the above side effect was understood).
There are several ways this can be improved, some are more easier than other
* have --error-resolution=low/med/high
similar to the memcheck --leak-resolution=low/med/high
(which default value would we take for this new clo ?)
* have a lot more intelligent error comparison:
when comparing an error with a suppressed error, one must
check that the callers used for suppression are equal.
This looks difficult to implement and probably a significant slow down
in the error machinery, which will impact applications producing
many suppressed errors (e.g. helgrind + some pthread lib errors).
This also implies more memory (e.g. one byte per caller in the
error, to indicate which caller(s) were used to suppress.
Still wondering what to do with * and ... ?
* have a somewhat more intelligent error comparison:
Instead of comparing only the callers used for suppression, we
compare the range first..last caller used (so including some
callers in the range that were not used to suppressed if e.g.
a ... matching was put in the supp entry).
Probably still a slowdown (less than previous solution ?)
and less memory than the previous solution.
But also not completely clear how to compute the range.
* always re-evaluate the suppression : this will very probably be
a significant slow down.
* do nothing, as nobody complained about this behaviour up to now :)
* ??? any other idea
Added:
trunk/memcheck/tests/suppfreecollision.stderr.exp
trunk/memcheck/tests/suppfreecollision.supp
trunk/memcheck/tests/suppfreecollision.vgtest
Modified:
trunk/memcheck/tests/Makefile.am
trunk/memcheck/tests/suppfree.c
trunk/memcheck/tests/suppfree.stderr.exp
Modified: trunk/memcheck/tests/Makefile.am
==============================================================================
--- trunk/memcheck/tests/Makefile.am (original)
+++ trunk/memcheck/tests/Makefile.am Sat Apr 26 21:50:57 2014
@@ -230,6 +230,7 @@
supp2.stderr.exp supp2.vgtest \
supp.supp \
suppfree.stderr.exp suppfree.supp suppfree.vgtest \
+ suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
test-plo-no.vgtest test-plo-no.stdout.exp \
test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
test-plo-yes.vgtest test-plo-yes.stdout.exp \
Modified: trunk/memcheck/tests/suppfree.c
==============================================================================
--- trunk/memcheck/tests/suppfree.c (original)
+++ trunk/memcheck/tests/suppfree.c Sat Apr 26 21:50:57 2014
@@ -22,9 +22,17 @@
bbb(x);
}
-int main ( void )
+void ok_to_suppress_double_free_from_this_fun(char* y)
+{
+ aaa(y);
+}
+
+int main ( int argc, char*argv[] )
{
char* x = malloc(10);
+ char* y = malloc(10);
+ if (argc > 1)
+ ok_to_suppress_double_free_from_this_fun(y);
aaa(x);
return 0;
}
Modified: trunk/memcheck/tests/suppfree.stderr.exp
==============================================================================
--- trunk/memcheck/tests/suppfree.stderr.exp (original)
+++ trunk/memcheck/tests/suppfree.stderr.exp Sat Apr 26 21:50:57 2014
@@ -4,12 +4,12 @@
by 0x........: ccc (suppfree.c:12)
by 0x........: bbb (suppfree.c:17)
by 0x........: aaa (suppfree.c:22)
- by 0x........: main (suppfree.c:28)
+ by 0x........: main (suppfree.c:36)
Address 0x........ is 0 bytes inside a block of size 10 free'd
at 0x........: free (vg_replace_malloc.c:...)
by 0x........: ddd (suppfree.c:6)
by 0x........: ccc (suppfree.c:12)
by 0x........: bbb (suppfree.c:17)
by 0x........: aaa (suppfree.c:22)
- by 0x........: main (suppfree.c:28)
+ by 0x........: main (suppfree.c:36)
Added: trunk/memcheck/tests/suppfreecollision.stderr.exp
==============================================================================
(empty)
Added: trunk/memcheck/tests/suppfreecollision.supp
==============================================================================
--- trunk/memcheck/tests/suppfreecollision.supp (added)
+++ trunk/memcheck/tests/suppfreecollision.supp Sat Apr 26 21:50:57 2014
@@ -0,0 +1,11 @@
+{
+ suppressnondangerouserror
+ Memcheck:Free
+ fun:free
+ fun:ddd
+ fun:ccc
+ fun:bbb
+ fun:aaa
+ fun:ok_to_suppress_double_free_from_this_fun
+ fun:main
+}
Added: trunk/memcheck/tests/suppfreecollision.vgtest
==============================================================================
--- trunk/memcheck/tests/suppfreecollision.vgtest (added)
+++ trunk/memcheck/tests/suppfreecollision.vgtest Sat Apr 26 21:50:57 2014
@@ -0,0 +1,13 @@
+# this test the case of two errors, one considered not dangerous and
+# suppressed, the other considered dangerous, and the user does
+# not want to supress it.
+# The suppression entry only match the non dangerous error.
+# However, when a medium resolution is used to compare 2 errors,
+# only the last 4 calls are used to determine that two errors are similar
+# So, the nondangerous suppressed error "absorbs and hides" the dangerous
+# error.
+# This side effect of a medium (or low) resolution for error matching
+# is I guess unexpected by most users.
+prog: suppfree
+args: activatenondangerouserror
+vgopts: --suppressions=suppfreecollision.supp -q
|
|
From: <sv...@va...> - 2014-04-26 20:40:49
|
Author: philippe
Date: Sat Apr 26 20:40:41 2014
New Revision: 13913
Log:
Filter lines such as:
+38 ../sysdeps/unix/sysv/linux/_exit.c: No such file or directory.
This should make nlgone_exit work on s390 suse and x86_64 suse
Modified:
trunk/gdbserver_tests/filter_gdb
Modified: trunk/gdbserver_tests/filter_gdb
==============================================================================
--- trunk/gdbserver_tests/filter_gdb (original)
+++ trunk/gdbserver_tests/filter_gdb Sat Apr 26 20:40:41 2014
@@ -22,6 +22,7 @@
# with OS/glibc/gdb dep
# then have a general way to delete uninteresting and vayring
# lines.
+# suppress lines telling file _exit.c does not exist
# initial tty control character sent by gdb 7.0
# remove missing debuginfos
# vgdb message
@@ -59,6 +60,7 @@
-e '/filter_gdb BEGIN drop/,/filter_gdb END drop/d' \
-e 's/^\[?1034hReading symbols/Reading symbols/' \
-e '/^Missing separate debuginfo/d' \
+ -e '/\/_exit.c: No such file or directory/d' \
-e '/^Try: zypper install -C/d' \
-e 's/\(relaying data between gdb and process \)[0-9][0-9]*/\1..../' \
-e 's/pid [0-9][0-9]*/pid ..../g' \
@@ -71,8 +73,8 @@
-e '/^Loaded symbols for .*$/d' \
-e '/^Current language.*/d' \
-e '/^The current source language is.*/d' \
- -e 's/^.*\( exited with code [0-9]\+\).$/Program\1\./g' \
- -e 's/^.*\( exited normally\).$/Program\1\./g' \
+ -e 's/^.*\( exited with code [0-9]\+\).$/Program\1\./g' \
+ -e 's/^.*\( exited normally\).$/Program\1\./g' \
-e 's/(gdb) //g' \
-e 's/^>[> ]*//' \
-e '/^done\.$/d' \
@@ -104,10 +106,10 @@
-e 's/^\([ \*] [1234] \) *Thread /\1Thread /' \
-e 's/VgTs_WaitSys) 0x/VgTs_WaitSys) 0x/' \
-e '/Cannot access memory at address 0x......../d' \
- -e '/^$/d' |
+ -e '/^$/d' |
# remove all the lines telling where the SIGFPE was trapped.
-sed -e '/after trap SIGFPE/,/after continue SIGFPE/d' |
+sed -e '/after trap SIGFPE/,/after continue SIGFPE/d' |
# join together two lines that gdb 7.1 splits in two (???)
# (in a separate sed, as the below influences the behaviour of the other expressions)
|
|
From: <sv...@va...> - 2014-04-26 20:23:55
|
Author: philippe
Date: Sat Apr 26 20:23:47 2014
New Revision: 13912
Log:
Make the test (more) deterministic by having send_signal using
a guardcmd before sending the signal.
This allows to be sure that the signal are emitted when vgdb
is attached.
We still have one 'sleep' in the test.
Modified:
trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp
trunk/gdbserver_tests/send_signal
Modified: trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
==============================================================================
--- trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb (original)
+++ trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb Sat Apr 26 20:23:47 2014
@@ -9,8 +9,8 @@
#
# send SIGUSR1/SIGUSR1 in a few seconds, after vgdb has attached
# vgdb will attach when it will receive the control-c
-shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
-shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
+shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 0 grep attachedwaitingforsigusr1 nlvgdbsigqueue.stdoutB.out
+shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 0 grep attachedwaitingforsigusr1 nlvgdbsigqueue.stdoutB.out
#
echo continuing to have vgdb interrupted by simulate_control_c\n
continue
@@ -18,7 +18,10 @@
# Now vgdb should have received the interrupt, and so has
# attached to the sleeping process.
# wait for the USR sig to be sent, that will be queued by vgdb.
-shell sleep 8
+echo attachedwaitingforsigusr1\n
+# send_signal tries every second the guardcmd
+# so we must now wait to be (somewhat) sure the 2 SIGUSR1 are emitted
+shell sleep 3
# continue, so as to have vgdb sending queued signals when PTRACE_DETACHing
echo continuing to receive first SIGUSR1\n
continue
Modified: trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp
==============================================================================
--- trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp (original)
+++ trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp Sat Apr 26 20:23:47 2014
@@ -2,6 +2,7 @@
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x........ in syscall ...
+attachedwaitingforsigusr1
sending signal
sending signal
continuing to receive first SIGUSR1
Modified: trunk/gdbserver_tests/send_signal
==============================================================================
--- trunk/gdbserver_tests/send_signal (original)
+++ trunk/gdbserver_tests/send_signal Sat Apr 26 20:23:47 2014
@@ -1,18 +1,30 @@
#! /bin/sh
# send_signal sends signal $1 to the Valgrind process using prefix $2 in $3 seconds
+# If there are some args after $3, the rest of these args is a command and its arg
+# which is run every second. When this command is succesful, then the sleep and
+# the signal sending is done
SIG=$1
shift
PREFIX=$1
shift
SLEEP=$1
shift
+GUARDCMD="$@"
+if [ "$GUARDCMD" = "" ]
+then
+ GUARDCMD="true"
+fi
VPID=`./vgdb -l $PREFIX 2>&1 | awk '{print $2}' | sed -e 's/--pid=//'`
if [ "$VPID" = "" ]
then
echo "send_signal could not determine the valgrind pid with " $PREFIX
exit 1
fi
-(sleep $SLEEP
+(while ! $GUARDCMD >> garbage.filtered.out 2>&1
+ do
+ sleep 1
+ done
+ sleep $SLEEP
echo sending signal
kill -s $SIG $VPID) &
|
|
From: <sv...@va...> - 2014-04-26 20:01:35
|
Author: philippe
Date: Sat Apr 26 20:01:28 2014
New Revision: 13911
Log:
Improve the comments in the test
Modified:
trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
Modified: trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
==============================================================================
--- trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb (original)
+++ trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb Sat Apr 26 20:01:28 2014
@@ -4,10 +4,11 @@
monitor v.set vgdb-error 999999
#
#
-# simulate control-c in a 1 second
+# simulate control-c 1 second after having seen sleepers program outputting 'main'
shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 1 grep main nlvgdbsigqueue.stderr.out
#
-# send SIGUSR1/SIGUSR1 in a few seconds, when vgdb is attached
+# send SIGUSR1/SIGUSR1 in a few seconds, after vgdb has attached
+# vgdb will attach when it will receive the control-c
shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
#
|
|
From: <sv...@va...> - 2014-04-26 19:55:43
|
Author: philippe
Date: Sat Apr 26 19:55:33 2014
New Revision: 13910
Log:
Due to timing problem, test was not properly testing.
What needs to be ensured is:
vgdb is attached (i.e. is ptracing valgrind)
2 sigusr1 signals are sent while vgdb is ptracing
vgdb will queue these signals
when continuing, the queued signals are delivered.
With 3.9.0, the above causes an internal error in valgrind:
valgrind: m_syswrap/syswrap-main.c:1436 (vgPlain_client_syscall): Assertion 'sci->status.what == SsIdle' failed.
It would be better to have explicit synchronisation in the test
rather than counting on 'sleep xxx' to have things done in the
order that tests the signal queueing.
Modified:
trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp
trunk/gdbserver_tests/send_signal
Modified: trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb
==============================================================================
--- trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb (original)
+++ trunk/gdbserver_tests/nlvgdbsigqueue.stdinB.gdb Sat Apr 26 19:55:33 2014
@@ -8,8 +8,8 @@
shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 1 grep main nlvgdbsigqueue.stderr.out
#
# send SIGUSR1/SIGUSR1 in a few seconds, when vgdb is attached
-shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 2
-shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 3
+shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
+shell ./send_signal USR1 --vgdb-prefix=./vgdb-prefix-nlvgdbsigqueue 4
#
echo continuing to have vgdb interrupted by simulate_control_c\n
continue
@@ -17,7 +17,7 @@
# Now vgdb should have received the interrupt, and so has
# attached to the sleeping process.
# wait for the USR sig to be sent, that will be queued by vgdb.
-shell sleep 4
+shell sleep 8
# continue, so as to have vgdb sending queued signals when PTRACE_DETACHing
echo continuing to receive first SIGUSR1\n
continue
Modified: trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp
==============================================================================
--- trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp (original)
+++ trunk/gdbserver_tests/nlvgdbsigqueue.stdoutB.exp Sat Apr 26 19:55:33 2014
@@ -1,14 +1,15 @@
continuing to have vgdb interrupted by simulate_control_c
Continuing.
-Program received signal SIGUSR1, User defined signal 1.
+Program received signal SIGTRAP, Trace/breakpoint trap.
0x........ in syscall ...
+sending signal
+sending signal
continuing to receive first SIGUSR1
Continuing.
-[New Thread ....]
Program received signal SIGUSR1, User defined signal 1.
0x........ in syscall ...
continuing to receive second SIGUSR1
Continuing.
-Program received signal SIGTRAP, Trace/breakpoint trap.
+Program received signal SIGUSR1, User defined signal 1.
0x........ in syscall ...
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
Modified: trunk/gdbserver_tests/send_signal
==============================================================================
--- trunk/gdbserver_tests/send_signal (original)
+++ trunk/gdbserver_tests/send_signal Sat Apr 26 19:55:33 2014
@@ -14,4 +14,5 @@
exit 1
fi
(sleep $SLEEP
+ echo sending signal
kill -s $SIG $VPID) &
|