Bug#640855: gir1.2-pango-1.0: Double free after calling Pango.Context.get_font_description() from python

Tony Houghton h at realh.co.uk
Wed Sep 7 23:09:29 UTC 2011


Package: gir1.2-pango-1.0
Version: 1.28.4-3
Severity: normal

Dear Maintainer,
*** Please consider answering these questions, where appropiate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***

If I call Pango.Context.get_font_description() from python I get a crash
on exit from my function. There's a sort of backtrace which says it's
caused by a double free or corruption in pango_font_description_free.

I guess the problem is that python thinks it "owns" the
PangoFontDescription object, but the description of
pango_context_get_font_description() (C version) says it returns "a
pointer to the context's default font description. This value must not
be modified or freed." However, the result is not const, which might
have led to an oversight in gir that this object needs special treatment
eg pango_font_description_copy_static().

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

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

Versions of packages gir1.2-pango-1.0 depends on:
ii  gir1.2-freedesktop  0.10.8-2
ii  gir1.2-glib-2.0     0.10.8-2
ii  libpango1.0-0       1.28.4-3

gir1.2-pango-1.0 recommends no packages.

gir1.2-pango-1.0 suggests no packages.

-- no debconf information






More information about the pkg-gnome-maintainers mailing list