TShark stops capturing when capturing with multiple files and packet printing enabled
Summary
TSHARK ends after switching to the second output file, if the output is splitted into multiple files and the package summary printing is enabled
Steps to reproduce
Execute TSHARK with options -w out -b filesize:100 -P and wait for swithing to the second output file
What is the current bug behavior?
TSHARK unexpectedly terminates itself on second output file
What is the expected correct behavior?
TSHARK should be running infinitely until manually interrupted
Build information
TShark (Wireshark) 3.4.9 (v3.4.9-0-g365e236f5efe)
Copyright 1998-2021 Gerald Combs <gerald@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) with libpcap, with GLib 2.52.3, with zlib 1.2.11, with SMI
0.4.8, with c-ares 1.15.0, with Lua 5.2.4, with GnuTLS 3.6.3 and PKCS #11
support, with Gcrypt 1.8.3, with MIT Kerberos, with MaxMind DB resolver, with
nghttp2 1.39.2, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2
2.9.9.
Running on 64-bit Windows 7 Service Pack 1, build 7601, with Intel(R) Core(TM)
i3-2100 CPU @ 3.10GHz (with SSE4.2), with 8104 MB of physical memory, with
locale C, with Npcap version 1.31, based on libpcap version 1.10.1-PRE-GIT, with
GnuTLS 3.6.3, with Gcrypt 1.8.3, with brotli 1.0.2, binary plugins supported (0
loaded).
Built using Microsoft Visual Studio 2019 (VC++ 14.29, build 30040).