Hi Eduard, On Saturday 16 December 2006 18:37, Eduard Bloch wrote: > I just discovered that current wpa_supplicant just segfaults if the > specified interface is not available at all. Here the log and strace > log, as executed by ifup: > > ifup eth1=kpax > 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 'eth1' UP > ioctl[SIOCGIWRANGE]: No such device > ioctl[SIOCGIFINDEX]: No such device > /etc/wpa_supplicant/functions.sh: line 160: 27028 Segmentation fault > start-stop-daemon --start --oknodo $DAEMON_VERBOSITY --name > $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE -- > $WPA_SUP_OPTIONS -D $WPA_SUP_DRIVER $WPA_SUP_CONF > wpa_supplicant: /sbin/wpa_supplicant daemon failed to start > run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return > code 1 > Internet Systems Consortium DHCP Client V3.0.4 > Copyright 2004-2006 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > > SIOCSIFADDR: No such device > eth1: ERROR while getting interface flags: No such device > eth1: ERROR while getting interface flags: No such device >
Confirmed. I've pinged upstream about this. Would be nicer if it had a sanity check before crashing and burning. $ sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext -ifoo0 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 'foo0' UP ioctl[SIOCGIWRANGE]: No such device ioctl[SIOCGIFINDEX]: No such device Segmentation fault Thanks, Kel. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

