Segmentation fault (core dumped) problem

Source: Internet
Author: User
(original) Again on segmentation fault (core dumped)

2011-10-25 09:59:13|  Category: Linux/C + + | Tags: | size big Small SUBSCRIBE

In the previous article "How to Solve your segmentation fault (core dumped) problem" has said the specific core dumped the cause, the following main to introduce the problem of the solution and find, AIX usually use the DBX on the line debugging tracking, In general, I use GDB for debugging, so today I will look at the Linux environment as an introduction to find the reason for the core dumped. What you need to explain is that you have to debug the option-G when compiling the program.

Syntax: GDB applies Core

There's going to be a bunch of stuff out there, so just leave it, and enter the where in the input line.

That's where the core is going to be, first you see the order from the bottom of the list, because it's a "stack" order.

You can immediately see what causes the cause, interested can try.

Also note that if you run a lot of applications on your machine, the core you generate does not know which application is generated, you can view it with the following command:

File Core

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.