Ethereal-dev: RE: [Ethereal-dev] "Save As" crash situation

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

From: "packet steve" <packetsteve@xxxxxxxxxxx>
Date: Wed, 08 Sep 2004 07:48:26 -0400
gdb output below


(gdb) step
window_destroy (win=0x2e9da0) at ui_util.c:522
522       window_get_geometry(win, &geom);
(gdb) where
#0  window_destroy (win=0x2e9da0) at ui_util.c:522
#1  0x0002d538 in cf_close (cf=0x131fc0) at file.c:231
#2 0x0002d3bc in cf_open (fname=0x3920e8 "/tmp/ccc", is_tempfile=0, cf=0x131fc0) at file.c:168 #3 0x00030aa4 in cf_save (fname=0x3920e8 "/tmp/ccc", cf=0x131fc0, range=0x1253a0, save_format=2) at file.c:3019 #4 0x0003dc78 in file_save_as_ok_cb (w=0x2e9da0, fs=0x2e9da0) at file_dlg.c:1393
(gdb) print geom
$1 = {key = 0x0, set_pos = 0, x = 0, y = 0, set_size = 0, width = 32, height = 2, set_maximized = 0,
 maximized = 0}
(gdb) print *win
$3 = {object = {klass = 0x35fd88, flags = 67164, ref_count = 3, object_data = 0x313928}, private_flags = 16, state = 0 '\0', saved_state = 0 '\0', name = 0x0, style = 0x15f178, requisition = {width = 441, height = 634}, allocation = {x = 0, y = 0, width = 441, height = 634}, window = 0x395e88, parent = 0x0}

(gdb) step
window_get_geometry (widget=0x2e9da0, geom=0xffbed3f0) at ui_util.c:334
(gdb) print *geom
$19 = {key = 0x0, set_pos = 0, x = 0, y = 0, set_size = 0, width = 32, height = 2, set_maximized = 0,
 maximized = 0}
(gdb) print widget->window
$10 = (GdkWindow *) 0x395e88
(gdb) print *widget
$17 = {object = {klass = 0x35fd88, flags = 67164, ref_count = 4, object_data = 0x313940}, private_flags = 16, state = 0 '\0', saved_state = 0 '\0', name = 0x0, style = 0x15f178, requisition = {width = 441, height = 634}, allocation = {x = 0, y = 0, width = 441, height = 634}, window = 0x395e08, parent = 0x0}

(gdb) where
#0  window_get_geometry (widget=0x29c788, geom=0xffbed3f0) at ui_util.c:334
#1  0x0005c56c in window_destroy (win=0x29c788) at ui_util.c:522
#2  0x0002d538 in cf_close (cf=0x131fc0) at file.c:231
#3 0x0002d3bc in cf_open (fname=0x2ff4e0 "/tmp/ccc", is_tempfile=0, cf=0x131fc0) at file.c:168 #4 0x00030aa4 in cf_save (fname=0x2ff4e0 "/tmp/ccc", cf=0x131fc0, range=0x1253a0, save_format=2) at file.c:3019 #5 0x0003dc78 in file_save_as_ok_cb (w=0x29c788, fs=0x29c788) at file_dlg.c:1393

Next call in ui_util.c is
       gdk_window_get_root_origin(widget->window,
       &geom->x,
       &geom->y);


(gdb) step
Gdk-ERROR **: BadWindow (invalid Window parameter)
 serial 8307 error_code 3 request_code 15 minor_code 0

Program exited with code 01.

libgtk, libgdk libgmodule, libglib all at version 1.2






From: Ulf Lamping <ulf.lamping@xxxxxx>
Reply-To: Ethereal development <ethereal-dev@xxxxxxxxxxxx>
To: Ethereal-Dev <ethereal-dev@xxxxxxxxxxxx>
Subject: [Ethereal-dev] "Save As" crash situation
Date: Wed, 08 Sep 2004 08:16:21 +0200

Hi List!

Unfortunately, it's reported by some persons, that they have problems with the Save/Save As functionality after upgrading to 0.10.5 or higher.

Ethereal crashes when the Save dialog is closed.

Some general info:

The Save and Save As dialog are identical. If there's a problem in one of them, it's in both.

The implementation for GTK1.x, GTK 2.0, GTK 2.2 (FileSelection) differs a lot from the GTK2.4 (FileChooser) implementation. So please anytime you report a problem regarding GTK, please give the *complete* GTK version you are using. You will find it in the About dialog.


I cannot reproduce this problem on my win32 machine, not with GTK1.3 nor with GTK2.4.

The problem seems to be in the windows_destroy() function of file_dlg.c (as reported by packet steve).

It would be a very helpful if someone where the crash appear could use a debugger (like ddd) and step through the file_dlg.c code to find out what is happening and at which point (again, giving all available info is always a good thing here).

In the evening I will have a try on my SuSE box, if the problem appears on that machine too.

Regards, ULFL

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev

_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx