Mail Archives: djgpp/1998/05/03/10:19:07
Shaun Jackman wrote:
[...]
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x25df7 in strtod ()
> (gdb) bt
> #0 0x25df7 in strtod ()
> #1 0x18f9 in is_literal (lexema=0x7f111 "$.") at forth.c:62
> #2 0x2285 in forth (
> tp=0x7f114 " 'Cool' $. then 0 if 'Uh oh' $. then ")
> at forth.c:433
> #3 0x1738 in main ()
> #4 0x253e6 in __crt1_startup ()
> (gdb)
>
> Which means it crashed on the call strtod("$.", &endp);
> I have no idea why.
Hmm.
Using
#include <stdlib.h>
int main(int argc, cahr **argv){
char *endp;
strtod("$.", &endp);
return 0;
}
I am unable to reproduce any SIGNAL. endp simply points
to the string constant. You might have blown up
something before, or are misinterpreting the backtrace,
which I do not understand.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -