NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/57303: ATF unit test usr.sbin/tcpdump/t_tcpdump fails when wireless active on amd64
>Number: 57303
>Category: misc
>Synopsis: ATF unit test usr.sbin/tcpdump/t_tcpdump fails when wireless active on amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 28 02:15:00 +0000 2023
>Originator: Jim Spath
>Release: 10.0_BETA
>Organization:
>Environment:
NetBSD h.h 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Sun Feb 12 12:39:37 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64 x86_64 AMD 686-class NetBSD
>Description:
The ATF test usr.sbin/tcpdump/t_tcpdump failed on on system. Looking further, the test succeeded after switching off the wpa_supplicant daemon.
Log of test runs:
# cd /usr/tests
# atf-run usr.sbin/tcpdump/t_tcpdump
Content-Type: application/X-atf-tps; version="3"
info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests
info: time.start, Tue Mar 28 01:49:43 UTC 2023
info: uname.sysname, NetBSD
info: uname.nodename, h.h
info: uname.release, 10.0_BETA
info: uname.version, NetBSD 10.0_BETA (GENERIC) #0: Sun Feb 12 12:39:37 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
info: uname.machine, amd64
info: env, ENV=/root/.shrc
info: env, BLOCKSIZE=1k
info: env, PWD=/usr/tests
info: env, HOME=/root
info: env, _=/usr/bin/atf-run
info: env, PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin
info: env, HOST=h.h
info: env, TERM=xterm
info: env, OLDPWD=/root
info: env, USER=root
info: env, LOGNAME=root
info: env, SU_FROM=u
info: env, SHELL=/bin/sh
info: env, SHLVL=1
tps-count: 1
tp-start: 1679968183.223748, usr.sbin/tcpdump/t_tcpdump, 1
tc-start: 1679968183.223787, promiscuous
tc-so:Testing re0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i re0 ]
tc-so:Testing axen0
tc-se:[1] Terminated atf_check -s ignore -o ignore -e ignore -x "tc...
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i axen0 ]
tc-so:Testing lo0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i lo0 ]
tc-so:Testing urtwn0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i urtwn0 ]
tc-end: 1679968191.320675, promiscuous, failed, Test case body returned a non-ok exit code, but this is not allowed
tp-end: 1679968191.324879, usr.sbin/tcpdump/t_tcpdump
info: time.end, Tue Mar 28 01:49:51 UTC 2023
# ifconfig -a
re0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
enabled=0
media: Ethernet autoselect (none)
status: no carrier
axen0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
enabled=0
media: Ethernet autoselect (1000baseT full-duplex)
status: active
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
urtwn0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
# /etc/rc.d/wpa_supplicant stop
Stopping wpa_supplicant.
# atf-run usr.sbin/tcpdump/t_tcpdump
Content-Type: application/X-atf-tps; version="3"
info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests
info: time.start, Tue Mar 28 01:50:37 UTC 2023
info: uname.sysname, NetBSD
info: uname.nodename, h.h
info: uname.release, 10.0_BETA
info: uname.version, NetBSD 10.0_BETA (GENERIC) #0: Sun Feb 12 12:39:37 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
info: uname.machine, amd64
info: env, ENV=/root/.shrc
info: env, BLOCKSIZE=1k
info: env, PWD=/usr/tests
info: env, HOME=/root
info: env, _=/usr/bin/atf-run
info: env, PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin
info: env, HOST=h.h
info: env, TERM=xterm
info: env, OLDPWD=/root
info: env, USER=root
info: env, LOGNAME=root
info: env, SU_FROM=u
info: env, SHELL=/bin/sh
info: env, SHLVL=1
tps-count: 1
tp-start: 1679968237.338117, usr.sbin/tcpdump/t_tcpdump, 1
tc-start: 1679968237.338316, promiscuous
tc-so:Testing re0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i re0 ]
tc-so:Testing axen0
tc-se:[1] Terminated atf_check -s ignore -o ignore -e ignore -x "tc...
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i axen0 ]
tc-so:Testing lo0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i lo0 ]
tc-so:Testing urtwn0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i urtwn0 ]
tc-end: 1679968245.425163, promiscuous, passed
tp-end: 1679968245.436087, usr.sbin/tcpdump/t_tcpdump
info: time.end, Tue Mar 28 01:50:45 UTC 2023
# /etc/rc.d/wpa_supplicant start
Starting wpa_supplicant.
# atf-run usr.sbin/tcpdump/t_tcpdump
Content-Type: application/X-atf-tps; version="3"
info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests
info: time.start, Tue Mar 28 01:50:55 UTC 2023
info: uname.sysname, NetBSD
info: uname.nodename, h.h
info: uname.release, 10.0_BETA
info: uname.version, NetBSD 10.0_BETA (GENERIC) #0: Sun Feb 12 12:39:37 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
info: uname.machine, amd64
info: env, ENV=/root/.shrc
info: env, BLOCKSIZE=1k
info: env, PWD=/usr/tests
info: env, HOME=/root
info: env, _=/usr/bin/atf-run
info: env, PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin
info: env, HOST=h.h
info: env, TERM=xterm
info: env, OLDPWD=/root
info: env, USER=root
info: env, LOGNAME=root
info: env, SU_FROM=u
info: env, SHELL=/bin/sh
info: env, SHLVL=1
tps-count: 1
tp-start: 1679968255.983597, usr.sbin/tcpdump/t_tcpdump, 1
tc-start: 1679968255.983644, promiscuous
tc-so:Testing re0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i re0 ]
tc-so:Testing axen0
tc-se:[1] Terminated atf_check -s ignore -o ignore -e ignore -x "tc...
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i axen0 ]
tc-so:Testing lo0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i lo0 ]
tc-so:Testing urtwn0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i urtwn0 ]
tc-end: 1679968264.73631, promiscuous, failed, Test case body returned a non-ok exit code, but this is not allowed
tp-end: 1679968264.84282, usr.sbin/tcpdump/t_tcpdump
info: time.end, Tue Mar 28 01:51:04 UTC 2023
# /etc/rc.d/wpa_supplicant stop
Stopping wpa_supplicant.
# atf-run usr.sbin/tcpdump/t_tcpdump
Content-Type: application/X-atf-tps; version="3"
info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests
info: time.start, Tue Mar 28 01:51:15 UTC 2023
info: uname.sysname, NetBSD
info: uname.nodename, h.h
info: uname.release, 10.0_BETA
info: uname.version, NetBSD 10.0_BETA (GENERIC) #0: Sun Feb 12 12:39:37 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
info: uname.machine, amd64
info: env, ENV=/root/.shrc
info: env, BLOCKSIZE=1k
info: env, PWD=/usr/tests
info: env, HOME=/root
info: env, _=/usr/bin/atf-run
info: env, PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin
info: env, HOST=h.h
info: env, TERM=xterm
info: env, OLDPWD=/root
info: env, USER=root
info: env, LOGNAME=root
info: env, SU_FROM=u
info: env, SHELL=/bin/sh
info: env, SHLVL=1
tps-count: 1
tp-start: 1679968275.553853, usr.sbin/tcpdump/t_tcpdump, 1
tc-start: 1679968275.553895, promiscuous
tc-so:Testing re0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i re0 ]
tc-so:Testing axen0
tc-se:[1] Terminated atf_check -s ignore -o ignore -e ignore -x "tc...
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i axen0 ]
tc-so:Testing lo0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i lo0 ]
tc-so:Testing urtwn0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i urtwn0 ]
tc-end: 1679968283.651789, promiscuous, passed
tp-end: 1679968283.655927, usr.sbin/tcpdump/t_tcpdump
info: time.end, Tue Mar 28 01:51:23 UTC 2023
#
>How-To-Repeat:
Unclear if the number of interfaces matter, or if the wpa_supplicant running causes issues.
>Fix:
While turning off the wpa_supplicant could be a test pre-condition, trapping the results might be feasible.
Home |
Main Index |
Thread Index |
Old Index