Many people may have encountered such a mistake:
Linux under the program just a run error: floating point exception.
In fact, the problem is very easy to troubleshoot, most of the situation is a logical problem, such as:
c = A/b; or C = a%b;
If the B in this is accidentally 0, then there will be a floating point exception problem, you can check! Ha ha!
Of course there may be a reason for the version:
There is no problem when the same program runs on a higher version of Linux, and when you run the floating point exception on another low-version machine, this is most likely caused by a high-version gcc link. High-version GCC uses new hashing techniques to increase the speed of dynamic links at link time, which is not supported in the low version. So this error can occur. GCC is a compiler. The compiled software is not supported for this reason by some technologies on the low version operating system.
Original Floating point exception error parsing under Linux