We are going to identify the root cause of a crash in an application that was not run in the GDB:
- In this recipe, we will use the same environment and the same test application as in the first recipe. Refer to steps 1 to 7 of the first recipe to build the application and copy it over to the target system.
- Firstly, we need to enable the generation of core dumps for crashing applications. This feature is turned off by default in most Linux distribution. Run the ulimit -c command to check the current status:
$ ulimit -c
- The value reported by the preceding command is the maximum size of core dumps to generate. Zero means no core dumps. To increase the limit, we need to get superuser privileges first. Run the su - command. When ...