LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-27-2010, 01:06 AM   #1
shichangyou2
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
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?
 
Old 05-21-2010, 08:57 PM   #2
jcomeau_ictx
LQ Newbie
 
Registered: Aug 2004
Location: Petaluma, CA, US
Distribution: Debian GNU/Linux squeeze/sid
Posts: 28

Rep: Reputation: 17
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Arithmetic Program (help pls) MaGicMaX Programming 10 11-16-2009 12:21 AM
pptpconfig: pppd process terminated by signal 11 (failed) centos-new Linux - General 1 09-19-2006 11:32 AM
ld terminated by signal 9 [killed] rustyz82 Linux - Software 1 03-31-2006 10:30 PM
setup_exception nested exception on signal stack sekarraj_irtt Linux - Software 0 11-09-2005 11:21 AM


All times are GMT -5. The time now is 08:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration