Package: python3-gobject
Version: 2.28.6-5
Severity: normal

(test.py is attached)

$ python3 test.py # then right-click the icon
popup_menu
Segmentation fault
$ python3 test.py # then right-click the icon
popup_menu
Illegal instruction
$ python test.py # then right-click the icon, and then click `Quit'
popup_menu
$

While test.py works with python 2, it crashes randomly with python
3. Thus there is very likely to be a bug in python3-gobject.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.utf8, LC_CTYPE=zh_CN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-gobject depends on:
ii  gir1.2-glib-2.0        0.10.8-2     
ii  libc6                  2.13-21      
ii  libffi5                3.0.10~rc10-3
ii  libgirepository-1.0-1  0.10.8-2     
ii  libglib2.0-0           2.28.6-1     
ii  python3                3.2-3        

python3-gobject recommends no packages.

Versions of packages python3-gobject suggests:
pn  python3-gobject-dbg  <none>

-- no debconf information
#!/usr/bin/env python3

from gi.repository import Gtk

def popup_menu(si, button, act_time):
    global m
    print('popup_menu')
    m.popup(None, None,
            # Workaround a bug in GTK+.
            # https://bugzilla.gnome.org/show_bug.cgi?id=645192
            lambda m, p, s:
                Gtk.StatusIcon.position_menu(m, s),
            si, button, act_time)

Gtk.init(None)
si = Gtk.StatusIcon(title='Info',
                    icon_name='info')
si.connect('popup-menu', popup_menu)
m = Gtk.Menu()
q = Gtk.ImageMenuItem(label=Gtk.STOCK_QUIT,
                      use_stock=True)
q.connect('activate', lambda i: Gtk.main_quit())
m.append(q)
m.show_all()
Gtk.main()

Reply via email to