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
|
3
(2) |
4
(2) |
5
|
6
|
|
7
(1) |
8
|
9
|
10
(1) |
11
(1) |
12
(2) |
13
|
|
14
|
15
|
16
(1) |
17
(1) |
18
|
19
|
20
(13) |
|
21
(3) |
22
(2) |
23
(6) |
24
(2) |
25
(5) |
26
(2) |
27
(2) |
|
28
(6) |
|
|
|
|
|
|
|
From: Mark W. <ma...@so...> - 2021-02-10 20:36:16
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=c9781cc97e719c1ecf0cfad9ca2f86631c017268 commit c9781cc97e719c1ecf0cfad9ca2f86631c017268 Author: Mark Wielaard <ma...@kl...> Date: Mon Feb 8 00:25:52 2021 +0100 PR140939 --track-fds reports leakage of stdout/in/err and doesn't respect -q Make --track-fds=yes not report on file descriptors 0, 1, and 2 (stdin, stdout, and stderr) by default. Add a new option --track-fds=all that does report on the std file descriptors still being open. Update testsuite and documentation. Original patch by Peter Kelly <pm...@cs...> Updated by Daniel Fahlgren <da...@fa...> https://bugs.kde.org/show_bug.cgi?id=140939 Diff: --- NEWS | 1 + coregrind/m_gdbserver/server.c | 4 ++-- coregrind/m_main.c | 15 +++++++++++++-- coregrind/m_options.c | 2 +- coregrind/m_syswrap/syswrap-generic.c | 25 ++++++++++++++++++++----- coregrind/pub_core_options.h | 4 ++-- docs/xml/manual-core-adv.xml | 8 ++++++-- docs/xml/manual-core.xml | 7 +++++-- gdbserver_tests/mchelp.stdoutB.exp | 4 ++-- gdbserver_tests/mssnapshot.stderrB.exp | 2 +- none/tests/cmdline1.stdout.exp | 3 ++- none/tests/cmdline2.stdout.exp | 3 ++- none/tests/fdleak_cmsg.stderr.exp | 4 ++-- none/tests/fdleak_cmsg.vgtest | 2 +- none/tests/fdleak_creat.stderr.exp | 2 +- none/tests/fdleak_creat.vgtest | 2 +- none/tests/fdleak_dup.stderr.exp | 2 +- none/tests/fdleak_dup.vgtest | 2 +- none/tests/fdleak_dup2.stderr.exp | 2 +- none/tests/fdleak_dup2.vgtest | 2 +- none/tests/fdleak_fcntl.stderr.exp | 2 +- none/tests/fdleak_fcntl.vgtest | 2 +- none/tests/fdleak_ipv4.stderr.exp | 22 ++-------------------- none/tests/fdleak_open.stderr.exp | 11 +---------- none/tests/fdleak_pipe.stderr.exp | 11 +---------- none/tests/fdleak_socketpair.stderr.exp | 11 +---------- 26 files changed, 73 insertions(+), 82 deletions(-) diff --git a/NEWS b/NEWS index 5342336ecc..cd372235f2 100644 --- a/NEWS +++ b/NEWS @@ -52,6 +52,7 @@ To see details of a given bug, visit where XXXXXX is the bug number as listed below. 140178 open("/proc/self/exe", ...); doesn't quite work +140939 --track-fds reports leakage of stdout/in/err and doesn't respect -q 345077 linux syscall execveat support (linux 3.19) 369029 handle linux syscalls sched_getattr and sched_setattr n-i-bz helgrind: If hg_cli__realloc fails, return NULL. diff --git a/coregrind/m_gdbserver/server.c b/coregrind/m_gdbserver/server.c index cc809a8b63..8e4bae8567 100644 --- a/coregrind/m_gdbserver/server.c +++ b/coregrind/m_gdbserver/server.c @@ -234,7 +234,7 @@ int handle_gdb_valgrind_command (char *mon, OutputSink *sink_wanted_at_return) " v.info last_error : show last error found\n" " v.info location <addr> : show information about location <addr>\n" " v.info n_errs_found [msg] : show the nr of errors found so far and the given msg\n" -" v.info open_fds : show open file descriptors (only if --track-fds=yes)\n" +" v.info open_fds : show open file descriptors (only if --track-fds=[yes|all])\n" " v.kill : kill the Valgrind process\n" " v.clo <clo_option>... : changes one or more dynamic command line options\n" " with no clo_option, show the dynamically changeable options.\n" @@ -427,7 +427,7 @@ int handle_gdb_valgrind_command (char *mon, OutputSink *sink_wanted_at_return) VG_(show_open_fds) (""); else VG_(gdb_printf) - ("Valgrind must be started with --track-fds=yes" + ("Valgrind must be started with --track-fds=[yes|all]" " to show open fds\n"); ret = 1; break; diff --git a/coregrind/m_main.c b/coregrind/m_main.c index c182fd90e9..68edc4d499 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -110,7 +110,8 @@ static void usage_NORETURN ( int need_help ) " --vgdb-stop-at=event1,event2,... invoke gdbserver for given events [none]\n" " where event is one of:\n" " startup exit valgrindabexit all none\n" -" --track-fds=no|yes track open file descriptors? [no]\n" +" --track-fds=no|yes|all track open file descriptors? [no]\n" +" all includes reporting stdin, stdout and stderr\n" " --time-stamp=no|yes add timestamps to log messages? [no]\n" " --log-fd=<number> log messages to file descriptor [2=stderr]\n" " --log-file=<file> log messages to <file>\n" @@ -600,7 +601,17 @@ static void process_option (Clo_Mode mode, else if VG_BOOL_CLOM(cloPD, arg, "--show-below-main", VG_(clo_show_below_main)) {} else if VG_BOOL_CLO(arg, "--keep-debuginfo", VG_(clo_keep_debuginfo)) {} else if VG_BOOL_CLOM(cloPD, arg, "--time-stamp", VG_(clo_time_stamp)) {} - else if VG_BOOL_CLO(arg, "--track-fds", VG_(clo_track_fds)) {} + else if VG_STR_CLO(arg, "--track-fds", tmp_str) { + if (VG_(strcmp)(tmp_str, "yes") == 0) + VG_(clo_track_fds) = 1; + else if (VG_(strcmp)(tmp_str, "all") == 0) + VG_(clo_track_fds) = 2; + else if (VG_(strcmp)(tmp_str, "no") == 0) + VG_(clo_track_fds) = 0; + else + VG_(fmsg_bad_option)(arg, + "Bad argument, should be 'yes', 'all' or 'no'\n"); + } else if VG_BOOL_CLOM(cloPD, arg, "--trace-children", VG_(clo_trace_children)) {} else if VG_BOOL_CLOM(cloPD, arg, "--child-silent-after-fork", VG_(clo_child_silent_after_fork)) {} diff --git a/coregrind/m_options.c b/coregrind/m_options.c index 10641d4faa..688523324e 100644 --- a/coregrind/m_options.c +++ b/coregrind/m_options.c @@ -172,7 +172,7 @@ Bool VG_(clo_read_var_info) = False; XArray *VG_(clo_req_tsyms); // array of strings Bool VG_(clo_run_libc_freeres) = True; Bool VG_(clo_run_cxx_freeres) = True; -Bool VG_(clo_track_fds) = False; +UInt VG_(clo_track_fds) = 0; Bool VG_(clo_show_below_main)= False; Bool VG_(clo_keep_debuginfo) = False; Bool VG_(clo_show_emwarns) = False; diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index 3810f74744..0739ccc9af 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -823,11 +823,28 @@ getsockdetails(Int fd) /* Dump out a summary, and a more detailed list, of open file descriptors. */ void VG_(show_open_fds) (const HChar* when) { - OpenFd *i = allocated_fds; + OpenFd *i; + int non_std = 0; - VG_(message)(Vg_UserMsg, "FILE DESCRIPTORS: %d open %s.\n", fd_count, when); + for (i = allocated_fds; i; i = i->next) { + if (i->fd > 2) + non_std++; + } + + /* If we are running quiet and there are either no open file descriptors + or not tracking all fds, then don't report anything. */ + if ((fd_count == 0 + || ((non_std == 0) && (VG_(clo_track_fds) < 2))) + && (VG_(clo_verbosity) == 0)) + return; + + VG_(message)(Vg_UserMsg, "FILE DESCRIPTORS: %d open (%d std) %s.\n", + fd_count, fd_count - non_std, when); + + for (i = allocated_fds; i; i = i->next) { + if (i->fd <= 2 && VG_(clo_track_fds) < 2) + continue; - while (i) { if (i->pathname) { VG_(message)(Vg_UserMsg, "Open file descriptor %d: %s\n", i->fd, i->pathname); @@ -850,8 +867,6 @@ void VG_(show_open_fds) (const HChar* when) VG_(message)(Vg_UserMsg, " <inherited from parent>\n"); VG_(message)(Vg_UserMsg, "\n"); } - - i = i->next; } VG_(message)(Vg_UserMsg, "\n"); diff --git a/coregrind/pub_core_options.h b/coregrind/pub_core_options.h index 136c0ff6e0..5dd01addcc 100644 --- a/coregrind/pub_core_options.h +++ b/coregrind/pub_core_options.h @@ -283,8 +283,8 @@ extern const HChar* VG_(clo_prefix_to_strip); wildcards. */ extern XArray *VG_(clo_req_tsyms); -/* Track open file descriptors? */ -extern Bool VG_(clo_track_fds); +/* Track open file descriptors? 0 = No, 1 = Yes, 2 = All (including std) */ +extern UInt VG_(clo_track_fds); /* Should we run __libc_freeres at exit? Sometimes causes crashes. Default: YES. Note this is subservient to VG_(needs).libc_freeres; diff --git a/docs/xml/manual-core-adv.xml b/docs/xml/manual-core-adv.xml index 8d2e905e42..1fa801edc1 100644 --- a/docs/xml/manual-core-adv.xml +++ b/docs/xml/manual-core-adv.xml @@ -1371,8 +1371,12 @@ client request. <listitem> <para><varname>v.info open_fds</varname> shows the list of open file descriptors and details related to the file descriptor. - This only works if <option>--track-fds=yes</option> - was given at Valgrind startup.</para> + This only works if <option>--track-fds=yes</option> or + <option>--track-fds=all</option> (to include + <computeroutput>stdin</computeroutput>, + <computeroutput>stdout</computeroutput> and + <computeroutput>stderr</computeroutput>) was given at Valgrindr + startup.</para> </listitem> <listitem> diff --git a/docs/xml/manual-core.xml b/docs/xml/manual-core.xml index 2e90ab7b8c..5d52d2e3be 100644 --- a/docs/xml/manual-core.xml +++ b/docs/xml/manual-core.xml @@ -852,7 +852,7 @@ in most cases. We group the available options by rough categories.</para> <varlistentry id="opt.track-fds" xreflabel="--track-fds"> <term> - <option><![CDATA[--track-fds=<yes|no> [default: no] ]]></option> + <option><![CDATA[--track-fds=<yes|no|all> [default: no] ]]></option> </term> <listitem> <para>When enabled, Valgrind will print out a list of open file @@ -860,7 +860,10 @@ in most cases. We group the available options by rough categories.</para> command <varname>v.info open_fds</varname>. Along with each file descriptor is printed a stack backtrace of where the file was opened and any details relating to the file descriptor such - as the file name or socket details.</para> + as the file name or socket details. Use <option>all</option> to + include reporting on <computeroutput>stdin</computeroutput>, + <computeroutput>stdout</computeroutput> and + <computeroutput>stderr</computeroutput>.</para> </listitem> </varlistentry> diff --git a/gdbserver_tests/mchelp.stdoutB.exp b/gdbserver_tests/mchelp.stdoutB.exp index f8582de345..6f45932d10 100644 --- a/gdbserver_tests/mchelp.stdoutB.exp +++ b/gdbserver_tests/mchelp.stdoutB.exp @@ -5,7 +5,7 @@ general valgrind monitor commands: v.info last_error : show last error found v.info location <addr> : show information about location <addr> v.info n_errs_found [msg] : show the nr of errors found so far and the given msg - v.info open_fds : show open file descriptors (only if --track-fds=yes) + v.info open_fds : show open file descriptors (only if --track-fds=[yes|all]) v.kill : kill the Valgrind process v.clo <clo_option>... : changes one or more dynamic command line options with no clo_option, show the dynamically changeable options. @@ -64,7 +64,7 @@ general valgrind monitor commands: v.info last_error : show last error found v.info location <addr> : show information about location <addr> v.info n_errs_found [msg] : show the nr of errors found so far and the given msg - v.info open_fds : show open file descriptors (only if --track-fds=yes) + v.info open_fds : show open file descriptors (only if --track-fds=[yes|all]) v.kill : kill the Valgrind process v.clo <clo_option>... : changes one or more dynamic command line options with no clo_option, show the dynamically changeable options. diff --git a/gdbserver_tests/mssnapshot.stderrB.exp b/gdbserver_tests/mssnapshot.stderrB.exp index 067303ef14..8d463a4a71 100644 --- a/gdbserver_tests/mssnapshot.stderrB.exp +++ b/gdbserver_tests/mssnapshot.stderrB.exp @@ -6,7 +6,7 @@ general valgrind monitor commands: v.info last_error : show last error found v.info location <addr> : show information about location <addr> v.info n_errs_found [msg] : show the nr of errors found so far and the given msg - v.info open_fds : show open file descriptors (only if --track-fds=yes) + v.info open_fds : show open file descriptors (only if --track-fds=[yes|all]) v.kill : kill the Valgrind process v.clo <clo_option>... : changes one or more dynamic command line options with no clo_option, show the dynamically changeable options. diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index 4b98743a66..7f05709548 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -25,7 +25,8 @@ usage: valgrind [options] prog-and-args --vgdb-stop-at=event1,event2,... invoke gdbserver for given events [none] where event is one of: startup exit valgrindabexit all none - --track-fds=no|yes track open file descriptors? [no] + --track-fds=no|yes|all track open file descriptors? [no] + all includes reporting stdin, stdout and stderr --time-stamp=no|yes add timestamps to log messages? [no] --log-fd=<number> log messages to file descriptor [2=stderr] --log-file=<file> log messages to <file> diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index 9e8e3df01f..7c8a23f8b0 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -25,7 +25,8 @@ usage: valgrind [options] prog-and-args --vgdb-stop-at=event1,event2,... invoke gdbserver for given events [none] where event is one of: startup exit valgrindabexit all none - --track-fds=no|yes track open file descriptors? [no] + --track-fds=no|yes|all track open file descriptors? [no] + all includes reporting stdin, stdout and stderr --time-stamp=no|yes add timestamps to log messages? [no] --log-fd=<number> log messages to file descriptor [2=stderr] --log-file=<file> log messages to <file> diff --git a/none/tests/fdleak_cmsg.stderr.exp b/none/tests/fdleak_cmsg.stderr.exp index 6e5a797b9f..0fe56eaeed 100644 --- a/none/tests/fdleak_cmsg.stderr.exp +++ b/none/tests/fdleak_cmsg.stderr.exp @@ -1,6 +1,6 @@ -FILE DESCRIPTORS: 7 open at exit. +FILE DESCRIPTORS: 7 open (3 std) at exit. Open AF_UNIX socket ...: /tmp/sock ... @@ -24,7 +24,7 @@ Open file descriptor ...: /dev/null -FILE DESCRIPTORS: 6 open at exit. +FILE DESCRIPTORS: 6 open (3 std) at exit. Open file descriptor ...: /tmp/data2 ... diff --git a/none/tests/fdleak_cmsg.vgtest b/none/tests/fdleak_cmsg.vgtest index 5083320443..4b4bd8ab06 100644 --- a/none/tests/fdleak_cmsg.vgtest +++ b/none/tests/fdleak_cmsg.vgtest @@ -1,4 +1,4 @@ prog: fdleak_cmsg -vgopts: --track-fds=yes +vgopts: --track-fds=all stderr_filter: filter_fdleak args: < /dev/null diff --git a/none/tests/fdleak_creat.stderr.exp b/none/tests/fdleak_creat.stderr.exp index e7a6e918af..7b70478b9d 100644 --- a/none/tests/fdleak_creat.stderr.exp +++ b/none/tests/fdleak_creat.stderr.exp @@ -1,6 +1,6 @@ -FILE DESCRIPTORS: 4 open at exit. +FILE DESCRIPTORS: 4 open (3 std) at exit. Open file descriptor ...: /tmp/file ... diff --git a/none/tests/fdleak_creat.vgtest b/none/tests/fdleak_creat.vgtest index ffa412a456..25c243e024 100644 --- a/none/tests/fdleak_creat.vgtest +++ b/none/tests/fdleak_creat.vgtest @@ -1,4 +1,4 @@ prog: fdleak_creat -vgopts: --track-fds=yes +vgopts: --track-fds=all stderr_filter: filter_fdleak args: < /dev/null diff --git a/none/tests/fdleak_dup.stderr.exp b/none/tests/fdleak_dup.stderr.exp index 7737a7d9dc..8ceada9230 100644 --- a/none/tests/fdleak_dup.stderr.exp +++ b/none/tests/fdleak_dup.stderr.exp @@ -1,6 +1,6 @@ -FILE DESCRIPTORS: 5 open at exit. +FILE DESCRIPTORS: 5 open (3 std) at exit. Open file descriptor ...: /dev/null ... diff --git a/none/tests/fdleak_dup.vgtest b/none/tests/fdleak_dup.vgtest index d150dfef0a..012fbe02eb 100644 --- a/none/tests/fdleak_dup.vgtest +++ b/none/tests/fdleak_dup.vgtest @@ -1,4 +1,4 @@ prog: fdleak_dup -vgopts: --track-fds=yes +vgopts: --track-fds=all stderr_filter: filter_fdleak args: < /dev/null diff --git a/none/tests/fdleak_dup2.stderr.exp b/none/tests/fdleak_dup2.stderr.exp index 98d61a92a4..4576a578b3 100644 --- a/none/tests/fdleak_dup2.stderr.exp +++ b/none/tests/fdleak_dup2.stderr.exp @@ -1,6 +1,6 @@ -FILE DESCRIPTORS: 6 open at exit. +FILE DESCRIPTORS: 6 open (3 std) at exit. Open file descriptor ...: /dev/null ... diff --git a/none/tests/fdleak_dup2.vgtest b/none/tests/fdleak_dup2.vgtest index 7b0d95eeac..8d5e287b8e 100644 --- a/none/tests/fdleak_dup2.vgtest +++ b/none/tests/fdleak_dup2.vgtest @@ -1,4 +1,4 @@ prog: fdleak_dup2 -vgopts: --track-fds=yes +vgopts: --track-fds=all stderr_filter: filter_fdleak args: < /dev/null diff --git a/none/tests/fdleak_fcntl.stderr.exp b/none/tests/fdleak_fcntl.stderr.exp index 7737a7d9dc..8ceada9230 100644 --- a/none/tests/fdleak_fcntl.stderr.exp +++ b/none/tests/fdleak_fcntl.stderr.exp @@ -1,6 +1,6 @@ -FILE DESCRIPTORS: 5 open at exit. +FILE DESCRIPTORS: 5 open (3 std) at exit. Open file descriptor ...: /dev/null ... diff --git a/none/tests/fdleak_fcntl.vgtest b/none/tests/fdleak_fcntl.vgtest index 5b506eaafc..9ee14740be 100644 --- a/none/tests/fdleak_fcntl.vgtest +++ b/none/tests/fdleak_fcntl.vgtest @@ -1,4 +1,4 @@ prog: fdleak_fcntl -vgopts: --track-fds=yes +vgopts: --track-fds=all stderr_filter: filter_fdleak args: < /dev/null diff --git a/none/tests/fdleak_ipv4.stderr.exp b/none/tests/fdleak_ipv4.stderr.exp index 80c62019f1..72c2b46859 100644 --- a/none/tests/fdleak_ipv4.stderr.exp +++ b/none/tests/fdleak_ipv4.stderr.exp @@ -1,34 +1,16 @@ -FILE DESCRIPTORS: 5 open at exit. +FILE DESCRIPTORS: 5 open (3 std) at exit. Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:... ... Open AF_INET socket 3: 127.0.0.1:... <-> unbound ... -Open file descriptor ...: ... - <inherited from parent> -Open file descriptor ...: ... - <inherited from parent> -Open file descriptor ...: /dev/null - <inherited from parent> - - - -FILE DESCRIPTORS: 4 open at exit. +FILE DESCRIPTORS: 4 open (3 std) at exit. Open AF_INET socket 3: 127.0.0.1:... <-> 127.0.0.1:... ... -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: /dev/null - <inherited from parent> - diff --git a/none/tests/fdleak_open.stderr.exp b/none/tests/fdleak_open.stderr.exp index 948ed97d4e..f3f51167f1 100644 --- a/none/tests/fdleak_open.stderr.exp +++ b/none/tests/fdleak_open.stderr.exp @@ -1,16 +1,7 @@ -FILE DESCRIPTORS: 4 open at exit. +FILE DESCRIPTORS: 4 open (3 std) at exit. Open file descriptor ...: /dev/null ... -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: /dev/null - <inherited from parent> - diff --git a/none/tests/fdleak_pipe.stderr.exp b/none/tests/fdleak_pipe.stderr.exp index 832fd7e11c..5f92ea69c2 100644 --- a/none/tests/fdleak_pipe.stderr.exp +++ b/none/tests/fdleak_pipe.stderr.exp @@ -1,19 +1,10 @@ -FILE DESCRIPTORS: 5 open at exit. +FILE DESCRIPTORS: 5 open (3 std) at exit. Open file descriptor ...: ... Open file descriptor ...: ... -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: /dev/null - <inherited from parent> - diff --git a/none/tests/fdleak_socketpair.stderr.exp b/none/tests/fdleak_socketpair.stderr.exp index 377b1318ee..73832a108b 100644 --- a/none/tests/fdleak_socketpair.stderr.exp +++ b/none/tests/fdleak_socketpair.stderr.exp @@ -1,19 +1,10 @@ -FILE DESCRIPTORS: 5 open at exit. +FILE DESCRIPTORS: 5 open (3 std) at exit. Open AF_UNIX socket ...: <unknown> ... Open AF_UNIX socket ...: <unknown> ... -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: ... - <inherited from parent> - -Open file descriptor ...: /dev/null - <inherited from parent> - |