From mboxrd@z Thu Jan 1 00:00:00 1970 From: fabien@obs.univ-lyon1.fr To: insight-gnats@sourceware.cygnus.com Subject: insight/93: stdio.h problems : fopen() returns no adress unless file is called toto.txt !!! Date: Sat, 23 Jun 2001 07:43:00 -0000 Message-id: <20010623143426.12399.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q2/msg00009.html List-Id: >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 main() { FILE *fileman; fileman = fopen("toto.txt", "r"); feof(fileman); fclose(fileman); }