I am writing some CPP code that runs as part of Apache.
I have a segfault. Where would I find the core dump so I can debug this.
If there is no core dump, how do I tell Apache to create one (is there a debug flag?)
I am writing some CPP code that runs as part of Apache. I have
Share
Whether a core is dumped or not is set via
ulimit -c. It’s not up to the application to decide whether to dump core or not (a core is generated by the OS, not the app, which has perished at that point already).A corefile should be located in the directory from which the application was started.
A core can / will be dumped whether the application is a debug version or not. (Of course, a core dump of a non-debug version is somewhat less helpful due to the lack of debugging symbols in the process image.)