This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/42744] SIGSEGV at libgfortran/io/format.c:111
- From: "manfred99 at gmx dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 12:44:00 -0000
- Subject: [Bug libfortran/42744] SIGSEGV at libgfortran/io/format.c:111
- References: <bug-42744-9562@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from manfred99 at gmx dot ch 2010-01-14 12:43 -------
This write statement is called in a loop, and it crashes at the
second iteration.
I did first a test case with only this write statement, and it
works OK.
Then, I put a loop around it, and I catched it!
So the attached test case crashes for me with
# ./writebug
2009-10-31 03:00 2.8 7.8 7.3 7.6
7.1 -0.2 2.6 7.3 7.6 7.9
8.2 2.5 7.0 8.0 7.5 6.6
7.8 5.7 9.4 7.3 -0.6 5.2
7.7 8.5 8.8 4.7 7.7 7.7
7.4 7.4 1.2 5.9 2.6 2.5
8.0 7.1 7.2 8.8 3.9 ?
3.0 2.2 7.3 3.1 1.7 -6.3
5.4 6.3 6.2 -4.5 0.2 4.5
0.3 6.0 9.8 2.9 12.0 11.0
12.7 11.1 0.0 3.7 3.0 -0.9
2.2 -0.4 0.0 -4.6 -6.7 1.8
-0.8 ? ? 4.3
Program received signal 11 (SIGSEGV): Segmentation fault.
Backtrace for this error:
+ /lib64/libc.so.6 [0x7f0d7ee7b560]
+ in the main program
from file writebug.f
+ /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f0d7ee67a7d]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42744