xlog-discussion
[Top][All Lists]
Advanced

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

Re: [Xlog-discussion] Segfault in xlog 0.9beta1


From: Joop Stakenborg
Subject: Re: [Xlog-discussion] Segfault in xlog 0.9beta1
Date: Tue, 20 May 2003 18:49:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030430 Debian/1.3-5

Alexandru Csete wrote:
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?

No, it looks like I am looking up a non-existant widget. I will address this shortly....

Otherwise it looks very good! Thanks.


Thanks for the report. Glad you like the new version!

Alex OZ9AEC



Joop PA4TU





reply via email to

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