This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: freopen causing environ to be set to NULL
- To: Ron Horrell <rhorrell at tangram dot com>
- Subject: Re: freopen causing environ to be set to NULL
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 6 Jun 2001 21:05:49 +0100
- Cc: gcc at gcc dot gnu dot org
Ron Horrell wrote:-
> Hi All,
> I am running an application on RedHat 7.1 that was built on RedHat 5.1.
> The program SIGSEGV due to the fact that environ is equal to NULL. This is
> caused by a call to freopen redirecting stderr to a file.
The recent "Herb Sutter" tests had Linux failing almost all of the
freopen tests, for an unspecified reason. Maybe this is it. Anyway,
if it's a bug in anything, it's a bug in the C library.
Neil.