tshark uses up all the space in /tmp
Bug #210670 reported by
Martin Pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wireshark |
Unknown
|
High
|
|||
wireshark (Debian) |
Confirmed
|
Unknown
|
|||
wireshark (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: wireshark
I ran "sudo tshark -p -i eth0 -R http.request" which prints requests to stdout.
This creates an enormous dump file in /tmp, which eventually used up all the space on that partition. It didn't give an error, it just stopped logging once it was full.
It would be nice if it either used a pipe, or rolled over the file every so often. The command makes no use of packets captured a long time ago.
Changed in wireshark (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in wireshark: | |
importance: | Unknown → High |
status: | Unknown → Invalid |
Changed in wireshark (Debian): | |
status: | Unknown → Confirmed |
Changed in wireshark: | |
importance: | High → Unknown |
status: | Invalid → Unknown |
Changed in wireshark: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in wireshark: | |
status: | Confirmed → Unknown |
To post a comment you must log in.
Build Information:
TShark 1.0.2 (SVN Rev 25698)
Copyright 1998-2008 Gerald Combs <email address hidden> and contributors.
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 with GLib 2.16.3, with libpcap 0.9.5, with libz 1.2.3, without POSIX
capabilities, without libpcre, without SMI, without ADNS, without Lua, without
GnuTLS, without Gcrypt, with MIT Kerberos.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.
Running on Darwin 9.4.0 (MacOS 10.5.4), with libpcap version 0.9.5.
Built using gcc 4.0.1 (Apple Inc. build 5465).
--
TShark, when run without -w, isn't told to permanently save the captured packets to a file; it's only supposed to dissect and print the packets.
Currently, it does that by running dumpcap without "-w", so that it writes to a temporary file, and then reads the temporary file.
This means that if you leave TShark running for a long period of time, and it captures a lot of packets, a large capture file is written, which can fill up the disk;
In addition, it appears that, in some cases, the capture file isn't deleted.
TShark should run dumpcap in a mode where it writes the captured packets to a pipe, fflushing the output stream at the end of a packet batch, and reads captured packets from the pipe.