LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Segmentation Fault (https://www.linuxquestions.org/questions/linux-software-2/segmentation-fault-270524/)

rupesh_pulikool 12-26-2004 01:18 PM

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

ehawk 12-26-2004 04:36 PM

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.

hitman_et 12-26-2004 08:26 PM

this error has appeared for me aswell
i typed:
mount /dev/scd0 /mnt/cdrom

Electro 12-27-2004 02:34 AM

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.

hitman_et 12-27-2004 04:12 AM

i found the mount rpm on the cd, can i install that??

how do i remove modules and which ones should i remove first?

kevmif 12-27-2004 06:30 AM

why would mount be seg faulting?

are u using a beta distro or something?

make sure u are mounting the right device

Electro 12-27-2004 07:19 PM

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.

hitman_et 01-07-2005 05:55 AM

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


All times are GMT -5. The time now is 04:08 AM.