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
(12) |
2
(11) |
3
(8) |
|
4
(9) |
5
(10) |
6
(18) |
7
(8) |
8
(12) |
9
(23) |
10
(14) |
|
11
(15) |
12
(31) |
13
(45) |
14
(28) |
15
(20) |
16
(16) |
17
(9) |
|
18
(18) |
19
(26) |
20
(49) |
21
(14) |
22
(18) |
23
(24) |
24
(28) |
|
25
(39) |
26
(17) |
27
(27) |
28
(27) |
29
(14) |
30
(44) |
|
|
From: Tom H. <th...@cy...> - 2005-09-27 02:13:53
|
Nightly build on gill ( x86_64, Fedora Core 2 ) started at 2005-09-27 03:00:04 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 165 tests, 7 stderr failures, 0 stdout failures ================= memcheck/tests/sigprocmask (stderr) memcheck/tests/strchr (stderr) memcheck/tests/vgtest_ume (stderr) memcheck/tests/weirdioctl (stderr) memcheck/tests/xml1 (stderr) none/tests/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) |
|
From: <sv...@va...> - 2005-09-27 01:14:49
|
Author: sewardj
Date: 2005-09-27 02:14:36 +0100 (Tue, 27 Sep 2005)
New Revision: 4785
Log:
Finish off command-line handling: reenable acquisition of args from
~/.valgrindrc, $VALGRIND_OPTS and ./.valgrindrc.
Modified:
branches/ASPACEM/coregrind/m_commandline.c
branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c
branches/ASPACEM/include/pub_tool_clientstate.h
Modified: branches/ASPACEM/coregrind/m_commandline.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_commandline.c 2005-09-26 14:50:39 UTC (r=
ev 4784)
+++ branches/ASPACEM/coregrind/m_commandline.c 2005-09-27 01:14:36 UTC (r=
ev 4785)
@@ -28,20 +28,19 @@
The GNU General Public License is contained in the file COPYING.
*/
=20
-// TODO: prune these
#include "pub_core_basics.h"
-#include "pub_core_commandline.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcfile.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcproc.h"
#include "pub_core_mallocfree.h"
-#include "pub_core_options.h"
#include "pub_core_clientstate.h"
+#include "pub_core_commandline.h"
=20
=20
/* Add a string to an expandable array of strings. */
+
static void add_string ( XArrayStrings* xa, HChar* str )
{
Int i;
@@ -65,33 +64,108 @@
}
=20
=20
+/* Read the contents of .valgrindrc in 'dir' into malloc'd memory. */
+// Note that we deliberately don't free the malloc'd memory. See
+// comment at call site.
+
+static HChar* read_dot_valgrindrc ( HChar* dir )
+{
+ Int n;
+ SysRes fd;
+ Int size;
+ HChar* f_clo =3D NULL;
+ HChar filename[VKI_PATH_MAX];
+
+ VG_(snprintf)(filename, VKI_PATH_MAX, "%s/.valgrindrc",=20
+ ( NULL =3D=3D dir ? "" : dir ) );
+ fd =3D VG_(open)(filename, 0, VKI_S_IRUSR);
+ if ( !fd.isError ) {
+ size =3D VG_(fsize)(fd.val);
+ if (size > 0) {
+ f_clo =3D VG_(malloc)(size+1);
+ vg_assert(f_clo);
+ n =3D VG_(read)(fd.val, f_clo, size);
+ if (n =3D=3D -1) n =3D 0;
+ vg_assert(n >=3D 0 && n <=3D size+1);
+ f_clo[n] =3D '\0';
+ }
+ VG_(close)(fd.val);
+ }
+ return f_clo;
+}
+
+
+// Add args out of environment, skipping multiple spaces and "--" args.
+// We split 's' into multiple strings by replacing whitespace with nuls,
+// eg. "--aa --bb --cc" --> "--aa\0--bb\0--cc". And for each new string
+// carved out of 's', we put a pointer to it in 'to'.
+
+static void add_args_from_string ( HChar* s )
+{
+ HChar* tmp;
+ HChar* cp =3D s;
+ vg_assert(cp);
+ while (True) {
+ // We have alternating sequences: blanks, non-blanks, blanks...
+ // copy the non-blanks sequences, and add terminating '\0'
+ while (VG_(isspace)(*cp)) cp++;
+ if (*cp =3D=3D 0) break;
+ tmp =3D cp;
+ while ( !VG_(isspace)(*cp) && *cp !=3D 0 ) cp++;
+ if ( *cp !=3D 0 ) *cp++ =3D '\0'; // terminate if not the la=
st
+ add_string( &VG_(args_for_valgrind), tmp );
+ }
+}
+
+
/* Split up the args presented by the launcher to m_main.main(), and
- park them in VG_(args_for_client), VG_(args_for_valgrind),
- VG_(args_for_valgrind_extras) and VG_(args_the_exename). The
- latter are acquired from $VALGRIND_OPTS, ./.valgrindrc and
- ~/.valgrindrc.=20
-*/
-/* Scheme: args look like this:
+ park them in VG_(args_for_client) and VG_(args_for_valgrind).
=20
+ The resulting arg list is the concatenation of the following:
+ - contents of ~/.valgrindrc
+ - contents of $VALGRIND_OPTS
+ - contents of ./.valgrindrc
+ - args from the command line
+ in the stated order.
+
+ VG_(args_for_valgrind_noexecpass) is set to be the number of items
+ in the first three categories. They are not passed to child invokati=
ons
+ at exec, whereas the last group is.
+
+ If the last group contains --command-line-only=3Dyes, then the=20
+ first three groups are left empty.
+
+ Scheme: first examine the last group (the supplied argc/argv).
+ It should look like this.
+
args-for-v exe_name args-for-c
=20
args-for-v are taken until either they don't start with '-' or
a "--" is seen.
=20
- If args-for-v includes --command-line-only=3Dyes, then the extra
- sources (env vars, files) are not consulted.
-
+ The exe name and args-for-c are recorded without further ado.
Note that args-for-c[0] is the first real arg for the client, not
its executable name.
-*/
=20
+ args-for-v are then copied into tmp_xarray.
=20
+ if args-for-v does not include --command-line-only=3Dyes:
+ contents of ~/.valgrindrc, $VALGRIND_OPTS and ./.valgrindrc
+ are copied into VG_(args_for_valgrind).
+ else
+ VG_(args_for_valgrind) is made empty.
+
+ Finally, tmp_xarray is copied onto the end of VG_(args_for_valgrind).
+*/
+
void VG_(split_up_argv)( Int argc, HChar** argv )
{
Int i;
Bool augment =3D True;
static Bool already_called =3D False;
=20
+ XArrayStrings tmp_xarray =3D {0,0,NULL};
+
/* This function should be called once, at startup, and then never
again. */
vg_assert(!already_called);
@@ -109,161 +183,52 @@
augment =3D False;
if (argv[i][0] !=3D '-')
break;
- add_string( &VG_(args_for_valgrind), argv[i] );
+ add_string( &tmp_xarray, argv[i] );
}
=20
/* Should now be looking at the exe name. */
if (i < argc) {
- vg_assert(argv[i]);
+ vg_assert(argv[i]);
VG_(args_the_exename) =3D argv[i];
i++;
}
=20
/* The rest are args for the client. */
for (; i < argc; i++) {
- vg_assert(argv[i]);
- add_string( &VG_(args_for_client), argv[i] );
+ vg_assert(argv[i]);
+ add_string( &VG_(args_for_client), argv[i] );
}
=20
+ VG_(args_for_valgrind).size =3D 0;
+ VG_(args_for_valgrind).used =3D 0;
+ VG_(args_for_valgrind).strs =3D NULL;
=20
-}
+ /* Get extra args from ~/.valgrindrc, $VALGRIND_OPTS and
+ ./.valgrindrc into VG_(args_for_valgrind). */
+ if (augment) {
+ // read_dot_valgrindrc() allocates the return value with
+ // VG_(malloc)(). We do not free f1_clo and f2_clo as they get
+ // put into VG_(args_for_valgrind) and so must persist.
+ HChar* f1_clo =3D read_dot_valgrindrc( VG_(getenv)("HOME") );
+ HChar* env_clo =3D VG_(getenv)(VALGRIND_OPTS);
+ HChar* f2_clo =3D read_dot_valgrindrc(".");
=20
-
-// Note that we deliberately don't free the malloc'd memory. See commen=
t
-// at call site.
-static char* get_file_clo(char* dir)
-{
- Int n;
- SysRes fd;
- Int size;
- Char* f_clo =3D NULL;
- Char filename[VKI_PATH_MAX];
-
- VG_(snprintf)(filename, VKI_PATH_MAX, "%s/.valgrindrc",=20
- ( NULL =3D=3D dir ? "" : dir ) );
- fd =3D VG_(open)(filename, 0, VKI_S_IRUSR);
- if ( !fd.isError ) {
- if ( 0 =3D=3D (size =3D VG_(fsize)(fd.val)) ) {
- f_clo =3D VG_(malloc)(size+1);
- vg_assert(f_clo);
- n =3D VG_(read)(fd.val, f_clo, size);
- if (n =3D=3D -1) n =3D 0;
- f_clo[n] =3D '\0';
- }
- VG_(close)(fd.val);
+ if (f1_clo) add_args_from_string( f1_clo );
+ if (env_clo) add_args_from_string( env_clo );
+ if (f2_clo) add_args_from_string( f2_clo );
}
- return f_clo;
-}
=20
-static Int count_args(char* s)
-{
- Int n =3D 0;
- if (s) {
- char* cp =3D s;
- while (True) {
- // We have alternating sequences: blanks, non-blanks, blanks...
- // count the non-blanks sequences.
- while ( VG_(isspace)(*cp) ) cp++;
- if ( !*cp ) break;
- n++;
- while ( !VG_(isspace)(*cp) && *cp ) cp++;
- }
- }
- return n;
-}
+ /* .. and record how many extras we got. */
+ VG_(args_for_valgrind_noexecpass) =3D VG_(args_for_valgrind).used;
=20
-// Add args out of environment, skipping multiple spaces and "--" args.
-// We split 's' into multiple strings by replacing whitespace with nuls,
-// eg. "--aa --bb --cc" --> "--aa\0--bb\0--cc". And for each new string
-// carved out of 's', we put a pointer to it in 'to'.
-static char** copy_args( char* s, char** to )
-{
- if (s) {
- char* cp =3D s;
- while (True) {
- // We have alternating sequences: blanks, non-blanks, blanks...
- // copy the non-blanks sequences, and add terminating '\0'
- while ( VG_(isspace)(*cp) ) cp++;
- if ( !*cp ) break;
- *to++ =3D cp;
- while ( !VG_(isspace)(*cp) && *cp ) cp++;
- if ( *cp ) *cp++ =3D '\0'; // terminate if not the l=
ast
- if (VG_STREQ(to[-1], "--")) to--; // undo any '--' arg
- }
- }
- return to;
-}
+ /* Finally, copy tmp_xarray onto the end. */
+ for (i =3D 0; i < tmp_xarray.used; i++)
+ add_string( &VG_(args_for_valgrind), tmp_xarray.strs[i] );
=20
-// Augment command line with arguments from environment and .valgrindrc
-// files.
-static void augment_command_line(Int* vg_argc_inout, char*** vg_argv_ino=
ut)
-{
-#if 0
- int vg_argc0 =3D *vg_argc_inout;
- char** vg_argv0 =3D *vg_argv_inout;
-
- // get_file_clo() allocates the return value with malloc(). We do no=
t
- // free f1_clo and f2_clo as they get put into vg_argv[] which must p=
ersist.
- char* env_clo =3D VG_(getenv)(VALGRINDOPTS);
- char* f1_clo =3D get_file_clo( VG_(getenv)("HOME") );
- char* f2_clo =3D get_file_clo(".");
-
- /* copy any extra args from file or environment, if present */
- if ( (env_clo && *env_clo) || (f1_clo && *f1_clo) || (f2_clo && *f2_c=
lo) ) {
- /* ' ' separated extra options */
- char **from;
- char **to;
- int orig_arg_count, env_arg_count, f1_arg_count, f2_arg_count;
-
- for ( orig_arg_count =3D 0; vg_argv0[orig_arg_count]; orig_arg_cou=
nt++ );
-
- env_arg_count =3D count_args(env_clo);
- f1_arg_count =3D count_args(f1_clo);
- f2_arg_count =3D count_args(f2_clo);
-
- if (0)
- VG_(printf)("extra-argc=3D%d %d %d\n",
- env_arg_count, f1_arg_count, f2_arg_count);
-
- /* +2: +1 for null-termination, +1 for added '--' */
- from =3D vg_argv0;
- vg_argv0 =3D VG_(malloc)( (orig_arg_count + env_arg_count + f1_arg=
_count=20
- + f2_arg_count + 2) * sizeof(char **));
- vg_assert(vg_argv0);
- to =3D vg_argv0;
-
- /* copy argv[0] */
- *to++ =3D *from++;
-
- /* Copy extra args from env var and file, in the order: ~/.valgrin=
drc,
- * $VALGRIND_OPTS, ./.valgrindrc -- more local options are put lat=
er
- * to override less local ones. */
- to =3D copy_args(f1_clo, to);
- to =3D copy_args(env_clo, to);
- to =3D copy_args(f2_clo, to);
- =20
- /* copy original arguments, stopping at command or -- */
- while (*from) {
- if (**from !=3D '-')
- break;
- if (VG_STREQ(*from, "--")) {
- from++; /* skip -- */
- break;
- }
- *to++ =3D *from++;
- }
-
- /* add -- */
- *to++ =3D "--";
-
- vg_argc0 =3D to - vg_argv0;
-
- /* copy rest of original command line, then NULL */
- while (*from) *to++ =3D *from++;
- *to =3D NULL;
- }
-
- *vg_argc_inout =3D vg_argc0;
- *vg_argv_inout =3D vg_argv0;
-#endif
+ if (tmp_xarray.strs)
+ VG_(free)(tmp_xarray.strs);
}
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
Modified: branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c 2005-09-26 14:=
50:39 UTC (rev 4784)
+++ branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c 2005-09-27 01:=
14:36 UTC (rev 4785)
@@ -2579,9 +2579,9 @@
j =3D 0;
argv[j++] =3D launcher_basename;
for (i =3D 0; i < VG_(args_for_valgrind).used; i++) {
- if (i < VG_(args_for_valgrind_noexecpass))
- continue;
- argv[j++] =3D VG_(args_for_valgrind).strs[i];
+ if (i < VG_(args_for_valgrind_noexecpass))
+ continue;
+ argv[j++] =3D VG_(args_for_valgrind).strs[i];
}
argv[j++] =3D (Char*)ARG1;
if (arg2copy && arg2copy[0])
Modified: branches/ASPACEM/include/pub_tool_clientstate.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/include/pub_tool_clientstate.h 2005-09-26 14:50:39 U=
TC (rev 4784)
+++ branches/ASPACEM/include/pub_tool_clientstate.h 2005-09-27 01:14:36 U=
TC (rev 4785)
@@ -52,10 +52,13 @@
- contents of $VALGRIND_OPTS
- contents of ./.valgrindrc
- args from the command line
+ in the stated order.
+
Only the last of these is passed onwards to child Valgrinds at
- client sys_execve, since the children will re-acquire the first=20
- 3 categories for themselves. Therefore we also record the=20
- number of these no-pass-at-execve arguments. */
+ client sys_execve, since the children will re-acquire the first 3
+ categories for themselves. Therefore we also record the number of
+ these no-pass-at-execve arguments -- that is what
+ VG_(args_for_valgrind_noexecpass) is. */
extern XArrayStrings VG_(args_for_valgrind);
=20
/* Number of leading args in VG_(args_for_valgrind) not to pass on at
|