This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libf2c/11918] isatty does not call f_init
- From: "nvwarr at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2003 06:22:10 -0000
- Subject: [Bug libf2c/11918] isatty does not call f_init
- References: <20030814122008.11918.nvwarr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11918
------- Additional Comments From nvwarr at hotmail dot com 2003-09-10 06:22 -------
I originally reported this but to RedHat's bugzilla with a test case. It seems
that subject line was forwarded by someone but without the explanation. So I'm
cutting and pasting what I sent to RedHat...
Description of problem:
Using a main program in C and a subroutine in Fortran, where the Fortran
uses isatty without using any other Fortran I/O, results in a segmentation fault
at that point.
Inserting another Fortran I/O operation before the call to isatty works around
the problem. Alternatively, calling f_init explicitly from the C code before
calling the Fortran also works.
My problem occurs in a large complicated set of code mixing C and Fortran, but
the example below illustrates the problem.
Version-Release number of selected component (if applicable):
gcc-g77-3.2-7