(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