Date: Wed, 30 Apr 2003 20:53:39 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-Id: <3405-Wed30Apr2003205339+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200304301100.h3UB0RBW010425@speedy.ludd.luth.se> (ams AT ludd DOT luth DOT se) Subject: Re: Yet another try on nan in strto{f,d,ld} References: <200304301100 DOT h3UB0RBW010425 AT speedy DOT ludd DOT luth DOT se> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: > Date: Wed, 30 Apr 2003 13:00:27 +0200 (CEST) > > From what I can see the problem is in printf(), not in any assignments > strtof() does. Then the crashes are not relevant to `strtof'. > A:\>nan_ass2 > FPU CW: 0x00000340. > Exiting due to signal SIGFPE > Floating Point exception at eip=00007738, x87 status=c581 > eax=00094581 ebx=00000014 ecx=00000000 edx=00001629 esi=00000014 edi=00011d94 > ebp=00091cdc esp=000908b4 program=A:\NAN_ASS2.EXE > cs: sel=00bf base=00116000 limit=0009ffff > ds: sel=00c7 base=00116000 limit=0009ffff > es: sel=00c7 base=00116000 limit=0009ffff > fs: sel=009f base=000051d0 limit=0000ffff > gs: sel=00d7 base=00000000 limit=0010ffff > ss: sel=00c7 base=00116000 limit=0009ffff > App stack: [00091d94..00011d94] Exceptn stack: [00011d14..0000fdd4] > > Call frame traceback EIPs: > 0x00007738 _doprnt+1652 > 0x00002c2c printf+28 > 0x00001684 main+72, file nan_ass2.c, line 18 > 0x00002bbc __crt1_startup+204 > > A:\>symify -o nan_ass2.sym nan_ass2.exe > > One weird thing, line 18 is "ld = NAN;", but the crash was in > printf/_doprnt? If you could look into _doprnt and see why it crashes, perhaps we could fix one more bug. TIA