Re: gnucash 2.7.5 segfault when typing in account field

2018-03-03 Thread Mathieu Clabaut
Bug opened upstream : https://gitlab.gnome.org/GNOME/gtk/issues/61

Thanks a lot.

Le ven. 2 mars 2018 à 17:07, John Ralls  a écrit :

>
>
> On Mar 2, 2018, at 8:29 AM, Mathieu Clabaut  wrote:
>
> Here it is :
>
>Message: Process 4469 (gnucash) of user 1000 dumped core.
>
> Stack trace of thread 4469:
> #0  0x7f0b7cfd7d42 gdk_window_has_impl (libgdk-3.so.0)
> #1  0x7f0b7d01020f gdk_x11_window_get_xid (libgdk-3.so.0)
> #2  0x7f0b4c839a73 gtk_im_context_xim_filter_keypress 
> (im-xim.so)
> #3  0x7f0b7fa6b6e4 gtk_im_multicontext_filter_keypress 
> (libgtk-3.so.0)
> #4  0x7f0b7d4b287e gnucash_sheet_key_press_event 
> (libgncmod-register-gnome.so)
> #5  0x7f0b7fa8ce78 _gtk_marshal_BOOLEAN__BOXEDv 
> (libgtk-3.so.0)
> #6  0x7f0b7f264db1 n/a (libgobject-2.0.so.0)
> #7  0x7f0b7f2814b4 g_signal_emit_valist 
> (libgobject-2.0.so.0)
> #8  0x7f0b7f282240 g_signal_emit (libgobject-2.0.so.0)
> #9  0x7f0b7fbe02c5 gtk_widget_event_internal 
> (libgtk-3.so.0)
> #10 0x7f0b7fc01ae4 gtk_window_propagate_key_event 
> (libgtk-3.so.0)
> #11 0x7f0b7fc0572c gtk_window_key_press_event 
> (libgtk-3.so.0)
>
>
> Interesting.
> The actual crash is at
> https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-22/gdk/gdkwindow.c#L664
> Where they don’t check for a NULL window before dereferencing it.
> Looks to me like the problem is either at
> https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-22/modules/input/gtkimcontextxim.c#L656
> or the next line. One of those calls is returning NULL and the code
> assumes that it doesn’t.
>
> That might be because the event->window is NULL. That’s still a Gtk
> problem, though I’ll leave it up to the Gtk folks to figure it out. GnuCash
> is clean on this one.
>
> You should probably start off by filing a bug with Arch and let the Gtk
> packager take it up with the Gtk folks.
>
> Regards,
> John Ralls
>
>
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Re: gnucash 2.7.5 segfault when typing in account field

2018-03-03 Thread Mathieu Clabaut
.so.0)
#4  0x7f0b801e526a n/a (libglib-2.0.so.0)
#5  0x7f0b7e2e708c start_thread (libpthread.so.0)
#6  0x7f0b7e01ee7f __clone (libc.so.6)

Stack trace of thread 4478:
#0  0x7f0b7e2ed3bd pthread_cond_wait@@GLIBC_2.3.2
(libpthread.so.0)
#1  0x7f0b7bbf7b98 n/a (libgc.so.1)
#2  0x7f0b7bbed39a n/a (libgc.so.1)
#3  0x7f0b7bbf7b4f n/a (libgc.so.1)
#4  0x7f0b7e2e708c start_thread (libpthread.so.0)
#5  0x7f0b7e01ee7f __clone (libc.so.6)

Stack trace of thread 4481:
#0  0x7f0b7e2f0988 read (libpthread.so.0)
#1  0x7f0b804d64e8 n/a (libguile-2.2.so.1)
#2  0x7f0b7bbf6ad2 n/a (libgc.so.1)
#3  0x7f0b7bbea84c n/a (libgc.so.1)
#4  0x7f0b7bbf08bc GC_do_blocking (libgc.so.1)
#5  0x7f0b8053d5cb scm_without_guile (libguile-2.2.so.1)
#6  0x7f0b804d694c n/a (libguile-2.2.so.1)
#7  0x7f0b804c65fa n/a (libguile-2.2.so.1)
#8  0x7f0b8054d83d n/a (libguile-2.2.so.1)
#9  0x7f0b8055010b scm_call_n (libguile-2.2.so.1)
#10 0x7f0b8053e79b n/a (libguile-2.2.so.1)
#11 0x7f0b804c6c32 n/a (libguile-2.2.so.1)
#12 0x7f0b804c6d16 scm_c_with_continuation_barrier
(libguile-2.2.so.1)
#13 0x7f0b8053d1dd n/a (libguile-2.2.so.1)
#14 0x7f0b7bbf0855 GC_call_with_stack_base (libgc.so.1)
#15 0x7f0b8053d559 scm_with_guile (libguile-2.2.so.1)
#16 0x7f0b7e2e708c start_thread (libpthread.so.0)
#17 0x7f0b7e01ee7f __clone (libc.so.6)

Stack trace of thread 4479:
#0  0x7f0b7e2ed3bd pthread_cond_wait@@GLIBC_2.3.2
(libpthread.so.0)
#1  0x7f0b7bbf7b98 n/a (libgc.so.1)
#2  0x7f0b7bbed39a n/a (libgc.so.1)
#3  0x7f0b7bbf7b4f n/a (libgc.so.1)
#4  0x7f0b7e2e708c start_thread (libpthread.so.0)
#5  0x7f0b7e01ee7f __clone (libc.so.6)

Stack trace of thread 4480:
#0  0x7f0b7e2ed3bd pthread_cond_wait@@GLIBC_2.3.2
(libpthread.so.0)
#1  0x7f0b7bbf7b98 n/a (libgc.so.1)
#2  0x7f0b7bbed39a n/a (libgc.so.1)
#3  0x7f0b7bbf7b4f n/a (libgc.so.1)
#4  0x7f0b7e2e708c start_thread (libpthread.so.0)
#5  0x7f0b7e01ee7f __clone (libc.so.6)

​

Le ven. 2 mars 2018 à 14:50, John Ralls <jra...@ceridwen.us> a écrit :

>
>
> > On Feb 27, 2018, at 3:47 AM, Mathieu Clabaut <math...@clabaut.net>
> wrote:
> >
> > As requested by the gnucash-devel mailing list owner, I forward this
> > message to the gnucash-user mailing list.
> >
> > Best regards,
> >
> > -- Forwarded message -
> > From: Mathieu Clabaut <math...@clabaut.net>
> > Date: lun. 26 févr. 2018 à 23:14
> > Subject: gnucash 2.7.5 segfault when typing in account field
> > To: <gnucash-de...@gnucash.org>
> >
> >
> > Trying least gnucash 2.7.5 on arch linux 4.15.5, I get the following
> stack
> > trace when trying to edit the account of one transaction :
> > gtk3 has version 3.22.28-1
> >
> >
> >   PID: 16105 (gnucash)
> >   UID: 1000 (clabaut)
> >   GID: 1000 (clabaut)
> >Signal: 11 (SEGV)
> > Timestamp: Mon 2018-02-26 23:04:55 CET (2min 28s ago)
> >  Command Line: gnucash /tmp/account.gnucash
> >Executable: /usr/bin/gnucash
> > Control Group: /user.slice/user-1000.slice/session-c2.scope
> >  Unit: session-c2.scope
> > Slice: user-1000.slice
> >   Session: c2
> > Owner UID: 1000 (clabaut)
> >   Storage:
> >
> /var/lib/systemd/coredump/core.gnucash.1000.a06b0c2bd03041caa10965740c06cdee.16105.151968269500.lz4
> >   Message: Process 16105 (gnucash) of user 1000 dumped core.
> >
> >Stack trace of thread 16105:
> >#0  0x7f32dc645d42 n/a (libgdk-3.so.0)
> >#1  0x7f32dc67e20f gdk_x11_window_get_xid
> > (libgdk-3.so.0)
> >#2  0x7f32acb5da73 n/a (im-xim.so)
> >#3  0x7f32df0da6e4 n/a (libgtk-3.so.0)
> >#4  0x7f32dcb208ae n/a (libgncmod-register-gnome.so)
> >#5  0x7f32df0fbe78 n/a (libgtk-3.so.0)
> >#6  0x7f32de8d3db1 n/a (libgobject-2.0.so.0)
> >#7  0x0

Re: gnucash 2.7.5 segfault when typing in account field

2018-03-02 Thread John Ralls


> On Mar 2, 2018, at 8:29 AM, Mathieu Clabaut  wrote:
> 
> Here it is :
> 
>Message: Process 4469 (gnucash) of user 1000 dumped core.
> 
> Stack trace of thread 4469:
> #0  0x7f0b7cfd7d42 gdk_window_has_impl (libgdk-3.so.0)
> #1  0x7f0b7d01020f gdk_x11_window_get_xid (libgdk-3.so.0)
> #2  0x7f0b4c839a73 gtk_im_context_xim_filter_keypress 
> (im-xim.so)
> #3  0x7f0b7fa6b6e4 gtk_im_multicontext_filter_keypress 
> (libgtk-3.so.0)
> #4  0x7f0b7d4b287e gnucash_sheet_key_press_event 
> (libgncmod-register-gnome.so)
> #5  0x7f0b7fa8ce78 _gtk_marshal_BOOLEAN__BOXEDv 
> (libgtk-3.so.0)
> #6  0x7f0b7f264db1 n/a (libgobject-2.0.so.0)
> #7  0x7f0b7f2814b4 g_signal_emit_valist 
> (libgobject-2.0.so.0)
> #8  0x7f0b7f282240 g_signal_emit (libgobject-2.0.so.0)
> #9  0x7f0b7fbe02c5 gtk_widget_event_internal 
> (libgtk-3.so.0)
> #10 0x7f0b7fc01ae4 gtk_window_propagate_key_event 
> (libgtk-3.so.0)
> #11 0x7f0b7fc0572c gtk_window_key_press_event 
> (libgtk-3.so.0)

Interesting. 
The actual crash is at 
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-22/gdk/gdkwindow.c#L664 

Where they don’t check for a NULL window before dereferencing it.
Looks to me like the problem is either at 
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-22/modules/input/gtkimcontextxim.c#L656
 

 
or the next line. One of those calls is returning NULL and the code assumes 
that it doesn’t.

That might be because the event->window is NULL. That’s still a Gtk problem, 
though I’ll leave it up to the Gtk folks to figure it out. GnuCash is clean on 
this one.

You should probably start off by filing a bug with Arch and let the Gtk 
packager take it up with the Gtk folks.

Regards,
John Ralls


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Re: gnucash 2.7.5 segfault when typing in account field

2018-03-02 Thread John Ralls


> On Feb 27, 2018, at 3:47 AM, Mathieu Clabaut <math...@clabaut.net> wrote:
> 
> As requested by the gnucash-devel mailing list owner, I forward this
> message to the gnucash-user mailing list.
> 
> Best regards,
> 
> -- Forwarded message -
> From: Mathieu Clabaut <math...@clabaut.net>
> Date: lun. 26 févr. 2018 à 23:14
> Subject: gnucash 2.7.5 segfault when typing in account field
> To: <gnucash-de...@gnucash.org>
> 
> 
> Trying least gnucash 2.7.5 on arch linux 4.15.5, I get the following stack
> trace when trying to edit the account of one transaction :
> gtk3 has version 3.22.28-1
> 
> 
>   PID: 16105 (gnucash)
>   UID: 1000 (clabaut)
>   GID: 1000 (clabaut)
>Signal: 11 (SEGV)
> Timestamp: Mon 2018-02-26 23:04:55 CET (2min 28s ago)
>  Command Line: gnucash /tmp/account.gnucash
>Executable: /usr/bin/gnucash
> Control Group: /user.slice/user-1000.slice/session-c2.scope
>  Unit: session-c2.scope
> Slice: user-1000.slice
>   Session: c2
> Owner UID: 1000 (clabaut)
>   Storage:
> /var/lib/systemd/coredump/core.gnucash.1000.a06b0c2bd03041caa10965740c06cdee.16105.151968269500.lz4
>   Message: Process 16105 (gnucash) of user 1000 dumped core.
> 
>Stack trace of thread 16105:
>#0  0x7f32dc645d42 n/a (libgdk-3.so.0)
>#1  0x7f32dc67e20f gdk_x11_window_get_xid
> (libgdk-3.so.0)
>#2  0x7f32acb5da73 n/a (im-xim.so)
>#3  0x7f32df0da6e4 n/a (libgtk-3.so.0)
>#4  0x7f32dcb208ae n/a (libgncmod-register-gnome.so)
>#5  0x7f32df0fbe78 n/a (libgtk-3.so.0)
>#6  0x7f32de8d3db1 n/a (libgobject-2.0.so.0)
>#7  0x7f32de8f04b4 g_signal_emit_valist
> (libgobject-2.0.so.0)

It looks at first blush like a bug in Gtk3, but it’s hard to be sure without 
being able to see the actual function calls. Can you install debug symbols for 
gtk3 (including gdk-x11) and gnucash, crash it again, and make a new stack 
trace?

Regards,
John Ralls


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Fwd: gnucash 2.7.5 segfault when typing in account field

2018-03-01 Thread Mathieu Clabaut
As requested by the gnucash-devel mailing list owner, I forward this
message to the gnucash-user mailing list.

Best regards,

-- Forwarded message -
From: Mathieu Clabaut <math...@clabaut.net>
Date: lun. 26 févr. 2018 à 23:14
Subject: gnucash 2.7.5 segfault when typing in account field
To: <gnucash-de...@gnucash.org>


Trying least gnucash 2.7.5 on arch linux 4.15.5, I get the following stack
trace when trying to edit the account of one transaction :
gtk3 has version 3.22.28-1


   PID: 16105 (gnucash)
   UID: 1000 (clabaut)
   GID: 1000 (clabaut)
Signal: 11 (SEGV)
 Timestamp: Mon 2018-02-26 23:04:55 CET (2min 28s ago)
  Command Line: gnucash /tmp/account.gnucash
Executable: /usr/bin/gnucash
 Control Group: /user.slice/user-1000.slice/session-c2.scope
  Unit: session-c2.scope
 Slice: user-1000.slice
   Session: c2
 Owner UID: 1000 (clabaut)
   Storage:
/var/lib/systemd/coredump/core.gnucash.1000.a06b0c2bd03041caa10965740c06cdee.16105.151968269500.lz4
   Message: Process 16105 (gnucash) of user 1000 dumped core.

Stack trace of thread 16105:
#0  0x7f32dc645d42 n/a (libgdk-3.so.0)
#1  0x7f32dc67e20f gdk_x11_window_get_xid
(libgdk-3.so.0)
#2  0x7f32acb5da73 n/a (im-xim.so)
#3  0x7f32df0da6e4 n/a (libgtk-3.so.0)
#4  0x7f32dcb208ae n/a (libgncmod-register-gnome.so)
#5  0x7f32df0fbe78 n/a (libgtk-3.so.0)
#6  0x7f32de8d3db1 n/a (libgobject-2.0.so.0)
#7  0x7f32de8f04b4 g_signal_emit_valist
(libgobject-2.0.so.0)
#8  0x7f32de8f1240 g_signal_emit (libgobject-2.0.so.0)
#9  0x7f32df24f2c5 n/a (libgtk-3.so.0)
#10 0x7f32df270ae4 gtk_window_propagate_key_event
(libgtk-3.so.0)
#11 0x7f32df27472c n/a (libgtk-3.so.0)
#12 0x7f32df0fbe78 n/a (libgtk-3.so.0)
#13 0x7f32de8d3ea6 n/a (libgobject-2.0.so.0)
#14 0x7f32de8f04b4 g_signal_emit_valist
(libgobject-2.0.so.0)
#15 0x7f32de8f1240 g_signal_emit (libgobject-2.0.so.0)
#16 0x7f32df24f2c5 n/a (libgtk-3.so.0)
#17 0x7f32df0f8cb2 n/a (libgtk-3.so.0)
#18 0x7f32df0fae33 gtk_main_do_event (libgtk-3.so.0)
#19 0x7f32dc6359f6 n/a (libgdk-3.so.0)
#20 0x7f32dc668275 n/a (libgdk-3.so.0)
#21 0x7f32df82be38 g_main_context_dispatch
(libglib-2.0.so.0)
#22 0x7f32df82c081 n/a (libglib-2.0.so.0)
#23 0x7f32df82c3b2 g_main_loop_run (libglib-2.0.so.0)
#24 0x7f32df0f9eff gtk_main (libgtk-3.so.0)
#25 0x7f32de626ecf gnc_ui_start_event_loop
(libgncmod-gnome-utils.so)
#26 0x55ea50d57446 n/a (gnucash)
#27 0x7f32dfb549ee n/a (libguile-2.2.so.1)
#28 0x7f32dfb355fa n/a (libguile-2.2.so.1)
#29 0x7f32dfbbc83d n/a (libguile-2.2.so.1)
#30 0x7f32dfbbf10b scm_call_n (libguile-2.2.so.1)
#31 0x7f32dfbad79b n/a (libguile-2.2.so.1)
#32 0x7f32dfb35c32 n/a (libguile-2.2.so.1)
#33 0x7f32dfb35d16 scm_c_with_continuation_barrier
(libguile-2.2.so.1)
#34 0x7f32dfbac1dd n/a (libguile-2.2.so.1)
#35 0x7f32db25e855 GC_call_with_stack_base (libgc.so.1)
#36 0x7f32dfbac559 scm_with_guile (libguile-2.2.so.1)
#37 0x7f32dfb54be4 scm_boot_guile (libguile-2.2.so.1)
#38 0x55ea50d56cfd main (gnucash)
#39 0x7f32dd5b7f4a __libc_start_main (libc.so.6)
#40 0x55ea50d56eda _start (gnucash)

Stack trace of thread 16107:
#0  0x7f32dd68297b __poll (libc.so.6)
#1  0x7f32df82bff3 n/a (libglib-2.0.so.0)
#2  0x7f32df82c10e g_main_context_iteration
(libglib-2.0.so.0)
#3  0x7f32df82c162 n/a (libglib-2.0.so.0)
#4  0x7f32df85426a n/a (libglib-2.0.so.0)
#5  0x7f32dd95508c start_thread (libpthread.so.0)
#6  0x7f32dd68ce7f __clone (libc.so.6)

Stack trace of thread 16111:
#0  0x7f32dd95b3bd pthread_cond_wait@@GLIBC_2.3.2
(libpthread.so.0)
#1  0x7f32db265b98 n/a (libgc.so.1)
#2  0x7f32db25b39a n/a (libgc.so.1)
#3  0x7f32db265b4f n/a (libgc.so.1)
#4  0x7f32dd95508c start_thread (libpthread.so.0)
#5  0x7f32dd68ce7f __clone (libc.so.6)

Stack trace of thread 16112:
#0  0x7f32dd95b3bd pthread_cond_wait@@GLIBC_2.3.2
(lib