LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Program terminated with signal SIGFPE, Arithmetic exception (https://www.linuxquestions.org/questions/linux-newbie-8/program-terminated-with-signal-sigfpe-arithmetic-exception-804435/)

shichangyou2 04-27-2010 01:06 AM

Program terminated with signal SIGFPE, Arithmetic exception
 
hi
my host is x86_64 and run hosted redhat server5.4 X86_64,
i complies my code with -m32 option open, my code run smoothly in
my host, but when it installed on redhat9.0 host(x86_32)
the error occurs and the output is :
"Program terminated with signal SIGFPE, Arithmetic exception"

but thought whole my code, there no divide operators,
i write the "hello world" program, the same problem also occurs
.
how should i do?

jcomeau_ictx 05-21-2010 08:57 PM

Have you tried running it with gdb? That ought to show you where the problem is. You may not have any div instructions in your code, but the executable is very likely linked to something that does.

And you may need to rebuild on the target host: see https://bugzilla.redhat.com/show_bug.cgi?id=213252


All times are GMT -5. The time now is 11:20 PM.