Package: python-gtk2
Version: 2.6.2-1
Severity: normal

The following simple python code gives a segfault. This shouldnt happen. It
should raise an Exception instead.

#! /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"



Output is:

1
2
3
4
5

(test.py:11332): Pango-CRITICAL **: pango_font_map_load_fontset: assertion
`fontmap != NULL' failed

(test.py:11332): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion
`G_IS_OBJECT (object)' failed

(test.py:11332): GLib-GObject-CRITICAL **: g_object_set_qdata_full:
assertion `G_IS_OBJECT (object)' failed

(test.py:11332): Pango-CRITICAL **: pango_font_map_get_shape_engine_type:
assertion `PANGO_IS_FONT_MAP 
(fontmap)' failed

(test.py:11332): GLib-CRITICAL **: g_quark_from_string: assertion `string !=
NULL' failed
Segmentation fault



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages python-gtk2 depends on:
ii  python2.3-gtk2                2.6.2-1    Python bindings for the GTK+
widge

python-gtk2 recommends no packages.

-- no debconf information



-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


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

Reply via email to