Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

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: Thu, 09 Sep 2004 01:49:25 -0400
This didn't seem to help.

Breakpoint 4, file_save_as_destroy () at file_dlg.c:1458
1458        window_destroy(file_save_as_w);
(gdb) where
#0  file_save_as_destroy () at file_dlg.c:1458
#1  0x000306c0 in cf_close (cf=0x133fc0) at file.c:231
#2 0x00030fb8 in cf_open (fname=0x2fe468 "/tmp/bac", is_tempfile=0, cf=0x133fc0) at file.c:168 #3 0x00031498 in cf_save (fname=0x2fe468 "/tmp/bac", cf=0x133fc0, range=0x1273a0, save_format=3344472)
   at file.c:3019
#4 0x0003e328 in file_save_as_ok_cb (w=0x350138, fs=0x350138) at file_dlg.c:1393 #5 0xfe5a2074 in gtk_marshal_NONE__NONE () from /opt/exp/gnu/lib/libgtk-1.2.so.0
#6  0xfe610b10 in gtk_handlers_run () from /opt/exp/gnu/lib/libgtk-1.2.so.0

(gdb) print *file_save_as_w
$4 = {object = {klass = 0x34ffd8, flags = 67164, ref_count = 3, object_data = 0x31d2a8}, private_flags = 16, state = 0 '\0', saved_state = 0 '\0', name = 0x0, style = 0x161178, requisition = {width = 441, height = 634}, allocation = {x = 0, y = 0, width = 441, height = 634}, window = 0x137aca8, parent = 0x0}

(gdb) step
window_destroy (win=0x350138) at ui_util.c:524
524       if(!GTK_WIDGET_NO_WINDOW(win)) {

(gdb) step
525           window_get_geometry(win, &geom);

(gdb) print *win
$6 = {object = {klass = 0x34ffd8, flags = 67164, ref_count = 3, object_data = 0x31d2a8}, private_flags = 16, state = 0 '\0', saved_state = 0 '\0', name = 0x0, style = 0x161178, requisition = {width = 441, height = 634}, allocation = {x = 0, y = 0, width = 441, height = 634}, window = 0x137aca8, parent = 0x0}
(gdb) print geom
$7 = {key = 0x0, set_pos = 0, x = 0, y = 0, set_size = 0, width = 33, height = 2, set_maximized = 0, maximized = 0}

(gdb) step
Breakpoint 3, window_get_geometry (widget=0x350138, geom=0xffbdd538) at ui_util.c:334
334             gdk_window_get_root_origin(widget->window,

(gdb) print *widget
$9 = {object = {klass = 0x34ffd8, flags = 67164, ref_count = 3, object_data = 0x31d2a8}, private_flags = 16, state = 0 '\0', saved_state = 0 '\0', name = 0x0, style = 0x161178, requisition = {width = 441, height = 634}, allocation = {x = 0, y = 0, width = 441, height = 634}, window = 0x137aca8, parent = 0x0}

(gdb) print *geom
$11 = {key = 0x0, set_pos = 0, x = 0, y = 0, set_size = 0, width = 33, height = 2, set_maximized = 0, maximized = 0}

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

Program exited with code 01.





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

Hi Steve!

I've checked in a change in ui_util.c, so getting the GdkWindow geometry only (which seems to be the problem), if the GtkWidget has one.

This might fix your problem, could you check if that's the case?

And if it does not, provide me with some gdb info of the new implementation ...

Regards, ULFL

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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/