Failed to capture C + + exception __c++

Source: Internet
Author: User

Today encountered a strange phenomenon, the same program on one machine can catch the code thrown out of C + + exception, on the other machine can not catch the exception directly abort out,


The stack is as follows:


#0 0xf77c6430 in __kernel_vsyscall ()
#1 0x002b6df0 in Raise () from/lib/libc.so.6
#2 0x002b8701 in Abort () from/lib/libc.so.6
#3 0x00615acc in _unwind_resume () from/lib/libgcc_s.so.1
#4 0X086BACBB in Xxxxxxxxxxxxxxxxx


after GDB single step tracking basic suspicion is the runtime's compatibility problem, check two machines of the gcc/glibc/libstdc++ version, indeed found the clue.


No problem machine: ls-lt/lib/libgcc_s.so.1
lrwxrwxrwx. 1 root Oct 09:01/lib/libgcc_s.so.1-> libgcc_s-4.4.6-20120305.so.1


Machine with problems: ls-lt/lib/libgcc_s.so.1
lrwxrwxrwx 1 root Sep 08:29/lib/libgcc_s.so.1-> libgcc_s-4.1.2-20080825.so.1


After the backup, the decision to copy the libgcc_s-4.4.6-20120305.so.1 to the problematic machine is not covered.
Try again, it's no problem.




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.