I have a script which intermittently returns a white screen of death in firefox and Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. chrome.

When I try to access the script using a PHP HTTP client (like Zend_Http_Client), intermittently I get an exception (sorry I don't have the exact message on me at the moment).

I suspect a segfault. This is further buttressed by the lines in my error log that look like this: [Thu Mar 18 16:03:02 2010] [notice] child pid 845 exit signal Segmentation fault (11)

Now, I'm running RedHat, and I know that RedHat doesn't generate core dumps out-of-the-box. I followed the instructions here http://kbase.redhat.com/faq/docs/DOC-5353, but I'm not seeing any core dumps.

How do I generate a core dump?

link|improve this question

70% accept rate
Perhaps giving others an idea of the instructions you followed would be preferable, as the link you supplied requires login details for RedHat... – Zayne S Halsall Nov 18 '10 at 14:42
feedback

1 Answer

You need to recompile your programs with debugging symbols.

I have written a small how-to on this topic: http://alekseykorzun.com/post/5251031042/debugging-crashes-on-freebsd; it's FreeBSD specific but might help you out.

link|improve this answer
1  
(1) Recompiling with debugging symbols does not enable core dumps. (2) In RHEL you do not need to recompile anything. You merely install the the associated -debug package. – Mark Wagner Jun 21 '11 at 16:10
(1) I'm obviously aware of that, but getting a core dump is useless if you don't have proper debugging symbols loaded. (2) Unless he installed from source.(3) Thanks for adding absolutely nothing to the conversation. – Aleksey Korzun Jun 21 '11 at 20:59
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.