LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-23-2007, 01:56 AM   #1
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Rep: Reputation: 0
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.
 
Old 04-23-2007, 05:14 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.
 
Old 04-23-2007, 06:14 AM   #3
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
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:~ #

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

Last edited by mad_hatter; 04-23-2007 at 06:17 AM.
 
Old 04-23-2007, 06:33 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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:~ #

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..

Last edited by nx5000; 04-23-2007 at 06:34 AM.
 
Old 04-24-2007, 01:32 PM   #5
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
Your ping binary is corrupted. You can restore it by reinstalling the iputils RPM package.
 
Old 04-25-2007, 08:36 AM   #6
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
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!!!

 
Old 04-25-2007, 11:53 AM   #7
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
What do you do in order to use ndiswrapper?
 
Old 04-26-2007, 01:47 AM   #8
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I need to use ndiswrapper to load my netgear WG111T.

 
Old 04-26-2007, 09:04 AM   #9
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
I mean, you may be making some mistake when setting up ndiswrapper. How do you set it up?
 
Old 05-02-2007, 02:45 AM   #10
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
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....
 
Old 05-02-2007, 04:16 AM   #11
R00T.OSIRIS
Member
 
Registered: Dec 2006
Location: -84.706059324915, -62.4843750666430
Distribution: Gentoo, FreeBSD, OpenSuSe
Posts: 51

Rep: Reputation: 15
What version ndiswrapper are you using?
You can try downloading and installing the newest version.
 
Old 05-02-2007, 05:12 AM   #12
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
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:~ #
 
Old 05-02-2007, 05:13 AM   #13
R00T.OSIRIS
Member
 
Registered: Dec 2006
Location: -84.706059324915, -62.4843750666430
Distribution: Gentoo, FreeBSD, OpenSuSe
Posts: 51

Rep: Reputation: 15
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)

Last edited by R00T.OSIRIS; 05-02-2007 at 05:18 AM.
 
Old 05-02-2007, 05:16 AM   #14
mad_hatter
LQ Newbie
 
Registered: Apr 2007
Posts: 19

Original Poster
Rep: Reputation: 0
i'll google the latest version, but this is what i have.

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


Reply

Tags
fault, ping, segmentation fault



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
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation fault alnreddy Linux - Software 1 11-05-2005 08:54 PM
Help! Segmentation Fault qieqie Linux - Newbie 3 06-03-2005 09:10 PM
why am I getting 'segmentation fault' with this ? purpleburple Programming 4 09-04-2002 06:50 PM
segmentation fault ! wwnn1 Programming 7 06-18-2002 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration