Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-09-2008, 07:57 AM   #1
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

When I try to unpack it with "tar xzvf rpm-", 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:
open("/lib/", 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-" the part with the bus error is:
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-\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
Registered: Apr 2007
Posts: 45

Original Poster
Rep: Reputation: 15
When I run "prelink -all" I get:
prelink: /usr/lib/ 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/ bogus sh_link value 1882156141
Segmentation fault
When I run "ldd /bin/rpm" I get:
Code: => /usr/lib/ (0x00694000) => /usr/lib/ (0x005a9000) => /lib/ (0x004f5000) => /usr/lib/ (0x00551000) => /usr/lib/ (0x00547000) => /usr/lib/ (0x004c5000) => /usr/lib/ (0x00519000) => /lib/tls/ (0x0048e000) => /lib/ (0x00488000) => /lib/tls/ (0x00837000) => /lib/tls/ (0x00505000) => /usr/lib/ (0x004b3000) => /usr/lib/ (0x007f4000) => /lib/tls/ (0x0035a000)
        /lib/ (0x00340000)
Old 01-21-2008, 08:36 AM   #3
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


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 / openSUSE 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 06:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration