Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am using linux(kernel 2.6.9-5.0.3.EL).Unfortunately 2 days before all the cronjob was stopped and i am getting segmentation fault error,while starting and finding the status of all the services.
ERROR: service crond status
/sbin/service: line 68: 28349 Segmentation fault env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
while using mv command also i am getting the segmentation fault error.
Could anyone explain about this error?
I searched on this error and found it may be hardware error due to bad RAM memory.so now i have to run some diagnostic test to figure out the exact cause of problem.I am heard of memtest,but don't know how to run that in linux.... .Please help me...to find out some easy linux package or tool to test RAM.
I also tried a script in this link http://people.redhat.com/dledford/memtest.html.It took long time for me and also it make my server load to exceed threshold limit.So i gave off this script.Is there anyone get positive result using this script? Please help me to sort out the problem and to overcome that.
2 days before all the cronjob was stopped and i am getting segmentation fault error,
There's two things you should do:
- verify the integrity of your packages: 'rpm -qVa' and
- check your system logs for package changes, any errors, anything out of the ordinary.
Quote:
Originally Posted by dianarani
while using mv command also i am getting the segmentation fault error.
What does 'ldd /bin/mv' return?
What does 'touch /tmp/$$; strace -v /bin/mv -f /tmp/$$ /tmp/$$.mv' return?
Can you confirm you posted the whole strace because I don't see no "/proc/filesystems" or "/usr/lib/locale/locale-archive" in your output? BTW, please also pay attention to the first two things to check (integrity, logs). Any other details you may (not) think related to any of this would be appreciated.
yes,i pasted the whole strace.when i ran strace on another server and compare, i found /usr/lib/locale/locale-archive and /proc/filesystem were missing in the output.I suspect it may be the problem.I checked the log and found nothing abnormal.
while verifying initscripts, i got reply as follows
.......T /bin/doexec
prelink: undo.c:699: prelink_undo: Assertion `dso->ehdr.e_entry == ehdr.e_entry' failed.
S.?....T /bin/ipcalc
.......T /bin/usleep
..5....T c /etc/inittab
S.5....T c /etc/rc.d/rc.local
.......T /sbin/consoletype
.......T /sbin/genhostid
.......T /sbin/getkey
.......T c /sbin/ifdown
.......T c /sbin/ifup
.......T /sbin/initlog
.......T /sbin/kmodule
.......T /sbin/minilogd
.......T /sbin/netreport
.......T /sbin/ppp-watch
.......T /sbin/redhat-support-check
.......T /sbin/service
.......T /sbin/setsysfont
Is it this initscripts(package) creating problem? Please help me to proceed more.....
While verifying initscripts package using rpm -qVa initscripts i got the following failed message,
prelink: undo.c:699: prelink_undo: Assertion `dso->ehdr.e_entry == ehdr.e_entry' failed.
Is there any wrong on initscripts package? Please advice me on this...
A segfault happens when an application tries to access a part of memory it shouldn't. If it happens to a single application it might be a programming error. If it suddenly happens to the whole system there's something else going on. Could be anything from missing dependency to partial upgrade to malicious activity. Unfortunately the strace and verify output don't give me a clue what's happening (and I don't get the prelink_undo host entry point error, does this happen with all packages you verified? Or did you only verify init scripts?). Let's focus a bit on what happened on the system up to the point you first noticed the segfaults. Look through your logfiles for package removal, installations and upgrades and anything else that looks "weird". While you're at it you might as well check for "weird" processes or unusual user activity around the time. BTW, if you're running RHEL-4 your kernel seems from 2005. Shouldn't you be running kernel 2.6.9-67.0.4.EL?
Thanks a lot unspawn.On upgrading initscript rpm, i got my crond running as normal.
Even now i din't get some command(mv,mkdir,chown) working.these command getting(segmentation fault error).i have to check all the logs some more deep.
incidentally i noticed the segfaults by checking the cron as it stopped rsync the data,so while checking that i found this error.
One more problem i got now was none of the cron process end.that while i check the status of crond i got too many process as running.
Please say if you get any ideas on this...
Probably you got a breach or someone installed a root kit. If you are not running AIDE or any file monitor, I suggest note your back ups as contaminated and do a complete re-install. If you are running a file monitor, probably it is hardware related such as not using ECC memory, hard drive going, power supply age.
Dear all,
Here I 'm also facing the same type of problem in our Production Setup ,
I 'm not able to execute any commands .eg. ls -ltr , grep ,vi ...etc ,
Can any body provide the Solution for the Segmentation Fault Error .
How to resolve it ,
Is is possiable to recover the OS through Resecue CD's ?
Pls update ..
I don't know if this is a language barrier thing but you've not been reporting back what we need to see. Also you've not been updating this issue continuously, which leads me to believe you don't see the urgency of it. I agree it's time to boot a Live CD and do proper audting before doing anything else. Here's a list of checks you want to perform next to 'rpm -qVa': Intruder Detection Checklist (CERT): http://www.cert.org/tech_tips/intrud...checklist.html.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.