Questions tagged [sigfpe]

On POSIX-compliant platforms, SIGFPE is the signal sent to a process when it encounters an arithmetic error, such as division by zero.

On POSIX-compliant platforms, SIGFPE is the signal sent to a process when it encounters an arithmetic error, such as division by zero.

See Also:

63 questions
0
votes
2 answers

Program with SIGFPE exception behaves differently under gdb

I have a simple C program which behaves differently when debugged with gdb and not. The program is this: #include #include int main() { kill(getpid(), SIGFPE); printf("I'm happy.\n"); return 0; } When run by…
Edward Z. Yang
  • 26,325
  • 16
  • 80
  • 110
-1
votes
1 answer

Runtime Error - SIGFPE

I HAVE THE FOLLOWING CODE for hackerearth competetion and WRITTEN IN C++ (g++ 4.8.4) it is giving SIGFPE on runtime I am just done with it plz tell how tofix it #include using namespace std; int factorial(int n); int…
-4
votes
1 answer

Floating point exception caused by assigning a value to variable of type double

Program received signal SIGFPE, Arithmetic exception. xxx::init (this=0xbffe47fc, aa=0x0) at s.cc:1061 1061 price = 100.0; I just try to compile and run the code without any modification on different linux machine RH5.6 32bit, and the…
user2391685
  • 1,006
  • 12
  • 16
1 2 3 4
5