xlog-discussion
[Top][All Lists]
Advanced

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

[Xlog-discussion] Segfault in xlog 0.9beta1


From: Alexandru Csete
Subject: [Xlog-discussion] Segfault in xlog 0.9beta1
Date: 20 May 2003 13:56:39 +0200

Hi, 

I can also make xlog crash (not critical though). I select
Settings->Dialogs and press 'OK' without changing anything. Runnig it
through gdb gives:

GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea L(gdb) file
/usr/local/bin/xlog
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
lookup_widget (widget=0x0, widget_name=0x8080819 "b4treeview") at
support.c:30
(gdb) 


- the segfault occurs at the marked line:

...
GtkWidget*
lookup_widget                          (GtkWidget       *widget,
                                        const gchar     *widget_name)
{
  GtkWidget *parent, *found_widget;
    
  for (;;)
    {
      if (GTK_IS_MENU (widget))
        parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
      else
        parent = widget->parent;   /****  SEGFAULT   ****/
      if (!parent)
        parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
"GladeParentKey");
      if (parent == NULL)
        break;
      widget = parent;
    }
    
  found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
                                                 widget_name);
  if (!found_widget)
    g_warning ("Widget not found: %s", widget_name);
  return found_widget;
}
...


Could it be a bug in libglade?
Otherwise it looks very good! Thanks.

Alex OZ9AEC





reply via email to

[Prev in Thread] Current Thread [Next in Thread]