Page MenuHomeVyOS Platform

"monitor traffic" fails with an unhandled exception on Ctrl-C
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ monitor traffic interface eth1 numeric filter 'port 80' | match '1.1.1.1'
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), snapshot length 262144 bytes

^C9 packets captured
19 packets received by filter
0 packets dropped by kernel
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/tcpdump.py", line 169, in <module>
    call(f'{command} -i {ifname}')
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 187, in call
    out, code = popen(
                ^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 82, in popen
    pipe = p.communicate(input, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1199, in communicate
    self.wait()
  File "/usr/lib/python3.11/subprocess.py", line 1262, in wait
    return self._wait(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1997, in _wait
    (pid, sts) = self._try_wait(0)
                 ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1955, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

vyos@vyos:~$

Details

Version
2026.01.05-0023-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po renamed this task from "monitor traffic" - Traceback if you press Ctrl+C to "monitor traffic" - traceback on KeyboardInterrupt (Ctrl+C).
c-po assigned this task to DeanHawking.
Viacheslav triaged this task as Normal priority.Jan 6 2026, 9:50 AM
c-po changed the task status from Open to In progress.Jan 22 2026, 4:33 PM
c-po claimed this task.
c-po added a subscriber: DeanHawking.
dmbaturin renamed this task from "monitor traffic" - traceback on KeyboardInterrupt (Ctrl+C) to "monitor traffic" fails with an unhandled exception on Ctrl-C.Feb 12 2026, 6:43 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.