This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: freopen causing environ to be set to NULL


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]