GNU bug report logs - #33958
GnuCash segfaults when attempting to edit the register (gtk/ibus issue)

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 3 Jan 2019 00:43:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33958 in the body.
You can then email your comments to 33958 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#33958; Package guix. (Thu, 03 Jan 2019 00:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 03 Jan 2019 00:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: Gnucash 3.3 segfaults when pressing control key
Date: Wed, 02 Jan 2019 19:42:14 -0500
This occurs using GnuCash 3.3 from Guix
707efe171a4e0e542a7d969c130195fa94b5d615.

It seems the problem has to do with Guile. Here's the start of the
program until a triggered crash, and its backtrace (sorry, no debugging
symbols :-/).

--8<---------------cut here---------------start------------->8---
(gdb) run
Starting program: /gnu/store/gl6vxy50h9v56fv5dsff3cl2ib9wbapm-gnucash-3.3/bin/.gnucash-real 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm
;;; Failed to autoload debug-context-from-image in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-base in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-from-image in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-from-image in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-base in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-base in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:277:25: warning: possibly unbound variable `debug-context-from-image'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:282:33: warning: possibly unbound variable `debug-context-base'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:283:17: warning: possibly unbound variable `find-program-debug-info'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:291:20: warning: possibly unbound variable `program-debug-info-name'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:323:9: warning: possibly unbound variable `find-source-for-addr'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:323:31: warning: possibly unbound variable `program-debug-info-addr'
;;; /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm:324:31: warning: possibly unbound variable `program-debug-info-context'
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-base in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-from-image in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-from-image in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload debug-context-base in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; Failed to autoload find-program-debug-info in (system vm debug):
;;; ERROR: missing interface for module (system vm debug)
;;; compiled /home/maxim/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1.3.1-gdb.scm.go
;;; compiling /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/2.2/system/base/types.scm
;;; compiled /home/maxim/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/2.2/system/base/types.scm.go
ERROR: In procedure type-pointer:
ERROR: In procedure gdbscm_type_pointer: Wrong type argument in position 1 (expecting gdb:type): #f
Error while executing Scheme code.[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/libthread_db.so.1".
[New Thread 0x7fffef349700 (LWP 31230)]
[Detaching after fork from child process 31231]
[New Thread 0x7fffee2ec700 (LWP 31232)]
[New Thread 0x7fffeda09700 (LWP 31233)]
[Detaching after fork from child process 31234]
[New Thread 0x7fffed15d700 (LWP 31235)]
[New Thread 0x7fffdffff700 (LWP 31236)]
[New Thread 0x7fffdf758700 (LWP 31237)]
[Detaching after fork from child process 31240]
Found Finance::Quote version 1.38
[New Thread 0x7fffddc7a700 (LWP 31241)]
[Thread 0x7fffddc7a700 (LWP 31241) exited]

Thread 1 ".gnucash-real" received signal SIGSEGV, Segmentation fault.
0x00007ffff74308b2 in _gdk_window_has_impl ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgdk-3.so.0
(gdb) bt
#0  0x00007ffff74308b2 in _gdk_window_has_impl ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgdk-3.so.0
#1  0x00007ffff746351e in gdk_x11_window_get_xid ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgdk-3.so.0
#2  0x00007fffdd474cd4 in gtk_im_context_xim_filter_keypress ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/gtk-3.0/3.0.0/immodules/im-xim.so
#3  0x00007ffff76f8b23 in gtk_im_multicontext_filter_keypress ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#4  0x00007ffff34bfa02 in gnucash_sheet_key_press_event ()
   from /gnu/store/gl6vxy50h9v56fv5dsff3cl2ib9wbapm-gnucash-3.3/lib/gnucash/libgncmod-register-gnome.so
#5  0x00007ffff789b4be in _gtk_marshal_BOOLEAN__BOXEDv ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#6  0x00007ffff703a7e2 in _g_closure_invoke_va ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#7  0x00007ffff705494b in g_signal_emit_valist ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#8  0x00007ffff7055502 in g_signal_emit ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#9  0x00007ffff784c134 in gtk_widget_event_internal ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#10 0x00007ffff786be4b in gtk_window_propagate_key_event ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#11 0x00007ffff786f82b in gtk_window_key_press_event ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#12 0x00007ffff789b4be in _gtk_marshal_BOOLEAN__BOXEDv ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#13 0x00007ffff703a894 in _g_closure_invoke_va ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#14 0x00007ffff705494b in g_signal_emit_valist ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#15 0x00007ffff7055502 in g_signal_emit ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libgobject-2.0.so.0
#16 0x00007ffff784c134 in gtk_widget_event_internal ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#17 0x00007ffff7714f19 in propagate_event ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#18 0x00007ffff7716d62 in gtk_main_do_event ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#19 0x00007ffff7420e75 in _gdk_event_emit ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgdk-3.so.0
#20 0x00007ffff744fea2 in gdk_event_source_dispatch ()
   from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgdk-3.so.0
#21 0x00007ffff7c53b57 in g_main_context_dispatch ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libglib-2.0.so.0
#22 0x00007ffff7c53d98 in g_main_context_iterate.isra ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libglib-2.0.so.0
#23 0x00007ffff7c540b2 in g_main_loop_run ()
   from /gnu/store/zgdkslp244kpinxhbgiihzpc4qna86b4-glib-2.56.2/lib/libglib-2.0.so.0
#24 0x00007ffff7715fe5 in gtk_main () from /gnu/store/q9qrh9xkd3clh06qq48d9y889gxskppv-gtk+-3.24.0/lib/libgtk-3.so.0
#25 0x00007ffff33d7bbd in gnc_ui_start_event_loop ()
   from /gnu/store/gl6vxy50h9v56fv5dsff3cl2ib9wbapm-gnucash-3.3/lib/gnucash/libgncmod-gnome-utils.so
#26 0x0000000000404079 in inner_main ()
#27 0x00007ffff7dfb8bd in invoke_main_func ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#28 0x00007ffff7dde08a in c_body () from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#29 0x00007ffff7e5d715 in vm_regular_engine ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#30 0x00007ffff7e60d6a in scm_call_n ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#31 0x00007ffff7e4ff66 in catch () from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#32 0x00007ffff7dde670 in scm_i_with_continuation_barrier ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#33 0x00007ffff7dde705 in scm_c_with_continuation_barrier ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#34 0x00007ffff7e4eb7c in with_guile ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
--Type <RET> for more, q to quit, c to continue without paging--
#35 0x00007ffff7d3d858 in GC_call_with_stack_base ()
   from /gnu/store/04vqghzmpqzxpd94h1q931xpmazp5s7g-libgc-7.6.6/lib/libgc.so.1
#36 0x00007ffff7e4ef18 in scm_with_guile ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#37 0x00007ffff7dfba52 in scm_boot_guile ()
   from /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/lib/libguile-2.2.so.1
#38 0x0000000000403a8f in main ()
--8<---------------cut here---------------end--------------->8---




Changed bug title to 'Gnucash 3.3 segfaults when attempting to edit the register' from 'Gnucash 3.3 segfaults when pressing control key' Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 03 Jan 2019 02:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#33958; Package guix. (Thu, 03 Jan 2019 02:28:01 GMT) Full text and rfc822 format available.

Message #10 received at 33958 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 33958 <at> debbugs.gnu.org
Subject: Re: bug#33958: Gnucash 3.3 segfaults when attempting to edit the
 register
Date: Wed, 02 Jan 2019 21:27:42 -0500
Apparently, this would be a bug in GTK.  The segfault occurs in the
function `gdk_window_has_impl' and has been reported upstream [0].

There doesn't seem to be a solution readily available, unfortunately.

[0]  https://gitlab.gnome.org/GNOME/gtk/issues/61




Information forwarded to bug-guix <at> gnu.org:
bug#33958; Package guix. (Thu, 03 Jan 2019 02:59:02 GMT) Full text and rfc822 format available.

Message #13 received at 33958 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 33958 <at> debbugs.gnu.org
Subject: Re: bug#33958: Gnucash 3.3 segfaults when attempting to edit the
 register
Date: Wed, 02 Jan 2019 21:58:17 -0500
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> There doesn't seem to be a solution readily available, unfortunately.
>
> [0]  https://gitlab.gnome.org/GNOME/gtk/issues/61

The crash is triggered by using IBus and configuring an IM module (such
as can be done for example by setting the GTK_IM_MODULE environment
variable).  In my case, I could start GnuCash with:

$ GTK_IM_MODULE= gnucash

and this works around the segfaults.




Changed bug title to 'GnuCash segfaults when attempting to edit the register (gtk/ibus issue)' from 'Gnucash 3.3 segfaults when attempting to edit the register' Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 05 Jan 2019 04:40:02 GMT) Full text and rfc822 format available.

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 14 Sep 2020 12:59:03 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Mon, 14 Sep 2020 12:59:03 GMT) Full text and rfc822 format available.

Message #20 received at 33958-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 33958-done <at> debbugs.gnu.org
Subject: Re: bug#33958: Gnucash 3.3 segfaults when attempting to edit the
 register
Date: Mon, 14 Sep 2020 08:58:47 -0400
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Apparently, this would be a bug in GTK.  The segfault occurs in the
> function `gdk_window_has_impl' and has been reported upstream [0].
>
> There doesn't seem to be a solution readily available, unfortunately.
>
> [0]  https://gitlab.gnome.org/GNOME/gtk/issues/61

The latest comment on
https://gitlab.gnome.org/GNOME/gtk/-/issues/61#note_909885 suggests the
issue is fixed in GTK+ 3.24.23.

I just tested with the version of GTK we are currently using (GTK+
3.24.20) and I can no longer reproduce the crash.

Closing!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Oct 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 194 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.