You are not logged in.

#1 2014-02-06 14:32:55

byron3000
Member
Registered: 2014-02-06
Posts: 2

hostapd v2.1-1 - Segmentation fault (core dumped)

Hello,

I have been using the hostapd since long time ago, but after the last update hostapd v2.1-1 it stops to work.

It returns this message when I try to execute:

Command Line wrote:

root /etc/hostapd # hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Segmentation fault (core dumped)
root /etc/hostapd #

My configuration file hostapd.conf is:

hostapd.conf wrote:

interface=wlan0
driver=nl80211

logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

ssid=archie
country_code=ES
ieee80211d=1
hw_mode=g
channel=1

beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0

wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0

eapol_key_index_workaround=0
eap_server=0

own_ip_addr=127.0.0.1
wpa=2
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP

Thank you very much for your help!

Byron

Offline

#2 2014-02-06 14:37:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

Please edit your post.
When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#3 2014-02-07 03:38:19

ttys0
Member
Registered: 2014-02-07
Posts: 1

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

I experienced the same issue with hostapd 2.1.

Feb  6 21:00:23 frodo systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Feb  6 21:00:23 frodo systemd[1]: hostapd.service: main process exited, code=dumped, status=11/SEGV
Feb  6 21:00:23 frodo systemd[1]: Unit hostapd.service entered failed state.

Fishing out and installing the 2.0 version from /var/cache/pacman/pkg got me back up and running.

Last edited by ttys0 (2014-02-07 03:38:38)

Offline

#4 2014-02-11 22:24:20

eomanis
Member
Registered: 2013-04-17
Posts: 60

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

Same here, the update from 2.0 to 2.1 broke my wireless access point.

hostapd output:

[root@accesspoint ~]# hostapd -dd /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: interface wlan1 in phy phy1
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x15c24f0
nl80211: Register frame type=0xb0 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0x0 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0x20 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0xa0 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0xc0 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0xd0 nl_handle=0x15c24f0 match=
nl80211: Register frame type=0x40 nl_handle=0x15c24f0 match=
nl80211: Interface wlan1 is in bridge br0
nl80211: Add own interface ifindex 5
nl80211: Add own interface ifindex 4
phy: phy1
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination
Successfully replaced leftover ctrl_iface socket '/var/run/hostapd/wlan1'
wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code DE 
Continue interface setup after channel list update
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
Segmentation fault (core dumped)

/etc/hostapd/hostapd.conf

# ==== NETWORK INTERFACES ============================

interface=wlan1
bridge=br0


# ==== DRIVERS =======================================

# "Generic" driver
driver=nl80211


# ==== BASIC ACCESS POINT SETTINGS ===================

ssid=XXXXXXXXXXXXXXXXXXXXXX
channel=1
hw_mode=g

country_code=DE
ieee80211d=1

wme_enabled=1
ieee80211n=1


# ==== CONTROL PROGRAM ACCESS ========================

# Control program access
ctrl_interface=/var/run/hostapd
# Only allow access by root
ctrl_interface_group=0


# ==== DEVICE CONFIGURATIONS =========================

# Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287]
# Atheros Communications, Inc. AR9271 802.11n (TP-Link TL-WN722N)
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][RX-STBC1][DSSS_CCK-40]

# Pandaboard onboard wireless NIC
#ht_capab=[SMPS-STATIC][GF][SHORT-GI-20][RX-STBC1]
# The above config appears to be causing problems with some devices.
#ht_capab=[SHORT-GI-20][RX-STBC1]


# ==== AUTHENTICATION AND ENCRYPTION =================

macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=XXXXXXXXXXXXXXXXXXXXXX
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

This is a simple bridged setup, where there is a network bridge over eth0 and the wireless NIC.
Technically the netctl bridge setup just adds eth0 to the bridge, and hostapd itself adds its NIC when it starts up.
The eth0 part of the bridge still works flawlessly.

hostapd packages:

[root@accesspoint ~]# ls -la /var/cache/pacman/pkg | grep hostapd
-rw-r--r-- 1 root root   219504 Jan  1  2000 hostapd-2.0-6-armv7h.pkg.tar.xz
-rw-r--r-- 1 root root   243440 Feb  4 22:09 hostapd-2.1-1-armv7h.pkg.tar.xz

2.0.6 works, 2.1.1 doesn't.

Please don't bash me for posting this here despite this being an Arch Linux ARM platform, chances are that this problem is not architecture-dependent.
Output of uname -a:

Linux accesspoint 3.7.10-9-ARCH #1 SMP PREEMPT Thu Oct 17 22:43:17 CDT 2013 armv7l GNU/Linux

Since the pandaboard onboard wireless NIC is problematic with some wireless devices, this setup uses an USB dongle.
Corresponding output from lsusb:

Bus 001 Device 004: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n

edit: Whoops, I copied the wrong lsusb row.

Last edited by eomanis (2014-02-11 22:40:46)

Offline

#5 2014-02-12 15:28:25

Lurkos
Member
Registered: 2014-02-12
Posts: 2

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

Same problem here.
Reverting back to 2.0.6 fixes the issue.

Offline

#6 2014-02-20 06:42:50

2bluesc
Member
Registered: 2014-02-18
Posts: 10
Website

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

hostapd v2.1-2 affected me as well.  Reverting back to 2.0.6 and everything was well again.

Offline

#7 2014-03-05 23:56:11

PreparationH67
Member
From: Chicago IL
Registered: 2010-07-28
Posts: 40

Re: hostapd v2.1-1 - Segmentation fault (core dumped)

I got hit by this too on the current version 2.1-2, I made a PGKBUILD for the old version and Im planning on uploading it to the AUR since I didnt have the old one cached (fresh install) and I didnt see one for this on their yet. Hopefully it will be made obsolete quickly.


EDIT:
Here it is https://aur.archlinux.org/packages/hostapd-stable/

Last edited by PreparationH67 (2014-03-10 14:37:03)

Offline

Board footer

Powered by FluxBB