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'm using Red Hat Enterprise Linux Server release 5. In this whenever a user process crashes due to segmentaion faults, it was not logged in /var/log/messages. Even dmesg is also not showing any messages related to this.

Where as in another distributions (Cent OS 5), I've seen segfaults messages in /var/log/messages whenever my user process crashed.dmesg also showing the segfaults.

Is there any settings that to enabled so that it logs segfaults into /var/log/messages.

I cross checked /etc/syslog.conf of both the systems. Both are same and even /etc/sysconfig/syslog files.


Now I check kernel source code, arch/x86/mm/fault.c, and found print error message of segfault to /var/log/messages only in 2.6.23 and after. Because RHEL5.4 using 2.6.18 kernel, so that it can't log the info into system log.

share|improve this question

2 Answers 2

kern.info in syslog.conf should match as far as I can see.

I have *.info -/var/log/messages in my syslog.conf, and it definitely prints segfaults to messages on rhel5.6 (still 2.6.18):

Jun 27 09:25:00 rhel5-x86-64 kernel: a.out[7527]: segfault at 0000000000000000 rip 0000000000400444 rsp 00007fff1d417460 error 6

share|improve this answer
    
Hi, in x86_64 arch, fault.c contains sentence which will output error message to /var/log/messages. –  Scy Jun 27 '13 at 8:04

At least we can set kernel's control kernel.print-fatal-signals to 1 and get quite verbose log reports then:

[1157230.882024] Process m (pid: 1042531, veid: 0, threadinfo ffff8804dac20000, task ffff880667b6f070)
[1157230.882137]
[1157230.882190] Call Trace:
[1157812.633292] hostname.here/1045982: potentially unexpected fatal signal 11.
…
share|improve this answer

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.