LinuxQuestions.org
Register a domain and help support LQ
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-01-2003, 12:19 PM   #1
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Rep: Reputation: 0
Segmentation Fault [rpm is not working]


Hi there,
I tried to upgrade the latest kernal for redhat 7.3 and recieved a segmentation fault.
"/bin/rpm recieved a segmentation fault"

Right now i cannot install ne new software. when i try to install or remove nething it give me segmentation fault.

rpm -e webmin-1.110-1
Segmentation fault

ne body have ne idea???
 
Old 12-01-2003, 03:27 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

It sounds like the 'rpm' program is corrupt.

This is a bit of a problem, because the rpm system is installed from an rpm itself by the RedHat installer.

Unless you want to reinstall your system, you could try to find the source for the rpm system and install from there.

http://www.rpm.org

Dave
 
Old 12-02-2003, 11:31 AM   #3
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
All rpm source files are in .rmp format; i cannot install them until i get .tar.gz format for the rpm source...

From where can i get .tar.gz format source?

Last edited by saeed; 12-02-2003 at 11:37 AM.
 
Old 12-02-2003, 12:33 PM   #4
shobhit
Member
 
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Rep: Reputation: 15
you can install from the rpm source file.
the directory generally contains a 'configure' script, which tries to determine your hardware and the software (os) and stuff. then it generates some makefiles depending on ur particular system.
u can then run 'make' and that should install the software.
u can read the 'README' file and 'INSTALL' file in the source directory for more detail.
 
Old 12-03-2003, 09:05 AM   #5
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
problem getting on nerves

I tried to run the following
rpm -Uvh rpm-4.1.1-1.7x.i386.rpm

which gives me following error messages:-

root@host15 [~]# rpm -Uvh rpm-4.1.1-1.7x.i386.rpm
error: failed dependencies:
popt = 1.7.1 is needed by rpm-4.1.1-1.7x
rpm = 4.0.4 is needed by rpm-python-4.0.4-7x.18
rpm = 4.0.4 is needed by rpm-devel-4.0.4-7x.18
rpm = 4.0.4 is needed by rpm-build-4.0.4-7x.18
librpm-4.0.4.so is needed by ucd-snmp-utils-4.2.5-8.73.1
librpm-4.0.4.so is needed by ucd-snmp-4.2.5-8.73.1
librpm-4.0.4.so is needed by rpm-python-4.0.4-7x.18
librpm-4.0.4.so is needed by apt-0.5.5cnc5-fr0.rh73.2
librpm-4.0.4.so is needed by rpm-build-4.0.4-7x.18
librpmbuild-4.0.4.so is needed by rpm-build-4.0.4-7x.18
librpmdb-4.0.4.so is needed by ucd-snmp-utils-4.2.5-8.73.1
librpmdb-4.0.4.so is needed by ucd-snmp-4.2.5-8.73.1
librpmdb-4.0.4.so is needed by rpm-python-4.0.4-7x.18
librpmdb-4.0.4.so is needed by apt-0.5.5cnc5-fr0.rh73.2
librpmdb-4.0.4.so is needed by rpm-build-4.0.4-7x.18
librpmio-4.0.4.so is needed by ucd-snmp-utils-4.2.5-8.73.1
librpmio-4.0.4.so is needed by ucd-snmp-4.2.5-8.73.1
librpmio-4.0.4.so is needed by rpm-python-4.0.4-7x.18
librpmio-4.0.4.so is needed by apt-0.5.5cnc5-fr0.rh73.2
librpmio-4.0.4.so is needed by rpm-build-4.0.4-7x.18

other thing which i have examined yesterday night. that i can see many increasing processess showing by top command. I dono what's going on.. is it something like hack or what.. here is the top command info:-

706 processes: 702 sleeping, 1 running, 3 zombie, 0 stopped
CPU0 states: 0.4% user, 0.4% system, 0.0% nice, 98.2% idle
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
CPU2 states: 0.4% user, 8.3% system, 0.0% nice, 90.2% idle
CPU3 states: 0.3% user, 7.0% system, 0.0% nice, 92.1% idle
Mem: 4001556K av, 3299988K used, 701568K free, 0K shrd, 164724K buff
Swap: 2096440K av, 0K used, 2096440K free 2677844K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
686 kmjanysh 15 0 4104 4104 1752 S 8.4 0.1 0:00 php
8 root 11 0 0 0 0 SW 7.3 0.0 8:43 kscand
687 mysql 17 0 29992 29M 2168 S 1.5 0.7 0:00 mysqld
659 root 16 0 1372 1372 788 R 1.3 0.0 0:00 top
1 root 8 0 476 476 424 S 0.0 0.0 0:04 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 1:00 ksoftirqd_CPU0
4 root 18 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU1
5 root 19 19 0 0 0 SWN 0.0 0.0 0:02 ksoftirqd_CPU2
6 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU3
7 root 9 0 0 0 0 SW 0.0 0.0 0:00 kswapd
9 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
10 root 9 0 0 0 0 SW 0.0 0.0 0:03 kupdated
11 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 mdrecoveryd
19 root 9 0 0 0 0 SW 0.0 0.0 0:55 kjournald
98 root 9 0 0 0 0 SW 0.0 0.0 0:00 khubd
258 root 9 0 0 0 0 SW 0.0 0.0 0:00 kjournald
259 root 9 0 0 0 0 SW 0.0 0.0 0:13 kjournald
260 root 9 0 0 0 0 SW 0.0 0.0 0:00 kjournald
1567 root 9 0 560 560 476 S 0.0 0.0 0:06 syslogd
1572 root 9 0 440 440 384 S 0.0 0.0 0:00 klogd
7619 root 9 0 1240 1240 1032 S 0.0 0.0 0:00 sshd
7653 root 8 0 808 808 660 S 0.0 0.0 0:00 xinetd
7679 root 8 0 2556 2556 1364 S 0.0 0.0 0:00 chkservd
7688 mailnull 8 0 1632 1628 1344 S 0.0 0.0 0:03 sendmail
7690 mailnull 9 0 1604 1600 1324 S 0.0 0.0 0:00 sendmail
7694 root 8 0 17092 16M 1668 S 0.0 0.4 0:00 spamd

i have checked the error logs for apache... there is nothing strange.

I am messed up.... in this server i have almost 200 domains....
please nebody help me to sort out this problem
 
Old 12-13-2003, 08:20 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Is this a situation that started recently? For no apparent reason, or after installing (or trying to install) software? Did you remove temporary files from the /var/lib/rpm dir? Try running "rpm" from your rescue cdr. The fact rpm segfaults could be due to a corrupt database, then you have to (backup the files and) rebuild the database. If it still fails, run any install, but with the "-v -v" flags for verbosity and post the output.
 
Old 01-27-2004, 11:03 PM   #7
coollink
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Segfault during Install of Cheops

root@laptop:/home/Downloads# rpm -i -v -v cheops-ng-static-0.1.12-1.i386.rpm
D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: Expected size: 2247435 = lead(96)+sigs(160)+pad(0)+data(2247179)
D: Actual size: 2247435
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: locked db index /var/lib/rpm/Packages
D: found 0 source and 1 binary packages
D: opening db index /var/lib/rpm/Depends create mode=0x42
D: NO A rpmlib(PayloadFilesHavePrefix) <= 4.0-1 B rpmlib(VersionedDependencies) = 3.0.3-1
D: NO A rpmlib(PayloadFilesHavePrefix) <= 4.0-1 B rpmlib(CompressedFileNames) = 3.0.4-1
D: NO A rpmlib(PayloadFilesHavePrefix) <= 4.0-1 B rpmlib(PayloadIsBzip2) = 3.0.5-1
D: YES A rpmlib(PayloadFilesHavePrefix) <= 4.0-1 B rpmlib(PayloadFilesHavePrefix) = 4.0-1
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: NO A rpmlib(CompressedFileNames) <= 3.0.4-1 B rpmlib(VersionedDependencies) = 3.0.3-1
D: YES A rpmlib(CompressedFileNames) <= 3.0.4-1 B rpmlib(CompressedFileNames) = 3.0.4-1
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: opening db index /var/lib/rpm/Conflictname create mode=0x42
D: ========== recording tsort relations
D: ========== tsorting packages
D: 0 (1,1) cheops-ng-static-0.1.12-1
D: ========== successors only (presentation order)
D: installing binary packages
D: getting list of mounted filesystems
D: opening db index /var/lib/rpm/Name create mode=0x42
D: opening db index /var/lib/rpm/Basenames create mode=0x42
D: opening db index /var/lib/rpm/Group create mode=0x42
D: opening db index /var/lib/rpm/Requirename create mode=0x42
D: opening db index /var/lib/rpm/Providename create mode=0x42
D: opening db index /var/lib/rpm/Triggername create mode=0x42
Preparing packages for installation...
D: Expected size: 2247435 = lead(96)+sigs(160)+pad(0)+data(2247179)
D: Actual size: 2247435
D: package: cheops-ng-static-0.1.12-1 files test = 0
D: file: /usr/bin/cheops-agent action: create
D: file: /usr/bin/cheops-ng action: create
D: file: /usr/share/cheops-ng/pixmaps/atlas800.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/bsd.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/cheops-ng.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/cheops.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/cisco.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/desk.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/desktop.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/hp.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/hub.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/ibm.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/icon.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/linux.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/mac.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/macintosh.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/macosx.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/netopia.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/netvanta.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/novell.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/printer.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/qnx.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/redback.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/router.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/sco.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/sgi.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/solaris.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/unix.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/unknown.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/vms.xpm action: create
D: file: /usr/share/cheops-ng/pixmaps/windows.xpm action: create
D: file: /usr/share/gnome/apps/Internet/cheops-ng.desktop action: create
D: file: /usr/share/gnome/ximian/Programs/Internet/cheops-ng.desktop action: create
D: file: /usr/share/pixmaps/cheops-ng.xpm action: create
D: running preinstall script (if any)
Segmentation fault
root@laptop:/home/Downloads#

____________________________

thats the output,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:56 AM
rpm -anything gives Segmentation Fault dtashima Red Hat 8 12-02-2004 11:21 AM
RPM segmentation fault gaurava99 Linux - Software 1 07-16-2004 09:34 AM
Segmentation fault using RPM janisj Linux - General 3 05-11-2004 08:35 AM
# rpm --rebuilddb -- Segmentation fault russell Linux - Software 4 08-14-2001 03:39 AM


All times are GMT -5. The time now is 06: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration