Control: forwarded -1 https://bugzilla.gnome.org/show_bug.cgi?id=772672
Control: tags -1 + patch

On Tue, Apr 26, 2016 at 03:40:48PM +0700, Trần Ngọc Quân wrote:
> On 26/04/2016 15:23, Emilio Pozuelo Monfort wrote:
> > Please install libglib2.0-0-dbg and libgtk-3-0-dbg. Also install
> > gnome-todo-dbgsym from
> > http://debug.mirrors.debian.org/debian-debug/pool/main/g/gnome-todo/gnome-todo-dbgsym_3.20.0-1_amd64.deb
> I'm using 32-bit system. I install gnome-todo-dbgsym_3.20.0-1_i386.deb
> > Then get a new backtrace.
> See the attachment.

I managed to reproduce this in a i386 chroot, and the backtrace looks
pretty much like yours.  It probably looks like that because it's in the
middle of a bunch of varargs functions.

The problem is that in a g_object_new call, the "xalign" property is
being passed an int when it should be a float/double.  x86-64 gets away
with it, I think due to alignment, but i386 gets the types and
parameters mismatched and crashes from trying to treat a TRUE as a
string.

Attached patch fixes it.  Forwarded upstream.
>From 095ddfb6cae4fdc36f70e237c3d4a6917688cf30 Mon Sep 17 00:00:00 2001
From: Jason Crain <ja...@inspiresomeone.us>
Date: Sun, 9 Oct 2016 19:42:02 -0500
Subject: [PATCH] panel-scheduled: pass xalign as float

Pass the "xalign" property to g_object_new as a float instead of an int
so it matches the property definition.  Passing it as an int crashes
i386 machines.

https://bugzilla.gnome.org/show_bug.cgi?id=772672
---
 plugins/eds/gtd-panel-scheduled.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/eds/gtd-panel-scheduled.c b/plugins/eds/gtd-panel-scheduled.c
index ffbc7cb..ddde78f 100644
--- a/plugins/eds/gtd-panel-scheduled.c
+++ b/plugins/eds/gtd-panel-scheduled.c
@@ -127,7 +127,7 @@ create_label (const gchar *text,
                         "margin-left", 12,
                         "margin-bottom", 6,
                         "margin-top", first_header ? 6 : 18,
-                        "xalign", 0,
+                        "xalign", 0.0,
                         "hexpand", TRUE,
                         NULL);
 
-- 
2.9.3

Reply via email to