LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2013, 04:01 AM   #1
Shahid nx
Member
 
Registered: Jan 2012
Posts: 46

Rep: Reputation: Disabled
Floating point Exception


Hi,
I have a process written in c/c++ which is running and working fine in one server but when i move it to another server as soon as i execute it is displaying error as "Floating point exception". I really not getting the reason. please help me to resolve this issue.

Thanks
shahid nx
 
Old 03-20-2013, 04:23 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,929

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
insufficient information. please specify the os, how did you compile it and ....
 
1 members found this post helpful.
Old 03-20-2013, 05:20 AM   #3
Shahid nx
Member
 
Registered: Jan 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
server1: redhat os with version 3 (taroon)
server2: redhat OS with version 5.4 (tikanga)

Is it problem with OS ?
 
Old 03-20-2013, 05:43 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It seems that some arithmetic operations is going on in your code and your system shell isn't able to display floating point number.

So can you once post that snippet of your code where it's doing arithmetic calculation? It would help us to debug the issue.
 
Old 03-20-2013, 06:03 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,929

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
Quote:
Originally Posted by Shahid nx View Post
server1: redhat os with version 3 (taroon)
server2: redhat OS with version 5.4 (tikanga)

Is it problem with OS ?
This can be caused by a 32/64 bit mismatch, an incompatible lib, outdated os or a lot of other things. You need to specify your environment, how did you build and run that software (compiler, commands, the code) and so on. (it can be hardware related too).
 
  


Reply



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
Floating point exception vetri83 Linux - Server 2 05-04-2012 04:41 AM
Floating point exception cccc Debian 0 11-28-2008 12:32 PM
floating point exception srkbapanapalli Linux - Newbie 1 03-26-2008 11:38 AM
Floating point exception ramesh6056 Linux - Software 1 05-29-2007 01:14 AM
Floating point exception hemk76 Linux - Software 1 05-06-2005 11:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration