Results 1 to 12 of 12
  1. #1

    all commands segmentation fault

    After resolving some issues and installing libgcc everything quit on the server I get segmentation fault on most commands ls, cp, vi, cat, tail all have the segmentation fault.

    While a few commands work like echo, pwd, iptables

    Any suggestions. I would just remove the libgcc but rpm doesn't work.
    Can't see logs cause vi, tail, cat doesn't work.

    Any suggestions on what to do?

  2. #2
    Join Date
    Apr 2009
    Location
    Islamabad , pakistan
    Posts
    128
    There could be many reasons for the segmentation fault error, it could be due to any mis-configured software or may be due to the hardware. In your case, I suspect that the installation of libgcc did not go seamless.
    Aun Muhammad Raza
    Linux System Administrator
    Personal Web: http://linuxpitstop.com

  3. #3
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Did you do anything with your glibc?
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  4. #4
    was reinstalling it with rpm after that everything is segmentation fault.

  5. #5
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Quote Originally Posted by hostcadet View Post
    was reinstalling it with rpm after that everything is segmentation fault.
    You likely installed the wrong rpm then. Your going to need to get this on a rescue cd and correct the bad libraries.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  6. #6
    ok can I do that from the rescue disk Im not sure how I would know just what the rpm i installed would change. What if I did the upgrade on the install disk would that work. I only am worried about the lvm thats where the vps's are sitting

  7. #7
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Don't do an upgrade.

    You need to get the rpm that matches your operating system and arch (64/32 bit).

    and

    rpm -ivh --force

    it.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  8. #8
    will rpm work from rescue as it doesn't now?

    Thanks.

  9. #9
    Join Date
    Aug 2003
    Location
    PA
    Posts
    1,914
    I'm not 100% sure such would work from all distributions, one would think so however as a proper rescue cd will boot from the CD and not the system (essentially a console only livecd). As such you should be able to use any core commands even if the hdd installed one(s) is/are broken. I know I myself keep a knoppix disc handy at all times as such never hurts and has proven very useful numerous times.

  10. #10
    ok i can test first its centos that the problem is with. I don't see though how I would of had the wrong file. I downloaded from a mirror. I have 5.3 installed and this is the dl location. http://mirror.5ninesolutions.com/cen...s/i386/CentOS/

  11. #11
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Quote Originally Posted by hostcadet View Post
    ok i can test first its centos that the problem is with. I don't see though how I would of had the wrong file. I downloaded from a mirror. I have 5.3 installed and this is the dl location. http://mirror.5ninesolutions.com/cen...s/i386/CentOS/
    It is hard to say what exactly happened without actually looking at it. You have corrupted libs and you need to replace them. Based on what you have told me, it sounds like your glibc libs are the ones at fault.

    If you get a centos cd in the server, you can boot into rescue mode, and then mount the drive, and reinstall the rpm(s), you will have to issue the --root=/drive/path flag.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  12. #12
    ok that is what I am going to remove and see if that makes it better. thanks!

Similar Threads

  1. Help: Segmentation fault
    By hbhb in forum Hosting Security and Technology
    Replies: 5
    Last Post: 11-11-2009, 02:36 AM
  2. Segmentation fault
    By latitude in forum Hosting Security and Technology
    Replies: 17
    Last Post: 11-08-2009, 08:09 PM
  3. Segmentation Fault????
    By pirateghost in forum Dedicated Server
    Replies: 0
    Last Post: 12-03-2008, 12:51 AM
  4. Segmentation fault - what is it?
    By SmilieBG in forum Hosting Security and Technology
    Replies: 7
    Last Post: 06-04-2006, 10:12 PM
  5. Perl: Segmentation Fault
    By vinod in forum Hosting Security and Technology
    Replies: 18
    Last Post: 11-26-2005, 05:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •