Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Program received signal SIGFPE, Arithmetic exception

327 views
Skip to first unread message

Alexandre Furlan

unread,
Nov 27, 2012, 12:01:39 PM11/27/12
to
Hi.

I have the program a FORTRAN90 and when I debug with gdb, is shown

Program received signal SIGFPE, Arithmetic exception.
0x00000000004060be in MAIN__ ()

How to find the line where the error was found ?

Thanks

Eli Zaretskii

unread,
Nov 27, 2012, 12:50:57 PM11/27/12
to Alexandre Furlan, bug...@gnu.org
> Date: Tue, 27 Nov 2012 09:01:39 -0800 (PST)
> From: Alexandre Furlan <alexandr...@gmail.com>
Did you try typing "bt", short for "backtrace"?

Eli Zaretskii

unread,
Nov 27, 2012, 1:39:04 PM11/27/12
to alexandrepfurlan, bug...@gnu.org
> Date: Tue, 27 Nov 2012 16:14:04 -0200 (BRST)
> From: alexandrepfurlan <alexandr...@gmail.com>
> cc: Alexandre Furlan <alexandr...@gmail.com>, bug...@gnu.org
>
>
> I tried, and the result is
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x00000000004060be in MAIN__ ()
> (gdb) bt
> #0 0x00000000004060be in MAIN__ ()
>
> And now ?

Did you compile with -g? It looks like there are no debug info in
this executable.

alexandrepfurlan

unread,
Nov 27, 2012, 1:57:38 PM11/27/12
to Eli Zaretskii, alexandrepfurlan, bug...@gnu.org

Yes. I use

gfortran -g program.f90

I'll try again.

On Tue, 27 Nov 2012, Eli Zaretskii wrote:

>> Date: Tue, 27 Nov 2012 16:14:04 -0200 (BRST)
>> From: alexandrepfurlan <alexandr...@gmail.com>
>> cc: Alexandre Furlan <alexandr...@gmail.com>, bug...@gnu.org
>>
>>
>> I tried, and the result is
>>
>> Program received signal SIGFPE, Arithmetic exception.
>> 0x00000000004060be in MAIN__ ()

alexandrepfurlan

unread,
Nov 27, 2012, 1:14:04 PM11/27/12
to Eli Zaretskii, Alexandre Furlan, bug...@gnu.org

I tried, and the result is

Program received signal SIGFPE, Arithmetic exception.
0x00000000004060be in MAIN__ ()
(gdb) bt
#0 0x00000000004060be in MAIN__ ()

And now ?


On Tue, 27 Nov 2012, Eli Zaretskii wrote:

>> Date: Tue, 27 Nov 2012 09:01:39 -0800 (PST)
>> From: Alexandre Furlan <alexandr...@gmail.com>
>>
0 new messages