ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [ethereal-dev] Re: [ethereal-users] ethereal blocking when there is no traff

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, 02 Dec 1999 00:55:29 -0600
On Wed, Dec 01, 1999 at 12:54:44AM -0700, Andy Bradford wrote:
> Thus said Andy Bradford on Tue, 30 Nov 1999 21:02:40 MST:
> 
> 
> > What I mean by block is that when there is no traffic if I minimize the 
> > window and bring it up again all the widgets turn grey as they don't 
> > refresh and I cannot select any packets (even when auto-update of list) 
> > is selected.  I am using version 0.7.7 and will upgrade to 0.7.8 soon 
> > to see if it still does it. :)
> Ok, upgraded to 0.7.9 and it still does it.  I also made sure that I 
> had patched libpcap with Guy's patch for linux and it still does it.  I 
> guess I wasn't clear enough the first time I described the problem so I 
> would like to clarify a bit here.  The problem is not with the main 
> ethereal window but with the "Capture/Playback" window.  If I iconify 
> it then de-iconify it, the text disappears until the next frame on the 
> wire comes through.  That means I can't press stop until the next frame 
> is captured, etc.  Has anyone else experienced this?
> Andy

I was able to get the behavior to disappear. Using the patched
source for libpcap, I modified CCOPT in the Makefile to turn off
optimization (it was -O2 on my system) and turn on debug information:

CCOPT = -g

Once I linked ethereal against this version of the library, the behavior
disappeared. Then, wondering which change, the removal of -O2 or the
addition of -g, fixed the problem, I tried to make another libpcap
with the original settings (-O2), but I could never get the freezing behavior to
re-appear. It's just totally gone for me.

I've gone back and verified that I changed *no* source in Ethereal,
and nothing in libpcap except for the patch (libpcap-0.4-guy-gerald.patch).
My environment variables didn't change. I just don't know why it's
working now.

So, my feeble suggestion is to change CCOPT in the libpcap Makefile to "-g"
and try again.  Good luck.

--gilbert