Ethereal-dev: Re: [ethereal-dev] SIGSEGV vb_decrement_usage_count (tvb=0x0, count=1) at tvbuff

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Thu, 14 Sep 2000 11:00:48 -0400
On Thu, Sep 14, 2000 at 02:58:59PM +0200, Florian Lohoff wrote:
> 
> Current CVS
> 
> This is GNU ethereal 0.8.12, compiled with GTK+ 1.2.7,
> with libpcap 0.4a6, with libz 1.1.3, with UCD SNMP 4.1.1
> 
> 
> (gdb) r
> Starting program: /var/tmp/ethereal/ethereal/ethereal
> 
> Program received signal SIGSEGV, Segmentation fault.
> tvb_decrement_usage_count (tvb=0x0, count=1) at tvbuff.c:250
> 250     if (tvb->usage_count <= count) {
> (gdb) bt
> #0  tvb_decrement_usage_count (tvb=0x0, count=1) at tvbuff.c:250
> #1  0x80f44a2 in tvb_free (tvb=0x828b550) at tvbuff.c:209
> #2  0x80f4449 in tvb_free_void (tvb=0x828b550) at tvbuff.c:186

[snip]
 
> I dont think the easy fix of
> 
> if (tvbuff == NULL) 
> 	return(0);
> 
> is correct and only considered a workaround for a bug i am currently
> unable to diagnose.
> 
> Packet triggering the problem attached ...

I know why this is happening, but I'd like to investigate it a little
bit before checking in a change. Do you have a sample trace file you
could send me that triggers this? thanks,

--gilbert