Hi,

Am 04.09.24 um 15:26 schrieb Alexander Bluhm:
On Wed, Sep 04, 2024 at 02:44:01PM +0200, Stefan Fritsch wrote:
Hi,

during network driver testing I sometimes do a stress test with

while true; do ifconfig vio0 -inet; done &
while true; do ifconfig vio0 inet autoconf; done &
while true; do ifconfig vio0 -inet6; done &
while true; do ifconfig vio0 inet6 autoconf; done &
while true; do ifconfig vio0 down; done &
while true; do ifconfig vio0 up; done &

After I stop these jobs, "ifconfig vio0 autoconf" does not work any more
because dhcpleased has died:

Sep  4 14:20:39 oatest dhcpleased[19462]: bpf_send_packet: writev: Network is 
down
Sep  4 14:20:39 oatest dhcpleased[19462]: bpf_send_packet: writev: Network is 
down
Sep  4 14:20:39 oatest dhcpleased[19462]: bpf_send_packet: writev: Network is 
down
Sep  4 14:20:39 oatest dhcpleased[19462]: bpf_send_packet: writev: Network is 
down
Sep  4 14:20:40 oatest dhcpleased[19462]: bpf_send_packet: writev: Network is 
down
Sep  4 14:20:40 oatest dhcpleased[80648]: fatal in main: msgbuf_write: Broken 
pipe

This is obviously not a severe bug, but slaacd survives the stress test.
Maybe dhcpleased could improve its error handling, too?

Is your test system newer than this commit?

No, it was not newer. I have re-installed latest snapshot from Tue Sep 3 23:49:36 MDT 2024 and dhcpleased still dies. The messages are not always the same, though:


Sep 4 16:25:17 oatest dhcpleased[36990]: fatal in main: msgbuf_write: Broken pipe Sep 4 16:25:17 oatest dhcpleased[8361]: fatal in frontend: msgbuf_write: Broken pipe


Sep 4 16:27:49 oatest dhcpleased[89595]: bpf_send_packet: writev: Network is down Sep 4 16:27:49 oatest dhcpleased[89595]: bpf_send_packet: writev: Network is down Sep 4 16:27:49 oatest dhcpleased[39121]: failed to send route message: Network is unreachable Sep 4 16:27:49 oatest dhcpleased[89595]: bpf_send_packet: writev: Network is down Sep 4 16:27:49 oatest dhcpleased[89595]: bpf_send_packet: writev: Network is down

Even though there is no "fatal" message in the last run, dhcpleased is still gone.

Cheers,
Stefan


CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org      2024/09/01 14:24:42

Modified files:
         sbin/dhcpleased: control.c

Log message:
dhcpleased: fix a sizeof for IMSG_REQUEST_REBOOT.

"fatal in engine: engine_dispatch_frontend: invalid IMSG_REQUEST_REBOOT"
reported by qwer.ty tuta io

ok florian kn

Reply via email to