LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Segmentation fault, WHY?? (https://www.linuxquestions.org/questions/slackware-14/segmentation-fault-why-345049/)

eXor 07-20-2005 11:54 AM

Segmentation fault, WHY??
 
After rebooting my computer I now get this all the time.

root@silverserver:/# ls
Segmentation fault
root@silverserver:/# ls -l
Segmentation fault
root@silverserver:/# ls -a
Segmentation fault
root@silverserver:/# dir
Segmentation fault
root@silverserver:/#

I can allso se that when I boot linux up there are some errors with mysql and some more program and they all has Segmentation fault in the error line. Plz help me.

keefaz 07-20-2005 12:04 PM

You're out of luck :(

Try to boot from a slackware CD (1 or 2)
mount your system partition in /mnt/hd
chroot /mnt/hd
rm /lib/libc.so.6
ln -s /lib/libc-2.3.4.so /lib/libc.so.6

remove the CD and reboot

eXor 07-20-2005 12:10 PM

Humf, then I have to download the cd beacuse I don't have them :(

Do you know why?

keefaz 07-20-2005 12:12 PM

Maybe you can do it without boot from CD (as you are here)

Do the ln and rm commands work ?

As for why, I had exactly the same problem after a bad glibc upgrade

eXor 07-20-2005 12:13 PM

yes, it looks like that!!


edit....
Now I have destroyed it totaly :( Now I can't start it at al. How should I do to fix it from my slackware cd (downloading it at the moment). I think I have to install the glibc files again to.

hmm.

chroot /mnt/hd and i get Segmentation fault. What to do??

Matir 07-20-2005 12:56 PM

You might want to run a 'memtest86' on your memory. Other than that, you don't HAVE to chroot to execute those commands.

eXor 07-20-2005 01:06 PM

Now I think I have succeced to fix so that I can go in to the orginal kernel.

Hmm, maybe glibc-2.3.5-i486-2 is rotten!!! I will try to go back to 2.3.4 beacuse there are several other programs that has crash and all has somthing to do with glibc.

Now I'm back with only having the glibc problem not Segment problem so thx for helping me with that.

egag 07-20-2005 01:30 PM

maybe this can help you...

http://www.linuxquestions.org/questi...80#post1707580

egag

eXor 07-20-2005 01:55 PM

I have succeded to install glibc-2.3.5 again and my system is runnig but with all the errors I had at the beging.

Maybe glibc-2.3.5 is bad.

Get's error like this one
*** glibc detected *** double free or corruption (!prev): 0x082c1ed0 ***
[Wed Jul 20 20:54:30 2005] [notice] child pid 17587 exit signal Abort (6)


-----extra-----
I followed your guide and remove all with 2.3.5 and installed 2.3.4 and now everything seems to work.
Wonder wy 2.3.5 was so bad

-----sadly-----

I still get this error on my apache server

[Wed Jul 20 21:27:27 2005] [notice] child pid 1434 exit signal Abort (6)
*** glibc detected *** double free or corruption (!prev): 0x082c0fc0 ***
[Wed Jul 20 21:31:12 2005] [notice] child pid 1589 exit signal Abort (6)
[Wed Jul 20 21:31:50 2005] [notice] child pid 1432 exit signal Segmentation fault (11)
*** glibc detected *** double free or corruption (!prev): 0x082c1120 ***
[Wed Jul 20 21:32:05 2005] [notice] child pid 1591 exit signal Abort (6)


All times are GMT -5. The time now is 09:51 AM.