gnomepager bug



Since bugs.gnome.org seems to be down, I send this report to the list.

Using gnome-libs & gnome-core from CVS 27/3/99, gtk/glib 1.2.1:
- Open properties dialog
- Click on "TaskList" tab and gnomepager segfaults.

backtrace follows:

Program received signal SIGSEGV, Segmentation fault.
gdk_window_get_type (window=0x1e) at gdkwindow.c:1460
1460      return window_private->window_type;
(gdb) bt
#0  gdk_window_get_type (window=0x1e) at gdkwindow.c:1460
#1  0x804e635 in cb_filter_intercept (gdk_xevent=0xbffff760, event=0xbffff648, 
    data=0x0) at gnomepager_applet.c:940
#2  0x402efa21 in gdk_event_apply_filters (xevent=0xbffff760, 
    event=0xbffff648, filters=0x80a2420) at gdkevents.c:936
#3  0x402ef1a7 in gdk_compress_exposures (xevent=0xbffff760, window=0x80a3000)
    at gdkevents.c:456
#4  0x402f03f7 in gdk_event_translate (event=0x80939d8, xevent=0xbffff760)
    at gdkevents.c:1520
#5  0x402f09f5 in gdk_events_queue () at gdkevents.c:2004
#6  0x402f0bd0 in gdk_event_dispatch (source_data=0x0, 
    current_time=0xbffff850, user_data=0x0) at gdkevents.c:2080
#7  0x400a2b13 in g_main_dispatch (current_time=0xbffff850) at gmain.c:656
#8  0x400a309b in g_main_iterate (block=1, dispatch=1) at gmain.c:865
#9  0x400a321d in g_main_run (loop=0x8093358) at gmain.c:923
#10 0x40252b9b in gtk_main () at gtkmain.c:475
#11 0x400114c9 in applet_widget_gtk_main () at applet-widget.c:868
#12 0x804f7ac in main (argc=3, argv=0xbffff924) at gnomepager_applet.c:1572

A random thought: note that I'm _not_ a gnome/gtk hacker and what follows
might be total nonsense!! I do not know how gdk works, too.

IMO: window=0x1e in gdk_window_get_type sounds a bad value. In
cb_filter_intercept event->any.window is checked for NULL, but of course
weird values != NULL. Moreover (*event) is a union and _perhaps_ 
event->any doesn't contain reliable info.

     default:
      if ((event->any.window) &&
          (gdk_window_get_type(event->any.window) == GDK_WINDOW_FOREIGN))
        return GDK_FILTER_REMOVE;
      else
        return GDK_FILTER_CONTINUE;
      break;

Hope this helps,
Zun.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]