Hai all,
I have a machine running centos3.4, once in a while trying to run yum, i got a segmentation fault. Anyone could give me an advice as im already runnig the latest patches etc. I had already checked the harddrive but it give out no error results.
Has anyone ever come across the segmentation problem in yum. Or any advice in troubleshooting it ?
Thanks
On Tue, 2005-05-10 at 10:14 +0800, Badli Al Rashid wrote:
I have a machine running centos3.4, once in a while trying to run yum, i got a segmentation fault. Anyone could give me an advice as im already runnig the latest patches etc. I had already checked the harddrive but it give out no error results.
Has anyone ever come across the segmentation problem in yum. Or any advice in troubleshooting it ?
strace is your friend.
I have a machine running centos3.4, once in a while trying to run yum, i got a segmentation fault. Anyone could give me an advice as im already runnig the latest patches etc. I had already checked the harddrive but it give out no error results.
I've had a problem like this with yum when I installed a copy of Brightmail and Sun Messaging Server on the machine and ldconfig path was changed to include those directories "before" /usr/lib.
1) ldd the binary and make sure all the correct libs are being used 2) Run yum under gdb and send us the backtrace 3) As someone pointed, send/post the log from: strace yum update
<quote who="bruno.s.delbono@mail.ac">
I've had a problem like this with yum when I installed a copy of Brightmail and Sun Messaging Server on the machine and ldconfig path was changed to include those directories "before" /usr/lib.
hai i didnt install any other software yet for the machine; it's just running a vanilla centos 3.4 installation.
- ldd the binary and make sure all the correct libs are being used
it just gives the following output when i run "ldd /usr/bin/yum" not a dynamic excutable
- Run yum under gdb and send us the backtrace
how do i run yum under gdb ? and send you the backtrace
- As someone pointed, send/post the log from: strace yum update
did "strace yum update > /tmp/strace.log" as root but it does not send the output of strace to the logfile.
the segmentation fault only occured yesterday night, but when i had rebooted the machine the segmentation fault was no more. Im sorry but im not a programmer by profession.
<quote who="Badli Al Rashid">
- As someone pointed, send/post the log from: strace yum update
did "strace yum update > /tmp/strace.log" as root but it does not send the output of strace to the logfile.
the segmentation fault only occured yesterday night, but when i had rebooted the machine the segmentation fault was no more. Im sorry but im not a programmer by profession.
sorry manage to get the strace output
Gathering header information file(s) from server(s) Server: CentOS-3 - Addons Server: CentOS-3 - Base Server: CentOS-3 - Extras Server: CentOS-3 - Updates Finding updated packages Downloading needed headers No actions to take
Badli Al Rashid wrote:
the segmentation fault only occured yesterday night, but when i had rebooted the machine the segmentation fault was no more. Im sorry but im not a programmer by profession.
sorry manage to get the strace output
That's not the output we we're looking for. strace should be quite verbose....
strace yum update > /tmp/strace.log 2>&1
or alternatively:
gdb `which strace` ... gdb) r update ... ...Segfault.. gdb) bt
PS - Please provide more details on what is happening. The log on the console, anything in /var/log/*, ldd on yum etc.
-Bruno