[Bug libf2c/11918] isatty does not call f_init
nvwarr at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 10 06:22:00 GMT 2003
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
More information about the Gcc-bugs
mailing list