LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   ping : segmentation fault (https://www.linuxquestions.org/questions/linux-wireless-networking-41/ping-segmentation-fault-548214/)

mad_hatter 04-23-2007 01:56 AM

ping : segmentation fault
 
Hi All

Please can someone help me.

I am running SuSE 10.1.

When i try to ping, i get "Segmentation fault"
I can't even ping localhost but i can browse the net and receive mail.

I was trying to install a USB wireless device with ndiswrapper but have unsinstalled those drivers now.

could someone perhaps tell me how to fix this.
Thanks in advance.

nx5000 04-23-2007 05:14 AM

Try
1)
ldd /bin/ping
If you get some "not found" then its the cause.

2)
strace -f /bin/ping localhost
This will trace every operation and thus produce a lot of output, probably the last line where the segfault occurs can help.

mad_hatter 04-23-2007 06:14 AM

Thank you kindly for your reply

This is what i get...

Carl-LT:~ # ldd /bin/ping
linux-gate.so.1 => (0xffffe000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb7ebf000)
libc.so.6 => /lib/libc.so.6 (0xb7d9f000)
/lib/ld-linux.so.2 (0xb7eeb000)
Carl-LT:~ # strace -f /bin/ping localhost
execve("/bin/ping", ["/bin/ping", "localhost"], [/* 86 vars */]) = -1 ENOEXEC (Exec format error)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 6178 detached
Carl-LT:~ #

:confused: I'm kinda new to all this, could you perhaps explain what this means?

nx5000 04-23-2007 06:33 AM

Quote:

Originally Posted by mad_hatter
execve("/bin/ping", ["/bin/ping", "localhost"], [/* 86 vars */]) = -1 ENOEXEC (Exec format error)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 6178 detached
Carl-LT:~ #

:confused: I'm kinda new to all this, could you perhaps explain what this means?

ENOEXEC is the error. I'm a bit lost to explain what is happening.

So, before ndiswrapper it was working? You have to revert _all_ what you did.
Do you have something called binfmt installed? Try to remove it.
Probably some important things have been modified by this ndiswrapper.


No clue really why this ENOEXEC comes here on certain binary. You said other binaries were working right?

For additionnal info, can you give the result of this:
ls -la /bin/ping
mount | grep "/ "
ll -tr /lib/ | tail

These probably won't help but who knows..

auxsvr 04-24-2007 01:32 PM

Your ping binary is corrupted. You can restore it by reinstalling the iputils RPM package.

mad_hatter 04-25-2007 08:36 AM

Thanks alot guys. Your replies have been very helpful.
I sorted the problem out by reinstalling iputils.

LOL, but once i did that my wireless didnt want to work with ndiswrapper again. When i did get ndiswrapper working again, the segmentation fault came back.

Why cant we all just...GETALONG!!!

:cry:

auxsvr 04-25-2007 11:53 AM

What do you do in order to use ndiswrapper?

mad_hatter 04-26-2007 01:47 AM

I need to use ndiswrapper to load my netgear WG111T.

:cool:

auxsvr 04-26-2007 09:04 AM

I mean, you may be making some mistake when setting up ndiswrapper. How do you set it up?

mad_hatter 05-02-2007 02:45 AM

I'm doing this from memory, so lets see...


ndiswrapper -i <driver name>.inf

ndiswrapper -l (to check)

modprobe ndiswrapper

then i can see the device is activated cuz the light comes on.

but then when i try to connect to the network available, the knetwork manager get's to 28% and them bombs out. I've yet to sit and mess around with this some more....

R00T.OSIRIS 05-02-2007 04:16 AM

What version ndiswrapper are you using?
You can try downloading and installing the newest version.

mad_hatter 05-02-2007 05:12 AM

I'll google to see what the latest version is, but this is the one i have.

Carl-LT:~ # rpm -q ndiswrapper
ndiswrapper-1.10-19
Carl-LT:~ #



Carl-LT:~ # ndiswrapper -v
utils version: 1.7
driver version: 1.10
vermagic: 2.6.16.21-0.13-bigsmp SMP 586 REGPARM gcc-4.1
Carl-LT:~ #

R00T.OSIRIS 05-02-2007 05:13 AM

1.43
http://sourceforge.net/project/showf...group_id=93482
You might want to erase your ndiswrapper first, and make sure ping works. Then compile the ndiswrapper source(assuming you installed c compilers)

mad_hatter 05-02-2007 05:16 AM

i'll google the latest version, but this is what i have.

Carl-LT:~ # rpm -q ndiswrapper
ndiswrapper-1.10-19
Carl-LT:~ #


All times are GMT -5. The time now is 09:59 AM.