问题描述
当我尝试将设备设为工作站模式时,出现了分段错误。我在设备上使用Access Point时没有任何问题。不确定工作站模式是什么问题。
工作站模式的步骤:
systemctl stop wpa_supplicant
systemctl disable wpa_supplicant
rfkill unblock all
wpa_supplicant -dd -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
错误:
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing i[ 55.077213] audit: type=1701 audit(1598596434.463:3): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=595 comm="wpa_supplicant" exe="/usr/sbin/wpa_supplicant" sig=11 res=1
interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=6):
73 6f 75 72 61 62 qwerty
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
Segmentation fault (core dumped)
我的/etc/wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="qwert"
psk="qwerty123"
}
以下是gdb的日志-
(gdb)运行-dd -Dnl80211 -iwlan0 -c / etc / wpa_supplicant.conf
Starting program: /usr/sbin/wpa_supplicant -dd -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=6):
73 6f 75 72 61 62 qwerty
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
Program received signal SIGSEGV,Segmentation fault.
_gcry_sha1_transform_armv8_ce () at ../../libgcrypt-1.8.0/cipher/sha1-armv8-aarch64-ce.S:119
119 ld1 {vK1.4s-vK4.4s},[x4] /* load K1,K2,K3,K4 */
(gdb)bt
#0 _gcry_sha1_transform_armv8_ce () at ../../libgcrypt-1.8.0/cipher/sha1-armv8-aarch64-ce.S:119
#1 0x0000fffff7db3150 in _gcry_md_block_write (context=0x5364f8,inbuf_arg=<optimized out>,inlen=<optimized out>)
at /usr/src/debug/libgcrypt/1.8.0-r0/libgcrypt-1.8.0/cipher/hash-common.c:157
#2 0x0000fffff7dac5ec in prepare_macpads (keylen=9,key=0x1000 <error: Cannot access memory at address 0x1000>,a=0x536090)
at /usr/src/debug/libgcrypt/1.8.0-r0/libgcrypt-1.8.0/cipher/md.c:822
#3 _gcry_md_setkey (hd=hd@entry=0x536090,key=0x1000,key@entry=0x515ca0,keylen=keylen@entry=9)
at /usr/src/debug/libgcrypt/1.8.0-r0/libgcrypt-1.8.0/cipher/md.c:877
#4 0x0000fffff7d962a4 in gcry_md_setkey (hd=0x536090,key=key@entry=0x515ca0,keylen=keylen@entry=9)
at /usr/src/debug/libgcrypt/1.8.0-r0/libgcrypt-1.8.0/src/visibility.c:1281
#5 0x0000000000476bd8 in gnutls_hmac_vector (algo=algo@entry=2,key=key@entry=0x515ca0 "qwerty123",key_len=key_len@entry=9,num_elem=num_elem@entry=2,addr=0xffffffffedc8,addr@entry=0xffffffffee28,len=0xffffffffedd8,len@entry=0xffffffffee38,mac=0xffffffffee00 ",\361\377\377\377\377",mac@entry=0xffffffffee60 "")
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/src/crypto/crypto_gnutls.c:114
#6 0x0000000000476e60 in hmac_sha1_vector (key=key@entry=0x515ca0 "qwerty123",addr=addr@entry=0xffffffffee28,len=len@entry=0xffffffffee38,mac=mac@entry=0xffffffffee60 "")
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/src/crypto/crypto_gnutls.c:146
#7 0x0000000000492138 in pbkdf2_sha1_f (digest=0xffffffffede8 "\330\223L",count=1,iterations=4096,ssid_len=6,ssid=0x41fdd4 <wpa_config_read+756> "9\177@\v\344\003\026\252\243\363\002\221\342\003\023\252\340\003\025\252\001\372\200R\215\376\377\227 )
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/src/crypto/sha1-pbkdf2.c:40
#8 pbkdf2_sha1 (passphrase=0x515ca0 "qwerty123",ssid=0x41fdd4 <wpa_config_read+756> "9\177@\v\344\003\026\252\243\363\002\221\342\003\023\252\340\003\025\252\001\372\200R\215\376\377\227 )
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/src/crypto/sha1-pbkdf2.c:82
#9 0x0000000000411afc in wpa_config_update_psk (ssid=ssid@entry=0x533770)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/config.c:3150
#10 0x000000000041fe28 in wpa_config_validate_network (line=10,ssid=0x533770)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/config_file.c:137
#11 wpa_config_read_network (id=-1,line=0xffffffffefac,f=0x52f080)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/config_file.c:226
#12 wpa_config_read (name=<optimized out>,cfgp=cfgp@entry=0x0)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/config_file.c:417
#13 0x000000000049aa04 in wpa_supplicant_init_iface (iface=<synthetic pointer>,wpa_s=0x531310)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/wpa_supplicant.c:5641
#14 wpa_supplicant_add_iface (global=0x232,global@entry=0x5300d0,iface=0x5116a0 <eloop+80>,iface@entry=0x52f9c0,parent=parent@entry=0x0)
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/wpa_supplicant.c:6170
#15 0x000000000040d6f0 in main (argc=<optimized out>,argv=<optimized out>)
---Type <return> to continue,or q <return> to quit---
at /usr/src/debug/wpa-supplicant/2.9-r0/wpa_supplicant-2.9/wpa_supplicant/main.c:379
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)