LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2004, 01:18 PM   #1
rupesh_pulikool
LQ Newbie
 
Registered: Mar 2004
Location: 1/220 b.m.c colony malwani malad(w)
Posts: 10

Rep: Reputation: 0
Segmentation Fault


hi,
While executing mount command i am getting a " Segmentation Fault " Error,
Can anyone please let me know what this error is. I rebooted the machine but still the problem persist.



Regards
Rupesh
 
Old 12-26-2004, 04:36 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
segmentation fault

This error is sometimes hard to track down.

I have seen this under two different conditions in my limited programming experience.

1. The program is trying to access unavailable memory. If it tries to access an array element that is outside the range of the declared size of the array, for example, this error may result.

2. Compiler problem. I noticed that on one processor architecture, I couldn't compile a program using gcc, but that on another one, it worked (same program and compiler).

Perhaps you are giving it arguments for mount which just don't make sense. Perhaps if you post the command and its arguments, others here could help you. I know that some distros place /floppy, /cdrom, etc. in different paths.
 
Old 12-26-2004, 08:26 PM   #3
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Rep: Reputation: 15
this error has appeared for me aswell
i typed:
mount /dev/scd0 /mnt/cdrom
 
Old 12-27-2004, 02:34 AM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try finding the mount command on the cds in another computer or if you have two CD-ROM players you can use Knoppix to search the mount command on the installation discs. Then replace it with the one from the disc.

Try running memtest86 from a boot disk.

Try removing some modules until it starts working.
 
Old 12-27-2004, 04:12 AM   #5
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Rep: Reputation: 15
i found the mount rpm on the cd, can i install that??

how do i remove modules and which ones should i remove first?
 
Old 12-27-2004, 06:30 AM   #6
kevmif
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
why would mount be seg faulting?

are u using a beta distro or something?

make sure u are mounting the right device
 
Old 12-27-2004, 07:19 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
To remove modules or drivers. As root type modprobe -r module_name or rmmod module_name. The rmmod utility just removes the desire module. The modprobe command removes the module and as well as others that is uses. You can try to remove the sound modules and then network. Probably the library file that mount depends on is corrupted. You can try to use strace by doing strace mount. It will tell you want library it needs if mount was compiled as shared. Usually Mandrake compiles mount and some other commands as shared.

I suggest finding the RPM file or tgz file on the discs and then use mc to open up the file. Next copy the file to the right path. This will replace the mount command with out going through RPM hell.
 
Old 01-07-2005, 05:55 AM   #8
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Rep: Reputation: 15
ok,

when i tried strace (after doing chroot /mnt/sysimage, su) it came up with a lot of 'no such file or directory' or something similar. the last 2 lines were:
----sigsegv segmentation fault---
*** killed by sigsegv****
(when i tried it without chrooting, it came up alot different)

and when did modprobe sound it came up with:
cant open dependencies file /lib/....modules.dp (no such file or dir...)
i checked and the file was not there

Last edited by hitman_et; 01-07-2005 at 05:59 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does Segmentation Fault mean ? baronlynx Linux - Newbie 10 10-25-2009 04:32 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Help !!! Segmentation fault mola Linux - Software 3 06-23-2005 11:13 AM
Segmentation fault tejas15_10 Programming 9 06-20-2005 09:12 AM
Segmentation fault santhosh_o Programming 3 10-26-2004 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 AM.

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