Package: libgtk2-gladexml-perl
Version: 1.001-1
Severity: normal

If I try to load the following glade file, kww.glade,
with the following perl script, kww.pl, I get a segfault:

GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get): assertion 
`G_IS_OBJECT (object)' failed at ./viewer.pl line 34.
GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get): assertion 
`G_IS_OBJECT (object)' failed at ./viewer.pl line 34.
Segmentation fault

(with the bigger program/glade file this is distilled from, it used to
work, before updates)

Jeroen Nijhof


---------------------- kww.pl ---------------------
#!/usr/bin/perl -w

use strict;
use warnings;

use Gtk2 '-init'; # auto-initializes Gtk2
use Gtk2::GladeXML;

my $glade;

$glade = Gtk2::GladeXML->new("kww.glade");
---------------------- end of kww.pl ---------------------

---------------------- kww.glade -------------------------
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd";>

<glade-interface>
<requires lib="gnome"/>
<requires lib="bonobo"/>

<widget class="GnomeApp" id="app1">
  <property name="visible">True</property>
  <property name="title" translatable="yes">Viewer</property>
  <property name="type">GTK_WINDOW_TOPLEVEL</property>
  <property name="window_position">GTK_WIN_POS_NONE</property>
  <property name="modal">False</property>
  <property name="resizable">True</property>
  <property name="destroy_with_parent">False</property>
  <property name="decorated">True</property>
  <property name="skip_taskbar_hint">False</property>
  <property name="skip_pager_hint">False</property>
  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
  <property name="enable_layout_config">True</property>

  <child internal-child="dock">
    <widget class="BonoboDock" id="bonobodock1">
      <property name="visible">True</property>
      <property name="allow_floating">True</property>

      <child>
        <widget class="GtkHBox" id="hbox1">
          <property name="visible">True</property>
          <property name="homogeneous">False</property>
          <property name="spacing">0</property>

          <child>
            <widget class="GtkLabel" id="label1">
              <property name="visible">True</property>
              <property name="label" translatable="yes">label1</property>
              <property name="use_underline">False</property>
              <property name="use_markup">False</property>
              <property name="justify">GTK_JUSTIFY_LEFT</property>
              <property name="wrap">False</property>
              <property name="selectable">False</property>
              <property name="xalign">0.5</property>
              <property name="yalign">0.5</property>
              <property name="xpad">0</property>
              <property name="ypad">0</property>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">False</property>
              <property name="fill">False</property>
            </packing>
          </child>

          <child>
            <widget class="GtkVBox" id="vbox1">
              <property name="visible">True</property>
              <property name="homogeneous">False</property>
              <property name="spacing">0</property>

              <child>
                <widget class="GtkLabel" id="label2">
                  <property name="visible">True</property>
                  <property name="label" translatable="yes">label2</property>
                  <property name="use_underline">False</property>
                  <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
                  <property name="xalign">0.5</property>
                  <property name="yalign">0.5</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">False</property>
                  <property name="fill">False</property>
                </packing>
              </child>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">True</property>
              <property name="fill">True</property>
            </packing>
          </child>
        </widget>
      </child>
    </widget>
    <packing>
      <property name="padding">0</property>
      <property name="expand">True</property>
      <property name="fill">True</property>
    </packing>
  </child>
</widget>

</glade-interface>

------------------ end of kww.glade -------------------------



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8b
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libgtk2-gladexml-perl depends on:
ii  libatk1.0-0                 1.8.0-4      The ATK accessibility toolkit
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libglade2-0                 1:2.4.1-1    Library to load .glade files at ru
ii  libglib-perl                1:1.061-1    Perl interface to the GLib and GOb
ii  libglib2.0-0                2.4.8-1      The GLib library of C routines
ii  libgtk2-perl                1:1.061-1    Perl interface to the 2.x series o
ii  libgtk2.0-0                 2.4.14-2     The GTK+ graphical user interface 
ii  libpango1.0-0               1.6.0-3      Layout and rendering of internatio
ii  libxml2                     2.6.11-5     GNOME XML library
ii  perl                        5.8.4-5      Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.4]   5.8.4-5      The Pathologically Eclectic Rubbis
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to