Mail Archives: djgpp-workers/2003/04/30/13:59:15
> From: <ams AT ludd DOT luth DOT se>
> 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
- Raw text -