-
Notifications
You must be signed in to change notification settings - Fork 430
Description
Problem
This may be related to to issue #121 which was thought to be fixed.
Debian 12 Bookworm, amd64, termshark 2.4.0
Current Behavior
I've recently been leaving termshark running for many hours and on 2 separate hosts had situations where despite going through the UI Quit workflow, and either :q!, Quit > Keep, or Quit > Delete, and the UI simply continuing as if the command hasn't been issued.
The log seems to indicate that the background processes are being killed though:
time="2023-10-16T21:41:39+01:00" level=info msg="Started pcap command /usr/bin/tshark tshark -r /home/tj/.cache/termshark/pcaps/usb3hubKY688--2023-10-16--17-21-56.pcap -x
-Y '(frame.number >= 866001) and (frame.number < 867002)' with pid 1249168"
time="2023-10-16T21:41:39+01:00" level=info msg="Started PDML command /usr/bin/tshark tshark -T pdml -r /home/tj/.cache/termshark/pcaps/usb3hubKY688--2023-10-16--17-21-56.
pcap --color -Y '(frame.number >= 866001) and (frame.number < 867002)' with pid 1249169"
time="2023-10-17T14:04:55+01:00" level=info msg="Sending SIGKILL to 1090037: tail -f -c +0 /home/tj/.cache/termshark/pcaps/usb3hubKY688--2023-10-16--17-21-56.pcap"
time="2023-10-17T14:04:55+01:00" level=info msg="Sending SIGKILL to 1090026: termshark -i usb3hubKY688 -w /home/tj/.cache/termshark/pcaps/usb3hubKY688--2023-10-16--17-21-5
6.pcap -f 'ip or ip6 or arp'"
time="2023-10-17T14:04:55+01:00" level=info msg="Sending SIGKILL to 1090027: tshark -T psml -o gui.column.format:\\\"No.\\\",\\\"%m\\\",\\\"No.\\\",\\\"%m\\\",\\\"Time\\\"
,\\\"%t\\\",\\\"Source\\\",\\\"%s\\\",\\\"Dest\\\",\\\"%d\\\",\\\"Proto\\\",\\\"%p\\\",\\\"Length\\\",\\\"%L\\\",\\\"Info\\\",\\\"%i\\\" -r - -l --color"
time="2023-10-17T14:04:55+01:00" level=info msg="Load operation complete"
time="2023-10-17T14:06:51+01:00" level=error msg="Could not delete file /home/tj/.cache/termshark/pcaps/usb3hubKY688--2023-10-16--17-21-56.pcap: remove /home/tj/.cache/ter
mshark/pcaps/usb3hubKY688--2023-10-16--17-21-56.pcap: no such file or directory"
time="2023-10-17T14:07:34+01:00" level=info msg="Requested stop psml + iface"
time="2023-10-17T14:07:35+01:00" level=info msg="Requested stop psml + iface"
time="2023-10-17T14:07:38+01:00" level=info msg="Requested stop psml + iface"
time="2023-10-17T14:15:22+01:00" level=warning msg="Could not read wireshark config folder /home/tj/.config/wireshark/profiles: open /home/tj/.config/wireshark/profiles: no such file or directory"
time="2023-10-17T14:16:12+01:00" level=warning msg="Could not read wireshark config folder /home/tj/.config/wireshark/profiles: open /home/tj/.config/wireshark/profiles: no such file or directory"
time="2023-10-17T14:16:15+01:00" level=warning msg="Could not read wireshark config folder /home/tj/.config/wireshark/profiles: open /home/tj/.config/wireshark/profiles: no such file or directory"
time="2023-10-17T14:18:35+01:00" level=info msg="Requested stop psml + iface"
This session had to be KILLed.
Expected Behavior
For short-duration sessions quit does work - I don't have a handle on what period is required to trigger this as yet but safe to say it is likely 6 hours+.
Steps to Reproduce
Leave running for long periods.
Context
Please provide the complete output of these commands:
- termshark -v (or termshark -vv if running from git/HEAD)
- termshark -v | cat
$ termshark -v | cat
TShark (Wireshark) 4.0.6 (Git v4.0.6 packaged as 4.0.6-1~deb12u1).
Copyright 1998-2023 Gerald Combs <[email protected]> and contributors.
Licensed under the terms of the GNU General Public License (version 2 or later).
This is free software; see the file named COPYING in the distribution. There is
NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) using GCC 12.2.0, with GLib 2.74.6, with PCRE2, with zlib
1.2.13, with libpcap, with POSIX capabilities (Linux), with libnl 3, with Lua
5.2.4, with GnuTLS 3.7.9 and PKCS #11 support, with Gcrypt 1.10.1, with Kerberos
(MIT), with MaxMind, with nghttp2 1.52.0, with brotli, with LZ4, with Zstandard,
with Snappy, with libxml2 2.9.14, with libsmi 0.4.8, with binary plugins.
Running on Linux 6.5.1+debian+tj, with AMD Ryzen 7 3700X 8-Core Processor (with
SSE4.2), with 31997 MB of physical memory, with GLib 2.74.6, with PCRE2 10.42
2022-12-11, with zlib 1.2.13, with libpcap 1.10.3 (with TPACKET_V3), with c-ares
1.18.1, with GnuTLS 3.7.9, with Gcrypt 1.10.1, with nghttp2 1.52.0, with brotli
1.0.9, with LZ4 1.9.4, with Zstandard 1.5.4, with libsmi 0.4.8, with
LC_TYPE=en_GB.UTF-8, binary plugins supported.
I've attached gdb to it but as yet not got anything useful; if you could suggest some locations for breakpoints I can then single-step from there when it is likely to fail. I've tried that with a well-behaved short-duration session starting from ui/ui.go:479 so am reasonably familiar with a 'good' quit flow.