Richard Hubbell wrote:
Hello all,
Are there any tricks for improving the debuggability of httpd without the
detriment to performance? -g just about cuts capacity in half.
-g should do no such thing. -g -O0 would, obviously, but some people are
patient enough to struggle through an optimized crash.
If you seriously see such a problem, create the binaries optimized but
with -g, then strip them before you deploy them.
But DON'T throw away the originals - you can use them to then work through
any dump you create through gdb. The fact that the running binaries were
stripped doesn't matter.