Wireshark mailing list archives

tshark crash with capture ring buffer (-b) and decoding packets (-S)


From: Will Cladek <will.cladek () nrl navy mil>
Date: Fri, 11 Jan 2013 09:42:59 -0500

The following happens on both tshark 1.0.15 installed from Red Hat package on CentOS 5 and 1.2.15 from package on 
CentOS 6.

I am attempting to run tshark on a high-utilization link in a manner that will print out, using display filters, the 
user agents of all HTTP requests.  The first problem is that by default, tshark writes all raw data to temporary 
capture files in /tmp, so if you leave it running endlessly, it fills up all of the disk space on the system.  To 
resolve this, I use the -b option to write to a few files of a set size which are overwritten.

With just the -b option, I can seemingly run tshark endlessly.  For instance, I ran the following simple capture 
overnight:

#> tshark -b filesize:100000 -b files:5 -w test.pcap -i eth4

And came back the next morning with over a billion packets having been processed, but no complaints.

My problem comes when I throw in the -S option to print out the decoded packets as well for my aforementioned purpose.  
I run the following command:

#> tshark -S -b filesize:100000 -b files:5 -w test.pcap -i eth4 > /dev/null

And every time, within a minute, tshark crashes with the message:

tshark: The file "test_00005_20130111092347.pcap" doesn't exist.

(The name of the .pcap file will obviously vary.)

This is follwed by either "Segmentation fault" or something like "*** glibc detected *** tshark: double free or corruption 
(fasttop): 0x00002ba03da05de0 ***" followed by a printed out Backtrace.

It appears that there is some kind of condition where tshark tries to delete a ring buffer file that's already been 
deleted, and this only occurs when the -S flag is used.

Can anyone offer any assistance with this?

Thanks,

Will
___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
            mailto:wireshark-users-request () wireshark org?subject=unsubscribe


Current thread: