Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20131 - ps returns Bus error (core dumped) close(3) = 0 --- SIGBUS (Bus error) @ 0 (0) --- +++ killed by SIGBUS +++
Summary: ps returns Bus error (core dumped) close(3) = 0 --- SIGBUS (Bus error) @ 0 (0...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-28 17:31 UTC by Aaron Peterson
Modified: 2003-05-11 04:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Peterson 2003-04-28 17:31:34 UTC
my system has been acting really really wierd lately.

(since just before I switched to gaming r2 kernel)

I saw something called lscan-worm running on my computer the other day... I ran
updatedb and located it...  it was in /usr/lib/     and it was eating 97% of my
cpu.  I found it with TOP  ps didn't work...

I chmoded it to 0000 and then killed it and it died...

now... I find that ps doesn't work.

it returs Bus error (core dumped)

I have no idea what is happening to my system... 
it seems really really broken.

if somebody wants to have a look around it, I'll let them vnc into it with
supervision.
-alpeterson@wsu.edu 509 332 7697
Comment 1 Aaron Peterson 2003-04-29 00:59:41 UTC
aaron@escargot linux $ strace ps
execve("/bin/ps", ["ps"], [/* 44 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000
mprotect(0x40000000, 21406, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 28569, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=95316, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
old_mmap(NULL, 95316, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3)                                = 0
stat("/etc/ld.so.preload", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/etc/ld.so.preload", O_RDONLY)    = 3
old_mmap(NULL, 1, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x40020000
close(3)                                = 0
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
aaron@escargot linux $ strace ps
execve("/bin/ps", ["ps"], [/* 44 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000
mprotect(0x40000000, 21406, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 28569, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=95316, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
old_mmap(NULL, 95316, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3)                                = 0
stat("/etc/ld.so.preload", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/etc/ld.so.preload", O_RDONLY)    = 3
old_mmap(NULL, 1, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x40020000
close(3)                                = 0
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
aaron@escargot linux $
Comment 2 Aaron Peterson 2003-04-30 19:53:32 UTC
Anybody have good documentation for SIGBUS or close(3)
I googleth and maneth, yet reap no greater knoledge
Comment 3 Aaron Peterson 2003-05-02 16:46:16 UTC
RESOLVED

The cause was a miss configured kernel
it was compiled for a PIII 

It should have been compiled for athlonXP gcc >=3.1 or something like that

This solves the ps core dump problem, but konqueror is still a bitch.

Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-05-05 11:53:03 UTC
wrong kernel config causes this
Comment 5 Aaron Peterson 2003-05-11 04:32:45 UTC
actually... something that is very wierd...

now top doesn't work... it can't find libncurses

I'm wondering if I got hacked...
I found a wierd process by running top... and now top doesn't work...

bash-2.05b# top
top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory
bash-2.05b# exit
exit
bash-2.05b$ strace top
execve("/usr/bin/top", ["top"], [/* 48 vars */]) = 0
uname({sys="Linux", node="escargot", ...}) = 0
brk(0)                                  = 0x80559a4
open("/etc/ld.so.preload", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(3)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=99130, ...}) = 0
mmap2(NULL, 99130, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libproc.so.2.0.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240&\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=37984, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4002d000
mmap2(NULL, 49444, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002e000
mprotect(0x40037000, 12580, PROT_NONE)  = 0
mmap2(0x40037000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8) = 0x40037000
mmap2(0x40038000, 8484, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40038000
close(3)                                = 0
open("/lib/i686/mmx/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/mmx", 0xbfffe990)     = -1 ENOENT (No such file or directory)
open("/lib/i686/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbfffe990)         = -1 ENOENT (No such file or directory)
open("/lib/mmx/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/mmx", 0xbfffe990)          = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.4", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/i686/mmx/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/mmx", 0xbfffe990) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfffe990)     = -1 ENOENT (No such file or directory)
open("/usr/lib/mmx/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mmx", 0xbfffe990)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libncurses.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=57344, ...}) = 0
writev(2, [{"top", 3}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libncurses.so.4", 15}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory
) = 118
_exit(127)                              = ?
bash-2.05b$