seg fault when interface does not exist

Jouni Malinen jkmaline at cc.hut.fi
Sun Dec 17 23:53:48 EST 2006


On Mon, Dec 18, 2006 at 07:15:41AM +1000, Kel Modderman wrote:

> wpa_supplicant currently crashes hard if the interface to be used is 
> non-existant (or a typo is made).

What do you mean with "currently"? Which version are you using? I cannot
reproduce this with either the 0.5.x or 0.6.x branch..

> Wouldn't it be nicer if it exited gracefully (with a hint) before trying to 
> configure the non-existant interface?

Crashing is of course not the expected behavior. The driver wrappers
could be modified to verify that the interface exists before trying to
use it, but at least driver_wext output is quite clear on the interface
really not being there no matter how hard one tries to use it.. ;-)

$ sudo ./wpa_supplicant -Dwext -isofof -c psk-test.conf
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIFFLAGS]: No such device
Could not set interface 'sofof' UP
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 7 value 0x0 - Failed to disable WPA in the driver.
ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 5 value 0x0 - ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAP]: No such device
ioctl[SIOCGIFFLAGS]: No such device

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list