[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
glabels (2.2.7-2ubuntu1) lucid; urgency=low * debian/patches/20_no-zero-size-structs: Optimisation of glib calls to g_new0 with a zero size object will cause a divide-by-zero. So ensure all empty structs have a dummy variable so that they're not zero sized. thanks to EsbenMoseHansen (LP: #551958) ** Changed in: glabels (Ubuntu) Assignee: (unassigned) => SevenMachines (sevenmachines) ** Attachment added: "glabels_2.2.7-2ubuntu1.debdiff" http://launchpadlibrarian.net/44825181/glabels_2.2.7-2ubuntu1.debdiff -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
test build https://launchpad.net/~sevenmachines/+archive/release+1/+packages -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
hold on, theres a few more occasions this problem crops up, i'll do another patch -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
This should cover the other elements with a 0 struct. ** Attachment added: "glabels_2.2.7-2ubuntu1.debdiff" http://launchpadlibrarian.net/44826349/glabels_2.2.7-2ubuntu1.debdiff ** Changed in: glabels (Ubuntu) Assignee: SevenMachines (sevenmachines) => (unassigned) -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
Also, glabels will not open when clicking on a .glabels file made with a previous version of glabels. But I also have the problem of glabels shutting down when starting work in it. (as originally reported) -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
wolfen69: do you still get this problem with the possible test build mentioned previously? if so, can you open a new bug (if you havent already) and attach any info plus a sample old .glabels file -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
Source patched with latest diff and compiled, new deb file installed, PROBLEM SOLVED. Thank you all very, very much. I use glabels quite frequently. Anyone wishing to avoid the task of compiling the patched version may reach me at: grupo...@gmail.com. I'll be pleased to send along the program and its data files in dot-deb format. J.L.P.L. -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
i'm not sure if glib g_new should be handling the zero size case or not to be honest, if someone who knows more about glib could look into that and open a bug on glib if that makes sense. i'll mention this to the glabels people and see what they think at some point -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
SevenMachines: The new build seems to work good after doing a quick check of it. Older .glabels files open correctly, and I was able to work on a new file without it crashing. Will keep you informed if something changes. Keep up the good work. -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
SevenMachines: Thank you, your build works great. Now if we can only get your changes merged upstream.. -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
Alpha 3 and subsequent repository updates did not have this problem. -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
This is fixed in glabels upstream in 2.2.8 by adding place holder ints as has been done here, so the above patch or upgrading to the new version would both close this. its also been reported to glib as a possible bug https://bugzilla.gnome.org/show_bug.cgi?id=615379 ** Bug watch added: GNOME Bug Tracker #615379 https://bugzilla.gnome.org/show_bug.cgi?id=615379 -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
from debian sid glabels (2.2.8-1) unstable; urgency=low * New upstream release: - Fix crash caused by new g_new macros in glib-2.24.0 - Removed extra padding in "New label" dialog - Updated translations - New templates * Switch to dpkg-source 3.0 (quilt) format -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
** Changed in: glabels (Ubuntu) Status: Confirmed => Fix Released -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
** Visibility changed to: Public -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
** Changed in: glabels (Ubuntu) Status: New => Confirmed -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
gdb trace ** Attachment added: "gdb-glabels.txt" http://launchpadlibrarian.net/42632676/gdb-glabels.txt -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
Crashes when I open a glabels file also -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 551958] Re: glabels crashed with SIGFPE in g_type_create_instance()
This appears to be a bug in glibc. From glib/gmem.h The program crashes on this line: view_text->priv = g_new0 (glViewTextPrivate, 1); And gdb reports (gdb) p sizeof(glViewTextPrivate) $1 = 0 expanding g_new0 reveals #if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__) # define _G_NEW(struct_type, n_structs, func) \ (struct_type *) (__extension__ ({ \ gsize __n = (gsize) (n_structs); \ gsize __s = sizeof (struct_type); \ gpointer __p; \ if (__s == 1) \ __p = g_##func (__n); \ else if (__builtin_constant_p (__n) &&\ __n <= G_MAXSIZE / __s) \ __p = g_##func (__n * __s); \ else \ __p = g_##func##_n (__n, __s); \ __p; \ })) which crashes due to a divide by zero in G_MAXSIZE/__s since __s = sizeof(glViewTextPrivate) = 0. glViewTextPrivate is defined in view-text.c line 48. As a workaround, I simply added a dummy int to the (obviously empty struct): struct _glViewTextPrivate { int dummy; }; and again in view-image.c struct _glViewImagePrivate { int dummy; }; this seems to work. Attaching new diff.gz file. ** Patch added: "diff including my 2 changes" http://launchpadlibrarian.net/43144016/glabels_2.2.7-2.diff.gz -- glabels crashed with SIGFPE in g_type_create_instance() https://bugs.launchpad.net/bugs/551958 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs