Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

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.

share|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
    
@MarkWagner Although very fair points in their own right, I don not believe your objections would mean to downvote this answer since what it says is perfectly correct and actually more general and informative as to how one should proceed when a seg fault happens. –  ashy_32bit Mar 4 '13 at 12:28
    
@AlekseyKorzun "Thanks for adding absolutely nothing to the conversation" I believe his comments are actually adding a lot to the conversation. I didn't know RefHat got debugging packages at hand but perhaps you would have to re-compile anyways ! –  ashy_32bit Mar 4 '13 at 12:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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