LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-25-2004, 11:57 PM   #1
dtashima
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 9

Rep: Reputation: 0
Unhappy rpm -anything gives Segmentation Fault


Redhat 9ish.

Ok I've seen some threads around this topic, but all are slightly different than my situation.

I upgraded to glibc-2.3.2- and whenever I run rpm in a situation where dependencies are okay (i.e. when it is ready to install), I get a segmentation fault.

Everything else in the system (that I've tried) seems to work... it boots normally, and everything else seems to be running fine.

From what I glean from various postings, I need to upgrade rpm so that it jibes with the version of glibc I have.

I tried to boot via disk, and went into linux single user mode, but when I do rpm, it gives a segfault there, too!

How do I repair rpm long enough to repair rpm?

Thanks,
Dave
 
Old 10-26-2004, 12:10 AM   #2
dtashima
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Whoops didn't fill out the version of glibc.

It's: glibc-2.3.2-27.9.7

I did the i686 version of it.

rpm is: rpm-4.0.4-7x

Dave
 
Old 10-26-2004, 11:04 AM   #3
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Rescue mode on your first CD provides a working rescue environment including a working version of RPM. Notice that unless you chroot into your mounted system, you can use the rescue mode's rpm together with a proper --root parameter to install/upgrade packages in your mounted system.
 
Old 10-26-2004, 05:40 PM   #4
dtashima
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Sadly, I don't actually have a CD-ROM drive attached to the box.

Can I drop the image on the hard drive, and read it off from there?

Thanks,
Dave
 
Old 10-26-2004, 05:53 PM   #5
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
The important bit is to boot into it, not to read it.

Does rpm2cpio still work? If so, you can read out a known good version of an rpm package and overwrite your installed files with it.
 
Old 10-26-2004, 05:58 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I don't know if this is a good idea or not, but you can access the components of an rpm package file by using the Midnight Commander program (mc).
 
Old 10-26-2004, 10:36 PM   #7
dtashima
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Thumbs up

Wow, the rpm2cpio trick worked.

It wasn't easy, I had to do all sorts of copying of libraries by hand (including all those weird symbolic links), but in the end, it actually worked.

Many thanks!

Dave
 
Old 12-02-2004, 05:09 AM   #8
KaruppuSwamy.T
Member
 
Registered: Apr 2004
Location: Chennai, India
Distribution: Mandrake 10.0/Redhat 8.0/Ubuntu 5.04/Windows XP (SP2)
Posts: 30

Rep: Reputation: 15
I too have "Segmentation Fault"....

Dear Friends,

I am also facing the same problem of RPM segmentation fault after upgrading GLIBC. After booting with rescue CD, what I am supposed to do? I mean I have to reinstall the RPM package itself (rpm-xxxxx.rpm) or the software which I try to install in normal mode should be installed in this single user mode? If is second, for every software installation in future I have to do like this?

Regards
T.KaruppuSwamy
 
Old 12-02-2004, 10:21 AM   #9
dtashima
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
The former - you only have to update RPM and any dependent packages. The problem arises from an inconsistency between glibc and RPM, so once you get RPM up to date, you're good to go.

-Dave
 
  


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
Segmentation fault while running RPM KaruppuSwamy.T Linux - General 5 12-03-2004 05:56 AM
RPM segmentation fault gaurava99 Linux - Software 1 07-16-2004 08:34 AM
Segmentation fault using RPM janisj Linux - General 3 05-11-2004 07:35 AM
RPM install Segmentation fault netice Linux - Software 4 07-25-2003 11:27 AM
# rpm --rebuilddb -- Segmentation fault russell Linux - Software 4 08-14-2001 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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