LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mv seg faulting? (https://www.linuxquestions.org/questions/linux-general-1/mv-seg-faulting-441916/)

Tweakin 05-05-2006 11:02 AM

mv seg faulting?
 
I have got a real monster of a problem this morning. I was trying to reboot a server in the office and the shutdown canceled on a mv segmentation fault. How could mv seg fault? Anyhow, I did a hard reboot and now I am getting something similar. I get pretty far and things seem ok until modules-update kicks in.

Code:

/sbin/modules-update: line157: 4748 segmentation fault    mv -f "$tmpfile" "$cfgfile"
Failed to calculate modules dependencies.

Then it takes a few more steps before completely bombing out with errors on /sbin/rc, all seg faults do to 'mv'. Any idea what is going on here? I am left at a prompt, can login and have minimal functionality. I can nano, cat, ls, tail, etc... but can not use emerge, start any services, and eth0 seems to be down.

The server is running Gentoo and is up-to-date security wise, with a few older packages hanging around. It is a simple file server with samba and a local website running on apache.

I am guessing hardware failure but I really hope otherwise. Any help would be greatly appreciated- I am in a real tough spot here!

raskin 05-05-2006 12:05 PM

Maybe you can try building statically linked mv on another machine and run manually the command that fails? (Having created files needed and env.variables referenced) Maybe even under gdb (include debugging symols for it). Also it is possible that shell and not mv is getting SEGV because something is messed up with environment.


All times are GMT -5. The time now is 07:11 AM.