Re: Bad leaks file fd to child processes

2022-11-29 Thread Dale R. Worley
Greg Wooledge writes: > The fact that pvs *complains* about this instead of just ignoring it makes > it fairly unique. I don't know why the authors of pvs chose to do this. > Perhaps they were working around some known or suspected bug in some other > program that was commonly used as pvs's

Re: Bad leaks file fd to child processes

2022-11-28 Thread Greg Wooledge
On Mon, Nov 28, 2022 at 05:00:28PM -0500, Dale R. Worley wrote: > Alexey via Bug reports for the GNU Bourne Again SHell > > Same behavior was in bash 4.4 (as well as now in bash 5.2): > > > > # echo $BASH_VERSION > > 4.4.0(1)-release > > # exec 66 > # pvs > > File descriptor 66 (/etc/hosts)

Re: Bad leaks file fd to child processes

2022-11-28 Thread Dale R. Worley
Alexey via Bug reports for the GNU Bourne Again SHell > Same behavior was in bash 4.4 (as well as now in bash 5.2): > > # echo $BASH_VERSION > 4.4.0(1)-release > # exec 66 # pvs > File descriptor 66 (/etc/hosts) leaked on pvs invocation. Parent PID > 1057606: ./bash > > But we use the fact tat

Re: Bad leaks file fd to child processes

2022-11-28 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-11-28 14:20, Koichi Murase wrote: 2022年11月28日(月) 19:06 Alexey via Bug reports for the GNU Bourne Again SHell : But we use the fact tat bash doesn't close FD for example to preliminary open log file for utility that we will `exec' later. Unfortunately bash doesn't provide any fcntl()

Re: Bad leaks file fd to child processes

2022-11-28 Thread Koichi Murase
2022年11月28日(月) 19:06 Alexey via Bug reports for the GNU Bourne Again SHell : > But we use the fact tat bash doesn't close FD for example to preliminary > open log file for utility that we will `exec' later. > Unfortunately bash doesn't provide any fcntl() mechanism to control FD > flags. > It'll

Re: Bad leaks file fd to child processes

2022-11-28 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-11-26 14:05, "凋叶棕" via Bug reports for the GNU Bourne Again SHell wrote: Hello, I find that the file descriptor leaks when I execute the command pvs in bash 5.2, The abnormal scenario is similar to the bug which reported by

Re: Bad leaks file fd to child processes

2022-11-27 Thread Dale R. Worley
"凋叶棕" via Bug reports for the GNU Bourne Again SHell writes: > I find that the file descriptor leaks when I execute the command pvs > in bash 5.2, The abnormal scenario is similar to the bug which > reported by > http://lists.gnu.org/archive/html/bug-bash/2017-01/msg00026.html > > When I

Re: Bad leaks file fd to child processes

2022-11-26 Thread Chet Ramey
On 11/26/22 5:05 AM, 凋叶棕 via Bug reports for the GNU Bourne Again SHell wrote: Hello, I find that the file descriptor leaks when I execute the command pvs in bash 5.2, The abnormal scenario is similar to the bug which reported by

Re: Bad leaks file fd to child processes

2022-11-26 Thread Andreas Schwab
On Nov 26 2022, "凋叶棕" via Bug reports for the GNU Bourne Again SHell wrote: > But when I execute pvs in the terminal opened through vscode(use Remote-SHH > to connect linux), the File descriptor was leaked > > File descriptor 19 (/dev/ptmx) leaked on pvs invocation. Parent PID 3789: >

Bad leaks file fd to child processes

2022-11-26 Thread ??????
Hello, I find that the file descriptor leaks when I execute the command pvs in bash 5.2, The abnormal scenario is similar to the bug which reported by http://lists.gnu.org/archive/html/bug-bash/2017-01/msg00026.html When I execute pvs in the terminal opened through xshell??it??s ok PV