Segmentation Fault when using external RADIUS server
Ray Overland
roverland
Thu Jan 31 07:33:56 PST 2008
Hi,
I am hoping someone can help me with the problem I am seeing. I am getting a seg fault
when I have an xscale based AP set up running hostapd-0.6.2. I have freeradius 1.1.4
running on FC6, and I know that it works with hostapd-0.5.9, however I have to use 0.6.2,
so I need to fix this problem, one way or another.
I noticed that I would infrequently get a seg fault when the server was available to the
AP, but then I disconnected the freeradius server, and the seg fault shows up every time,
very reproducible.
I struggled to find a problem with the configuration, hoping for a work around, but no luck.
The supplicant is wpa_supplicant 0.6.2, and both the AP and the STA are on xscale
platforms running Snapgear 3.4 (linux 2.6.17) with madwifi-ng r2708.
Here is the debug output:
# ath0: STA 00:15:6d:63:4d:b7 IEEE 802.11: associated
New STA
ath0: STA 00:15:6d:63:4d:b7 WPA: event 1 notification
madwifi_del_key: addr=00:15:6d:63:4d:b7 key_idx=0
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: start authentication
EAP: Server state machine created
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_KEY_TX entering state NO_KEY_TRANSMIT
IEEE 802.1X: 00:15:6d:63:4d:b7 KEY_RX entering state NO_KEY_RECEIVE
IEEE 802.1X: 00:15:6d:63:4d:b7 CTRL_DIR entering state IN_OR_BOTH
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state IDLE
IEEE 802.1X: 00:15:6d:63:4d:b7 KEY_RX entering state NO_KEY_RECEIVE
IEEE 802.1X: 00:15:6d:63:4d:b7 CTRL_DIR entering state FORCE_BOTH
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 KEY_RX entering state NO_KEY_RECEIVE
ath0: STA 00:15:6d:63:4d:b7 WPA: start authentication
WPA: 00:15:6d:63:4d:b7 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:15:6d:63:4d:b7 key_idx=0
WPA: 00:15:6d:63:4d:b7 WPA_PTK_GROUP entering state IDLE
WPA: 00:15:6d:63:4d:b7 WPA_PTK entering state AUTHENTICATION
WPA: 00:15:6d:63:4d:b7 WPA_PTK entering state AUTHENTICATION2
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state DISCONNECTED
madwifi_set_sta_authorized: addr=00:15:6d:63:4d:b7 authorized=0
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: unauthorizing port
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state RESTART
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state SELECT_ACTION
EAP: getDecision: no identity known yet -> CONTINUE
EAP: EAP entering state PROPOSE_METHOD
EAP: getNextMethod: vendor 0 type 1
EAP: EAP entering state METHOD_REQUEST
EAP: building EAP-Request: Identifier 41
EAP: EAP entering state SEND_REQUEST
EAP: EAP entering state IDLE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state CONNECTING
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state AUTHENTICATING
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state REQUEST
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: Sending EAP Packet (identifier 41)
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 14 bytes from 00:15:6d:63:4d:b7
IEEE 802.1X: version=1 type=0 length=10
EAP: code=2 identifier=41 length=10
(response)
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: received EAP packet (code=2 id=41 len=10) from
STA: EAP Response-Identity (1)
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state RESPONSE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
EAP: EAP entering state RECEIVED
EAP: parseEapResp: rxResp=1 respId=41 respMethod=1 respVendor=0 respVendorMethod=0
EAP: EAP entering state INTEGRITY_CHECK
EAP: EAP entering state METHOD_RESPONSE
EAP-Identity: Peer identity - hexdump_ascii(len=5):
66 72 65 73 68 fresh
EAP: EAP entering state SELECT_ACTION
EAP: getDecision: -> PASSTHROUGH
EAP: EAP entering state INITIALIZE_PASSTHROUGH
EAP: EAP entering state AAA_REQUEST
EAP: EAP entering state AAA_IDLE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: STA identity 'fresh'
Encapsulating EAP message into a RADIUS packet
ath0: RADIUS Sending RADIUS message to authentication server
ath0: RADIUS Next RADIUS client retransmit in 3 seconds
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
ath0: STA 00:15:6d:63:4d:b7 RADIUS: Resending RADIUS message (id=6)
ath0: RADIUS Next RADIUS client retransmit in 6 seconds
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
ath0: STA 00:15:6d:63:4d:b7 RADIUS: Resending RADIUS message (id=6)
ath0: RADIUS Next RADIUS client retransmit in 12 seconds
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
ath0: STA 00:15:6d:63:4d:b7 RADIUS: Resending RADIUS message (id=6)
ath0: RADIUS Next RADIUS client retransmit in 24 seconds
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 - aWhile --> 0
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state TIMEOUT
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state ABORTING
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state INITIALIZE
ath0: STA 00:15:6d:63:4d:b7 IEEE 802.1X: aborting authentication
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state RESTART
IEEE 802.1X: 00:15:6d:63:4d:b7 BE_AUTH entering state IDLE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state SELECT_ACTION
EAP: getDecision: -> PASSTHROUGH
EAP: EAP entering state INITIALIZE_PASSTHROUGH
EAP: EAP entering state AAA_IDLE
IEEE 802.1X: 00:15:6d:63:4d:b7 AUTH_PAE entering state CONNECTING
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:15:6d:63:4d:b7 REAUTH_TIMER entering state INITIALIZE
Segmentation fault
Thx,
Ray
More information about the Hostap
mailing list