This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


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

insight/93: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!!



>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);
}


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