Re: Losing network connections on 16-current
- In reply to: Martin Cracauer : "Re: Losing network connections on 16-current"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Nov 2026 15:00:34 UTC
Things continue to be odd on this -current multi-if machine.
Reminder: it has two wlan and one usb interface.
Both wlan interfaces still lose their ip randomly. Most of the time but
not always the dhclient on it segfaults, but even when dhclient
survives there is no ip address until `rc.d/netif restart`.
However, `netif restart` always disables the usb interface that was
working up to this point. Manually running dhclient on it afterwards
leaves you with all interfaces up.
This is recent behavior.
Martin
Martin Cracauer wrote on Sat, Nov 14, 2026 at 11:43:19AM -0500:
> Caught a backtrace of the segfaulting dhclient when wlan0 lost its IP
> address.
>
> #0 state_bound (ipp=0x801817080)
> at /mnt/part2/usr/src/sbin/dhclient/dhclient.c:1048
> 1048 if (len == 4) {
> #1 0x0000000001036c25 in dispatch ()
> at /mnt/part2/usr/src/sbin/dhclient/dispatch.c:184
> #2 0x0000000001030381 in main (argc=<optimized out>, argv=<optimized out>)
> at /mnt/part2/usr/src/sbin/dhclient/dhclient.c:588
>
> The line printed might be off by one.
>
> There doesn't seem to be anything in /var/log/messages from wlan0,
> although debug was on. Last mention of wlan0 seems to have worked:
>
> Nov 14 10:05:31 joker kernel: wlan0: scan_end: done, [ticks 2170907491, dwell min 20 scanend 23422746]
> Nov 14 10:05:31 joker kernel: wlan0: scan_done: Dropping out of scan; ss_next=20, ss_last=20
> Nov 14 10:05:31 joker kernel: wlan0: notify scan done
> Nov 14 10:05:31 joker kernel: wlan0: [08:33:ed:86:6c:74] station assoc via MLME
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked:2750: starting state update SCAN -> SCAN (AUTH)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked: SCAN -> AUTH (arg 192) (nrunning 0 nscanning 0)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb:2566: running state update SCAN -> AUTH (1)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb: SCAN -> AUTH arg 192
> Nov 14 10:05:31 joker kernel: wlan0: sta_newstate: SCAN -> AUTH (192)
> Nov 14 10:05:31 joker kernel: wlan0: ni 0xfffffe0194c5a000 vap 0xfffffe012c704010 mode STA state AUTH m 0xfffff8004a786e00 status 0
> Nov 14 10:05:31 joker kernel: wlan0: ni 0xfffffe0194c5a000 mode STA state AUTH arg 0x2 status 0
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked:2750: starting state update AUTH -> AUTH (ASSOC)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked: AUTH -> ASSOC (arg 0) (nrunning 0 nscanning 0)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb:2566: running state update AUTH -> ASSOC (1)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb: AUTH -> ASSOC arg 0
> Nov 14 10:05:31 joker kernel: wlan0: sta_newstate: AUTH -> ASSOC (0)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_swscan_cancel_scan: called; F_SCAN=0, vap=match, signal=0
> Nov 14 10:05:31 joker kernel: wlan0: ni 0xfffffe0194c5a000 vap 0xfffffe012c704010 mode STA state ASSOC m 0xfffff8007f489e00 status 0
> Nov 14 10:05:31 joker kernel: wlan0: ni 0xfffffe0194c5a000 mode STA state ASSOC arg 0x3 status 0
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked:2750: starting state update ASSOC -> ASSOC (RUN)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_new_state_locked: ASSOC -> RUN (arg 16) (nrunning 0 nscanning 0)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb:2566: running state update ASSOC -> RUN (1)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_newstate_cb: ASSOC -> RUN arg 16
> Nov 14 10:05:31 joker kernel: wlan0: sta_newstate: ASSOC -> RUN (16)
> Nov 14 10:05:31 joker kernel: wlan0: ieee80211_swscan_cancel_scan: called; F_SCAN=0, vap=match, signal=0
> Nov 14 10:05:31 joker kernel: wlan0: [08:33:ed:86:6c:74] ieee80211_scan_assoc_success
> Nov 14 10:05:31 joker kernel: wlan0: link state changed to UP
> Nov 14 10:05:31 joker wpa_supplicant[591]: wlan0: WPA: Key negotiation completed with 08:33:ed:86:6c:74 [PTK=CCMP GTK=CCMP]
> Nov 14 10:05:31 joker wpa_supplicant[591]: wlan0: Removed BSSID 08:33:ed:86:6c:74 from ignore list
> Nov 14 10:05:31 joker wpa_supplicant[591]: wlan0: CTRL-EVENT-CONNECTED - Connection to 08:33:ed:86:6c:74 completed [id=7 id_str=]
> Nov 14 10:05:39 joker dhclient[12976]: New IP Address (wlan0): 172.18.27.153
> Nov 14 10:05:39 joker dhclient[12980]: New Subnet Mask (wlan0): 255.255.0.0
> Nov 14 10:05:39 joker dhclient[12984]: New Broadcast Address (wlan0): 172.18.255.255
> Nov 14 10:05:39 joker dhclient[12988]: New Routers (wlan0): 172.18.30.2
>
>
> `ifconfig wlan0 scan` still works normally.
>
> Martin
> --
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/