Original Floating point exception error parsing under Linux

Source: Internet
Author: User



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.