Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-05-2006, 11:02 AM   #1
LQ Newbie
Registered: Oct 2005
Location: Minneapolis, MN
Posts: 2

Rep: Reputation: 0
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.

/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!
Old 05-05-2006, 12:05 PM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl program seg-faulting over SSH FlowState Programming 1 04-11-2006 11:45 AM
Apache 2 Child Processes Seg faulting! DavidHayes Linux - Software 1 04-20-2005 07:54 PM
Seg Faulting C. Where? DaveyB Programming 9 11-04-2004 02:00 PM
Compiler seg faulting fitz9948 Slackware 2 05-11-2004 03:04 PM
My program is seg faulting? eggs Programming 2 10-06-2002 02:32 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration