Bug#340531: libc6: freopen() function closes unrelated streams.

2005-11-24 Thread Thomas Dickey
On Thu, 24 Nov 2005, Daniel Jacobowitz wrote: On Thu, Nov 24, 2005 at 07:36:11AM -0500, Thomas E. Dickey wrote: If stdin is closed _by the application_, then of course this is true. If it's closed before the application starts, then the standard library has no way to know. This is happening bec

Bug#340531: libc6: freopen() function closes unrelated streams.

2005-11-24 Thread Daniel Jacobowitz
On Thu, Nov 24, 2005 at 07:36:11AM -0500, Thomas E. Dickey wrote: > On Thu, Nov 24, 2005 at 12:46:41AM -0500, Daniel Jacobowitz wrote: > > On Wed, Nov 23, 2005 at 05:59:59PM -0500, Thomas Dickey wrote: > > > The call to freopen() is causing the stream for TRACE's output to > > > close, so the last

Bug#340531: libc6: freopen() function closes unrelated streams.

2005-11-24 Thread Thomas Dickey
On Thu, Nov 24, 2005 at 12:46:41AM -0500, Daniel Jacobowitz wrote: > On Wed, Nov 23, 2005 at 05:59:59PM -0500, Thomas Dickey wrote: > > The call to freopen() is causing the stream for TRACE's output to > > close, so the last line in the output is the first TRACE shown in > > this chunk. Putting an

Bug#340531: libc6: freopen() function closes unrelated streams.

2005-11-23 Thread Daniel Jacobowitz
On Wed, Nov 23, 2005 at 05:59:59PM -0500, Thomas Dickey wrote: > The call to freopen() is causing the stream for TRACE's output to > close, so the last line in the output is the first TRACE shown in > this chunk. Putting an abort() before the last TRACE proves that > the code is getting that far.

Bug#340531: libc6: freopen() function closes unrelated streams.

2005-11-23 Thread Thomas Dickey
Package: libc6 Version: 2.3.5-6 Severity: normal While exploring lynx cgi support with this html page: test me I found that vile dumped core (my problem to debug). However, I found that libc6 also had a bug. The relevant chunk of code in vile looks like this (TRACE is a compile-time m