LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-09-2008, 07:57 AM   #1
serge
Member
 
Registered: Apr 2007
Posts: 45

Rep: Reputation: 15
Segmentation fault and bus error on slow system


Presently I have a server running Centos 4.6

All of a sudden the server started responding slow.
I disconnected my putty session and reconnected.
It took a while before I got the login prompt.
When I try to run "yum upgrade" all I get "segemntation fault".
When I try to run "rpm" I get the same.

So I downloaded the rpm source from rpm.org.

When I try to unpack it with "tar xzvf rpm-4.4.2.2.tar.gz", it waits a while and exits with just "bus error"
I tried "man yum" that started with "Formatting page" and then.... nothing

Where do I need to look what is the source of the problem?

I already discovered a few things.

Bus error has to do with the kernel.
Segmentation fault might indicate a conflict of version between libraries or libraries and application.
Either might indicate a hardware error (how do I test for it)

When I run "strace yum upgrade" the part with the segmentation fault is:
Code:
open("/lib/libselinux.so.1", O_RDONLY)  = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340pO\0004\0\0\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=56336, ...}) = 0
old_mmap(0x4f5000, 56176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x4f5000
old_mmap(0x502000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xd000) = 0x502000
close(5)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
When I run "tar xzvf rpm-4.4.2.2.tar.gz" the part with the bus error is:
Code:
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=48505456, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d6c000
close(3)                                = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
geteuid32()                             = 0
umask(0)                                = 022
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f6cae8) = 30000
close(4)                                = 0
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, "rpm-4.4.2.2/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 10240) = 10240
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++

Thanks in advance

Last edited by serge; 01-09-2008 at 08:01 AM.
 
Old 01-09-2008, 10:04 AM   #2
serge
Member
 
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
When I run "prelink -all" I get:
Code:
prelink: /usr/lib/librpmdb-4.3.so: bogus sh_link value 15452
prelink: /usr/bin/hpftodit: Dependency tracing failed
prelink: /usr/bin/makeinfo: bogus sh_link value 1935631209
prelink: /usr/bin/mysql_upgrade: Could not read .interp section
prelink: /sbin/mgetty: Could not read .interp section
prelink: /sbin/iptables-save: PT_INTERP segment not corresponding to .interp section
prelink: /sbin/depmod: PT_INTERP segment not corresponding to .interp section
prelink: /sbin/quotacheck: PT_INTERP segment not corresponding to .interp section
prelink: /usr/sbin/ss: Could not read .interp section
prelink: /usr/lib/librpmio-4.3.so: bogus sh_link value 1882156141
Segmentation fault
When I run "ldd /bin/rpm" I get:
Code:
        librpm-4.3.so => /usr/lib/librpm-4.3.so (0x00694000)
        librpmdb-4.3.so => /usr/lib/librpmdb-4.3.so (0x005a9000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x004f5000)
        librpmio-4.3.so => /usr/lib/librpmio-4.3.so (0x00551000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0x00547000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0x004c5000)
        libbeecrypt.so.6 => /usr/lib/libbeecrypt.so.6 (0x00519000)
        libm.so.6 => /lib/tls/libm.so.6 (0x0048e000)
        libdl.so.2 => /lib/libdl.so.2 (0x00488000)
        librt.so.1 => /lib/tls/librt.so.1 (0x00837000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00505000)
        libz.so.1 => /usr/lib/libz.so.1 (0x004b3000)
        libbz2.so.1 => /usr/lib/libbz2.so.1 (0x007f4000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0035a000)
        /lib/ld-linux.so.2 (0x00340000)
 
Old 01-21-2008, 08:36 AM   #3
serge
Member
 
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
I have 'resolved' the error. After a reboot all I got was media access errors, so it was probably related to harddrive failure. Luckily I was able to use a knoppix CD to copy all important files to another server which now acts as a temporary replacement
 
  


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
getting segmentation fault error sanjuonline1 Programming 2 02-14-2007 05:27 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
Segmentation Fault ERROR bluechicken Programming 8 06-30-2005 07:02 AM
Segmentation Fault Error ashwinipahuja Programming 1 03-29-2004 02:09 PM
Getting segmentation fault error with Xmms Unreal7000 Linux - Software 1 06-03-2003 08:43 PM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
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