From nobody@FreeBSD.org  Wed Nov  5 10:19:38 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 11278106568F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Nov 2008 10:19:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 008488FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Nov 2008 10:19:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mA5AJbln031621
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 Nov 2008 10:19:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mA5AJbo5031620;
	Wed, 5 Nov 2008 10:19:37 GMT
	(envelope-from nobody)
Message-Id: <200811051019.mA5AJbo5031620@www.freebsd.org>
Date: Wed, 5 Nov 2008 10:19:37 GMT
From: "Eugene M. Zheganin" <emz@norma.perm.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wpa_supplicant crashes with an(4)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         128602
>Category:       bin
>Synopsis:       [an] wpa_supplicant(8) crashes with an(4)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 05 10:20:04 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Nov 05 18:27:47 UTC 2008
>Originator:     Eugene M. Zheganin
>Release:        7.1-PRERELEASE
>Organization:
Norma JSC.
>Environment:
FreeBSD airlan.norma.perm.ru 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Wed Nov  5 11:03:39 YEKT 2008     emz@freedom.norma.perm.ru:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
wpa_supplicant sig11-crashes with old, but still supported radio-adapter, Cisco 350 (802.11b). Problem persisted from 7.0-RELEASE.

===Cut===
%wpa_supplicant -d -ian0 -c/etc/wpa_supplicant.conf
Initializing interface 'an0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='salma'
Initializing interface (2) 'an0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:40:96:35:b2:8d
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
wpa_driver_bsd_del_key: keyidx=0
wpa_driver_bsd_del_key: keyidx=1
wpa_driver_bsd_del_key: keyidx=2
wpa_driver_bsd_del_key: keyidx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wpa_driver_bsd_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface an0
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Segmentation fault (core dumped)
===Cut==

Backtrace (wpa_supplicant is assembled with -g):
===Cut===
(gdb) bt
#0  0x08065390 in ?? ()
[...]
#5229 0x28356a4b in f_prealloc () from /lib/libc.so.7
Previous frame inner to this frame (corrupt stack?)
(gdb)
===Cut===
>How-To-Repeat:
Get a Cisco 350 card, try to use wpa_supplicant.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Nov 5 18:26:44 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128602 
>Unformatted:
