Re: [Vala] Vala app crashing in vprintf on 32-bit arches, not on 64-bit arches



On Fri, Jun 17, 2016 at 7:55 AM, Michael Gratton <mike vee net> wrote:
Geary is suffering a bug which is causing it to frequently crash on
32-bit installations, in a place where it doesn't crash on a 64-bit
install. The crash occurs in vprintf, during a call to GLib.debug()
from an async method.

So it turns out the format string was bad ("%d" should have been "%lld" since a int64 was being passed in) but valac didn't complain - I only found the issue digging through the gcc output:

/home/mjg/geary/src/engine/imap-engine/imap-engine-minimal-folder.vala:1235:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘gint64 {aka long long int}’ [-Wformat=] debug("%s do_replay_removed_message: remote_position=%d unknown in local store "
            ^
/usr/include/glib-2.0/glib/gmessages.h:170:32: note: in definition of macro ‘g_debug’
                                __VA_ARGS__)
                               ^

Bug filed: <https://bugzilla.gnome.org/show_bug.cgi?id=767839>

//Mike

--
⊨ Michael Gratton, Percept Wrangler.
⚙ <http://mjog.vee.net/>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]