--- In linuxvadapav@yahoogroups.com, Naresh Rawat <rawatn_1...@...> wrote:
>
> Hi Team,
> 
> i am getting regular alerts from my var/spool/messages stating below:
> 
> kernel: frmweb[26177]: segfault at 000000006974655e rip 00000000f7d582c1 rsp 
> 00000000ffdb61a8 error 4
> 
> Can someone help me diagnosing this and resolving? If it is just a message 
> and 
> can be ignored, then how to disable it?
> 
> Thanks,
> 
> Naresh Rawat

Sadhiq wrote -

kernel:  YOUR_APPLICATION[26177]: segfault at 0000004c eip 08094952 esp 
a7acddc0 error 4
eg - <apache>

Possible Reasons
1. if you had a faulty ram that can throw random errors

2.The point is segfaults can also occur as a by-product of a damaged file 
system as well as because of a hardware problem or a poorly written program. 
try removing and reinstalling your application, if possible.

3. you can also  have problems with Memory Optimization.
 Please post content of /etc/sysctl.conf and /etc/security/limits.conf files 
and 
 result of sar command (if not installed - install sysstat)

Diagnoze
1. use  memtest tool

2. change  settings to grub.conf kdump, kexec used "if any" 
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide-Realtime_Specific_Tuning-Using_kdump_and_kexec_with_the_RT_kernel.html

3.gdb is the best tool to debug these problem
http://www.unknownroad.com/rtfm/gdbtut/gdbsegfault.html
http://linuxfocus.berlios.de/English/July2004/article343.shtml

4.Gud video to find out fork  functions  from  binaries  & .so's
http://www.youtube.com/watch?v=I8Aib2Oe3ow

More Brief
Segmentation fault can also occur under following circumstances:
a) A buggy program / command, which can be only fixed by applying patch.
b) It can also appear when you try to access an array beyond the end of an 
array under C programming.
c) Inside a chrooted jail this can occur when critical shared libs, config file 
or /dev/ entry missing.
d) Sometime hardware or faulty memory or driver can also create problem.
e) Maintain suggested environment for all computer equipment (overheating can 
also generate this problem).


Suggestions to debug Segmentation Fault errors
To debug this kind of error try one or all of the following techniques :

    * Use gdb to track exact source of problem.
    * Make sure correct hardware installed and configured.
    * Always apply all patches and use updated system.
    * Make sure all dependencies installed inside jail.
    * Turn on core dumping for supported services such as Apache.
    * Use strace which is a useful diagnostic, instructional, and debugging 
tool.
    * Google and find out if there is a solution to problem.
    * Fix your C program for logical errors such as pointer, null pointer, 
arrays and so on.
    * Analyze core dump file generated by your system using gdb

B.Sadhiq


Reply via email to