Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12845) floating point exception
Home

[Freeciv-Dev] Re: (PR#12845) floating point exception

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jon@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12845) floating point exception
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Tue, 19 Apr 2005 18:35:26 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12845 >

On Tue, 19 Apr 2005, Jonathan Hansen wrote:

> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12845 >
>
> On Tue, 2005-04-19 at 17:09, Jason Short wrote:
> > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12845 >
> >
> > Can you get a backtrace?  Run "gdb civserver" and do "bt full" when it
> > crashes.
>
> GNU gdb 6.1
> ...
> This GDB was configured as "i586-suse-linux"...Using host libthread_db
> library "/lib/tls/libthread_db.so.1".
>
> (gdb) run
> Starting program: /usr/local/bin/civserver
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x40008af2 in ?? ()
>
> #0  0x40008af2 in ?? ()
> No symbol table info available.
> #1  0x40016cbc in ?? ()
> No symbol table info available.
> #2  0x00000000 in ?? ()
> No symbol table info available.
> ...
> #1455 0x69632f72 in ?? ()
> No symbol table info available.
> Cannot access memory at address 0xc0000000
> (gdb) continue
> Continuing.
>
> Program terminated with signal SIGFPE, Arithmetic exception.
> The program no longer exists.

In my experience, nearly always when you get a SIGFPE, the problem is a
divide by zero. i.e. something/0.

I suggest someone deskchecks the code for divides (probably too many of
them to check them all though).

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







[Prev in Thread] Current Thread [Next in Thread]