Crash when implement do_startup method in GApplication subclass

Bug #904168 reported by Iven Hsu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pygobject
Invalid
Medium
pygobject (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

When I subclass the GApplication class, and implement do_startup method in my program, python crashes with ``Segment Fault`` or ``Illegal instruction``.

Everything works well if I comment the do_startup method.

The code is attached.

I'm using Ubuntu 11.10 x86_64 with python3-gobject 3.0.0-ubuntu4.

Revision history for this message
Iven Hsu (ivenvd) wrote :
Iven Hsu (ivenvd)
summary: - Crash when GApplication
+ Crash when implement do_startup method in GApplication subclass
Revision history for this message
Martin Pitt (pitti) wrote :

In current precise, with both python 2 and 3 I now get

$ python3 /tmp/do_startup.py

GLib-GIO-CRITICAL **: GApplication subclass '__main__+Application' failed to chain up on ::startup (from start of override function)

and a clean exit code 0. do_startup() actually does get called. I think this is because the functions are just empty stubs.

Can you confirm that this works properly now with pygobject 3.1.1?

Changed in pygobject (Ubuntu):
status: New → Incomplete
Revision history for this message
Iven Hsu (ivenvd) wrote :

I still meet the same problem in updated precise, also verified on another machine.

Changed in pygobject:
importance: Unknown → Medium
status: Unknown → Incomplete
Martin Pitt (pitti)
Changed in pygobject (Ubuntu):
status: Incomplete → Triaged
Changed in pygobject:
status: Incomplete → Confirmed
Changed in pygobject:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.