This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
insight/93: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!
- To: insight-gnats at sourceware dot cygnus dot com
- Subject: insight/93: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!
- From: fabien at obs dot univ-lyon1 dot fr
- Date: 23 Jun 2001 14:34:26 -0000
- Reply-To: fabien at obs dot univ-lyon1 dot fr
>Number: 93
>Category: insight
>Synopsis: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 23 07:43:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Fabien Wernli
>Release: insight-5
>Organization:
>Environment:
suse linux 7.0 i386
>Description:
Program compiles correctly and runs correctly when not in debug mode with gdb/insight (works ok with ddd and gdb4.7)
when using insight, fopen() command returns address only if the file is called toto.txt. Call it toto2.txt, and it fails, so fclose() returns seg,entation fault!!
create any toto.txt -> works
change program with toto2.txt -> ssigsev with gdb!!!
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="text.c.txt"
Content-Disposition: inline; filename="text.c.txt"
#include <stdio.h>
main()
{
FILE *fileman;
fileman = fopen("toto.txt", "r");
feof(fileman);
fclose(fileman);
}