Ethereal-dev: Re: [Ethereal-dev] Dumpcap: Coredump when disconnecting Ethernet during capture

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Tue, 06 Dec 2005 12:12:58 +0100
Ethereal development <ethereal-dev@xxxxxxxxxxxx> schrieb am 06.12.05 09:53:44:
> 
> Well, since about two days (or whenever I submitted the Linux compile
> fix for dumpcap) I'm using a dumpcap enabled Ethereal build.

Did you changed something for that, so dumpcap is actually used? The current Ethereal build (and all former builds) only *compiles* dumpcap but don't *use* it in any way. Ethereal is still using the "fork model" just like before.

The usage of dumpcap has still to come, when I think it's ready (which is currently really not).

> It was the version that was current at the time of the posting.
> To me it looks that Ethereal crashed. I cannot be sure that dumpcap
> doesn't crash too, but the following stuff happens:
> I start ethereal.
> Start capture on eth0
> Wait for the first few frames to appear.
> Unplug the Ethernet jack.
> Wait for a while (less than a minute).
> Ethereal itself crashes.
> 

Now I got it.

My assumption was, that after the capture started successfully, no error message would come in.

Obviously that assumption was wrong, so capture.c: line 368 should look like:

  g_assert(capture_opts->state == CAPTURE_PREPARING || capture_opts->state == CAPTURE_RUNNING);

I'll check in the change later today ...

Regards, ULFL
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193