Ethereal-dev: [ethereal-dev] Ethereal bug -- Gtk error with colorize display causes crash

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

From: Nik Barron <NikB@xxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Dec 1999 09:08:34 -0000
Hi,

I may have found a bug in Ethereal, nothing major, but it does cause a
crash.

Version info:

RedHat Linux 6.0, Intel, kernel version 2.2.5-15
GTK+ version 1.2.1
Ethereal 0.7.9, libpcap 0.4, libz 1.1.3, without SNMP

Bug:

When creating colorize filters, it is possible to cause GTK to crash with
the following error report:

Gtk-CRITICAL **: file gtkwidget.c: line 3445 (gtk_widget_get_style):
assertion 'GTK_IS_WIDGET (widget)' failed.

To reproduce the error:

1. With some traffic captured, select Display->Colorize display

2. Click New for a new filter, give it an filter string (e.g. 'tcp')

3. With the 'Edit color filter' dialogue still displayed, click the 'Edit'
button in Add color to protocols.

4. In the second 'Edit color filter' dialogue, enter a valid filter string
(e.g. 'tcp')

5. OK both dialogues. On OKing the second one, Ethereal exits with the GTK
error.

I guess the problem is allowing two Edit boxes open for the same filter.

Many thanks for a *superb* bit of software!

Nick Barron
Systems and Applications Development Manager
Solvera Information Systems (Technologies) Ltd
Registered in England No 3787615 
PGP: 46BD 3AD6 9BDB C97C DFD7  34C4 6442 D0F0 7491 0537