unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#33958: Gnucash 3.3 segfaults when pressing control key
@ 2019-01-03  0:42 Maxim Cournoyer
  2019-01-03  2:27 ` bug#33958: Gnucash 3.3 segfaults when attempting to edit the register Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2019-01-03  0:42 UTC (permalink / raw)
  To: 33958

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---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33958: Gnucash 3.3 segfaults when attempting to edit the register
  2019-01-03  0:42 bug#33958: Gnucash 3.3 segfaults when pressing control key Maxim Cournoyer
@ 2019-01-03  2:27 ` Maxim Cournoyer
  2019-01-03  2:58   ` Maxim Cournoyer
  2020-09-14 12:58   ` Maxim Cournoyer
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2019-01-03  2:27 UTC (permalink / raw)
  To: 33958

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33958: Gnucash 3.3 segfaults when attempting to edit the register
  2019-01-03  2:27 ` bug#33958: Gnucash 3.3 segfaults when attempting to edit the register Maxim Cournoyer
@ 2019-01-03  2:58   ` Maxim Cournoyer
  2020-09-14 12:58   ` Maxim Cournoyer
  1 sibling, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2019-01-03  2:58 UTC (permalink / raw)
  To: 33958

Maxim Cournoyer <maxim.cournoyer@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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33958: Gnucash 3.3 segfaults when attempting to edit the register
  2019-01-03  2:27 ` bug#33958: Gnucash 3.3 segfaults when attempting to edit the register Maxim Cournoyer
  2019-01-03  2:58   ` Maxim Cournoyer
@ 2020-09-14 12:58   ` Maxim Cournoyer
  1 sibling, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2020-09-14 12:58 UTC (permalink / raw)
  To: 33958-done

Maxim Cournoyer <maxim.cournoyer@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-14 12:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-03  0:42 bug#33958: Gnucash 3.3 segfaults when pressing control key Maxim Cournoyer
2019-01-03  2:27 ` bug#33958: Gnucash 3.3 segfaults when attempting to edit the register Maxim Cournoyer
2019-01-03  2:58   ` Maxim Cournoyer
2020-09-14 12:58   ` Maxim Cournoyer

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git