Fwd: Segmentation Fault: madwifi and hostapd

Chad Meister chadlich
Sat Jan 28 14:51:49 PST 2006


Hi,

After further investigation, I found that hostapd Seg
faults at line 135 on of hostapd.c.  The line
presumabably enters a log message and reads:
vsyslog(priority, format, ap).  In this case:
priority = 6
format = 0x1004fdd8 "ath0: RADIUS %s server %s:%d"
ap = {{gpr = 8 '\b', fpr = 0 '\0', overflow_arg_area =
0x7f8002e8, reg_save_area = 0x7f800230}}

It then descends into libc.so.6 and gdb gives me the
following lines:
Program received signal SIGSEGV, Segmentation fault.
0x0fd9489c in strlen () from /lib/libc.so.6

This seems like a hostapd problem, rather than a
madwifi-ng driver problem.  Any ideas about what's
going on here?

Thanks,

Chad






--- Chad Meister <chadlich at yahoo.com> wrote:

> Date: Thu, 26 Jan 2006 18:05:56 -0800 (PST)
> From: Chad Meister <chadlich at yahoo.com>
> Subject: Segmentation Fault: madwifi and hostapd
> To: hostap at shmoo.com
> 
> Hi,
> 
> I've tried to resolve this problem for a week and
> I'm
> stumped.  I'm trying to setup a madwifi-ng AP using
> hostapd and a radius server.  I have the radius
> server
> up and running, but can't pull up hostapd without
> return a segmentation fault.
> 
> my_machine:/etc/hostapd# hostapd -d hostapd.conf
> Configuration file: hostapd.conf
> madwifi_set_iface_flags: dev_up=0
> Using interface ath0 with hwaddr 00:0f:cb:b1:bd:eb
> and
> ssid 'my_wpa_ap'
> ath0: RADIUS Authentication server 127.0.0.1:1812
> Segmentation fault
> 
> My hostapd.conf file contains the following lines
> only:
> ########
> interface=ath0
> driver=madwifi
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> debug=3
> dump_file=/tmp/hostapd.dump
> ssid=my_wpa_pa
> macaddr_acl=1
> accept_mac_file=/etc/hostapd/hostapd.accept
> deny_mac_file=/etc/hostapd/hostapd.deny
> auth_algs=1
> ieee8021x=1
> eapol_key_index_workaround=0
> eap_server=0
> own_ip_addr=192.168.1.1
> auth_server_addr=127.0.0.1
> auth_server_port=1812
> auth_server_shared_secret=radius_secret
> acct_server_addr=127.0.0.1
> acct_server_port=1813
> acct_server_shared_secret=radius_secret
> radius_server_auth_port=1812
> wpa=1
> wpa_key_mgmt=WPA-EAP
> wpa_pairwise=TKIP CCMP
> wpa_group_rekey=300
> wpa_gmk_rekey=6400
> #######
> 
> More information about my setup:
> 1) hostapd and freeradius will be running on the
> same
> machine
> 2) I'm running kernel 2.6.13.1
> 3) I have all of madwifi's relevant modules loaded
> 4) Hostapd works great in WPA-PSK mode
> 
> If anyone could help me get hostapd and madwifi up
> and
> running, with the above configuration, it would be
> great.  (I've already asked the madwifi mailing list
> to no avail).  If I can do more to track down the
> cause of the Segmentation fault, please let me know.
> 
> Thanks,
> 
> Chad 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Hostap mailing list