Ethereal-dev: Re: [ethereal-dev] Core while printing in 0.8.0

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 8 Jan 2000 01:43:00 -0800
> The assert happened because  cf->unfiltered_count was 0, BTW. (The
> line numbers are different in the CVS version of file.c)
> 
>   if (count >= progbar_nextstep) {
>      /* let's not divide by zero. I should never be started
>       * with unfiltered_count == 0, so let's assert that
>       */
>     g_assert(cf->unfiltered_count > 0);
> 
> When I get to work I'll do some testing of this to see if its reproducable
> in the CVS version, by selecting only one packet.

I suspect the underlying problem is that he wasy trying to print while
the capture was still running - "cf->unfiltered_count" is set by:

	"read_cap_file()" - but that's not used in an "Update in real
	time" capture;

	"colorize_packets()" - but he probably hadn't run any
	colorization or display filtering.

This appears to be "fixed" in the current CVS tree because the "Print"
menu option isn't enabled while the capture is in progress; however, I
see no reason to forbid printing packets, so that's really a misfeature.

I'll look into this.