Bug#736254: libglib-object-introspection-perl: Incorrect memory allocation cause segfaults in reverse-dependencies

intrigeri at debian.org intrigeri at debian.org
Tue Jan 21 15:41:45 UTC 2014


Package: libglib-object-introspection-perl
Version: 0.009-1
Severity: important
Tags: fixed-upstream
Control: fixed -1 0.012-1
Control: blocks 695838 with -1

Hi,

as reported on #695838, parcimonie-applet (from the parcimonie
package) segfaults periodically on Wheezy. This does not happen on
current testing/sid.

I have tracked this down to a bug in
libglib-object-introspection-perl, and my Git bisection lead me to
think that the underlying issues was fixed upstream in 0.012 by the
following commit:

    commit 1e4f04c1fea19e4d04b0ccf6d7bfc0b353e57562
    Author: Torsten Schönfeld <kaffeetisch at gmx.de>
    Date:   Tue Aug 14 21:23:35 2012 +0200

    Use the correct allocator for caller-allocated boxed out-args
    
    Previously, we simply always used malloc().  But for a boxed type, which has an
    associated custom free function, this might not be the correct allocator.  For
    example, GtkTreeIter uses GSlice.  Make an extra copy of the malloc()-ed block
    to ensure consistency.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680380

Cherry-picking this commit on top of Wheezy's 0.009-1 is enough to fix
this problem for me. FTR, I intend to propose a stable update that
applies this patch.

Cheers,
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc



More information about the pkg-perl-maintainers mailing list