Segmentation fault when running hostapd

Jouni Malinen jkmaline
Wed Apr 28 18:51:31 PDT 2004


On Wed, Apr 28, 2004 at 01:47:13PM -0700, Chris Evans wrote:

> hostap-source to build the modules is Version: 1:0.1.3-1 
> with the same version number for hostapd. 

I was unable to reproduce this segfault with the CVS version of the
stable branch (which is supposed to be more or less identical to 0.1.3
release). Could you please try hostapd from the stable branch CVS
snapshot (http://hostap.epitest.fi/)?

> (gdb) run -B /etc/hostapd/hostapd.conf 
> Starting program: /home/cwevans/hostapd-0.1.3/hostapd -B 
> /etc/hostapd/hostapd.conf 
> Configuration file: /etc/hostapd/hostapd.conf 
> Opening raw packet socket for ifindex 7 
> Using interface wlan0ap with hwaddr 00:09:5b:67:84:60 and ssid 'SAE' 
> wlan0: RADIUS Authentication server [ip address of radius server]:1812 
> 
> Program received signal SIGSEGV, Segmentation fault. 
> 0x0ff2148c in strlen () from /lib/libc.so.6 
> (gdb) bt 
> #0  0x0ff2148c in strlen () from /lib/libc.so.6 
> #1  0x0fef036c in vfprintf () from /lib/libc.so.6 
> #2  0x0ff7bd44 in vsyslog () from /lib/libc.so.6 
> #3  0x10000f84 in hostapd_logger (hapd=0x10026c70, addr=0x0, module=4, 
> level=2,  
>     fmt=0x100165f4 "%s server %s:%d") at hostapd.c:128 
> #4  0x100109c4 in radius_change_server (hapd=0x10026c70, 
> nserv=0x100275f8, oserv=0x0, sock=9, auth=1) 
>     at radius_client.c:464 

Which version of glibc are you using? That hostapd_logger() call is
supposed to send "wlan0: RADIUS Authentication server <IP:port>" message
to syslog and so it does on my test system..


PS.

The configuration file you are using does not seem very useful. It is
instructing hostapd to generate a random encryption key, but since IEEE
802.1X is disabled, station will not get any information about the
selected key. The RADIUS authentication server is not used for anything
in that configuration.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list