GNOME Bugzilla – Bug 317342
Segfault with pango
Last modified: 2005-09-27 14:47:06 UTC
Distribution/Version: Debian unstable/experimental Here's the original "upstream submission" which should have come to the BTS: ------------------------ Debian got a bug report (http://bugs.debian.org/317105) about the following script segfaulting: #! /usr/bin/env python import pango import gtk.gdk print "1" p = gtk.gdk.Pixmap(None,768,512,24) print "2" gc = p.new_gc() print "3" pl = pango.Layout(pango.Context()) print "4" pl.set_text("H E L L O") print "5" p.draw_layout(gc,10,10,pl) print "6" Obviously the script is buggy in that it uses pango.Context() which can't work as that class is abstract. But it should fail with an exception at that point instead of segfaulting. I wanted to create a path for that already but I wonder how you do that with other classes a user is not allowed to create manually... It seems like you are using G_TYPE_IS_ABSTRACT to find out in pyg_object_new so this might be a bug in Pango than? ------------------------ I've reproduced the bug with pygtk 2.6 and 2.8.
*** This bug has been marked as a duplicate of 317105 ***
oops, sorry, I was not careful enough while checking =/
marked as duplicate of the wrong bug
*** This bug has been marked as a duplicate of 311139 ***