After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 643653 - Segmentation fault when doing some actions (gtk-2.22)
Segmentation fault when doing some actions (gtk-2.22)
Status: RESOLVED DUPLICATE of bug 628710
Product: GnuCash
Classification: Other
Component: User Interface General
2.4.x
Other Linux
: Normal critical
: ---
Assigned To: Christian Stimming
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2011-03-02 09:13 UTC by Fabrizio Antonangeli
Modified: 2018-06-29 22:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabrizio Antonangeli 2011-03-02 09:13:24 UTC
Everytime I click on File->Import->Import QIF or when i try to create a new customer gnucash crashes:

(gdb) r
Starting program: /usr/bin/gnucash 
[Thread debugging using libthread_db enabled]
gnc.bin-Message: main: binreloc relocation support was disabled at configure time.

[New Thread 0x7fffe9686700 (LWP 7873)]
[New Thread 0x7fffddad3700 (LWP 7877)]

;;; WARNING (gnc:make-report-anchor: No such report:  Income Over Time)

;;; WARNING (gnc:make-report-anchor: No such report:  Expense Over Time)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff57c6e90 in strncmp () from /lib/libc.so.6
(gdb) backtrace
  • #0 strncmp
    from /lib/libc.so.6
  • #1 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #2 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #3 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #4 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #5 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #6 gtk_tree_model_foreach
    from /usr/lib/libgtk-x11-2.0.so.0
  • #7 gtk_entry_completion_complete
    from /usr/lib/libgtk-x11-2.0.so.0
  • #8 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #9 ??
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #11 ??
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #13 ??
    from /usr/lib/libglib-2.0.so.0
  • #14 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #15 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #16 gnc_ui_start_event_loop
    from /usr/lib/gnucash/libgncmod-gnome-utils.so
  • #17 _start

Comment 1 André Klapper 2011-03-03 12:06:00 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Comment 2 Fabrizio Antonangeli 2011-03-03 16:50:54 UTC
Is this useful? ;-)
Thanks you.

(gdb) r
Starting program: /usr/bin/gnucash 
[Thread debugging using libthread_db enabled]
gnc.bin-Message: main: binreloc relocation support was disabled at configure time.

[New Thread 0x7fffe9686700 (LWP 21266)]
[New Thread 0x7fffd9ab5700 (LWP 21270)]

;;; WARNING (gnc:make-report-anchor: No such report:  Income Over Time)

;;; WARNING (gnc:make-report-anchor: No such report:  Expense Over Time)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff57c6e90 in strncmp () from /lib/libc.so.6
(gdb) backtrace
  • #0 strncmp
    from /lib/libc.so.6
  • #1 gtk_entry_completion_default_completion_func
    at gtkentrycompletion.c line 793
  • #2 gtk_entry_completion_visible_func
    at gtkentrycompletion.c line 822
  • #3 gtk_tree_model_filter_visible
    at gtktreemodelfilter.c line 764
  • #4 gtk_tree_model_filter_row_changed
    at gtktreemodelfilter.c line 1253
  • #5 gtk_tree_model_filter_refilter_helper
    at gtktreemodelfilter.c line 3452
  • #6 gtk_tree_model_foreach_helper
    at gtktreemodel.c line 1610
  • #7 IA__gtk_tree_model_foreach
    at gtktreemodel.c line 1656
  • #8 IA__gtk_entry_completion_complete
    at gtkentrycompletion.c line 1181
  • #9 check_completion_callback
    at gtkentry.c line 9660
  • #10 source_closure_marshal_BOOLEAN__VOID
    at gsourceclosure.c line 71
  • #11 g_closure_invoke
    at gclosure.c line 766
  • #12 source_closure_callback
    at gsourceclosure.c line 113
  • #13 g_main_dispatch
    at gmain.c line 2149
  • #14 g_main_context_dispatch
    at gmain.c line 2702
  • #15 g_main_context_iterate
    at gmain.c line 2780
  • #16 g_main_loop_run
    at gmain.c line 2988
  • #17 IA__gtk_main
    at gtkmain.c line 1237
  • #18 gnc_ui_start_event_loop
    from /usr/lib/gnucash/libgncmod-gnome-utils.so
  • #19 _start

Comment 3 Derek Atkins 2011-03-03 17:04:20 UTC
This looks like a bug in GTK.  What version of GTK are you using?
Comment 4 Fabrizio Antonangeli 2011-03-03 17:07:28 UTC
2.22.1
Comment 5 Geert Janssens 2011-03-03 22:03:47 UTC
Might be a duplicate of bug 638792 or at least related.
Comment 6 Fabrizio Antonangeli 2011-04-13 13:40:42 UTC
Apppears also with gnucash 2.4.5

Bacltrace:
  • #0 strncmp
    from /lib/libc.so.6
  • #1 gtk_entry_completion_default_completion_func
    at gtkentrycompletion.c line 793
  • #2 gtk_entry_completion_visible_func
    at gtkentrycompletion.c line 822
  • #3 gtk_tree_model_filter_visible
    at gtktreemodelfilter.c line 764
  • #4 gtk_tree_model_filter_row_changed
    at gtktreemodelfilter.c line 1253
  • #5 gtk_tree_model_filter_refilter_helper
    at gtktreemodelfilter.c line 3452
  • #6 gtk_tree_model_foreach_helper
    at gtktreemodel.c line 1610
  • #7 IA__gtk_tree_model_foreach
    at gtktreemodel.c line 1656
  • #8 IA__gtk_entry_completion_complete
    at gtkentrycompletion.c line 1181
  • #9 check_completion_callback
    at gtkentry.c line 9660
  • #10 source_closure_marshal_BOOLEAN__VOID
    at gsourceclosure.c line 71
  • #11 g_closure_invoke
    at gclosure.c line 766
  • #12 source_closure_callback
    at gsourceclosure.c line 113
  • #13 g_main_dispatch
    at gmain.c line 2149
  • #14 g_main_context_dispatch
    at gmain.c line 2702
  • #15 g_main_context_iterate
    at gmain.c line 2780
  • #16 g_main_loop_run
    at gmain.c line 2988
  • #17 IA__gtk_main
    at gtkmain.c line 1237
  • #18 gnc_ui_start_event_loop
    from /usr/lib/gnucash/libgncmod-gnome-utils.so
  • #19 _start

Comment 7 Christian Stimming 2011-04-18 12:09:38 UTC
(In reply to comment #5)
> Might be a duplicate of bug 638792 or at least related.

On the other hand the stack trace is completely different, so it's probably a different bug as well.

@Fabrizio: Any chance you can try with a different version of gtk and check whether the bug goes away?
Comment 8 Fabrizio Antonangeli 2011-04-18 12:15:50 UTC
Christian: What version of gtk you need?
Comment 9 Christian Stimming 2011-04-18 12:39:59 UTC
Just any different gtk version. Either 2.20.x, or 2.24.x. The stack trace shows it appears very deeply inside the GtkEntry code, so our guess is that a major other version will have this fixed already.
Comment 10 Fabrizio Antonangeli 2011-04-18 14:18:20 UTC
Sorry but the dependencies block me the downgrade to gtk 2.20.
Comment 11 Fabrizio Antonangeli 2011-05-06 08:13:13 UTC
With:
gtk2 2.24.4
gtk3 3.0.9
gnucash 2.4.5


Backtrace:
  • #0 strncmp
    from /lib/libc.so.6
  • #1 gtk_entry_completion_default_completion_func
    at gtkentrycompletion.c line 793
  • #2 gtk_entry_completion_visible_func
    at gtkentrycompletion.c line 822
  • #3 gtk_tree_model_filter_visible
    at gtktreemodelfilter.c line 764
  • #4 gtk_tree_model_filter_row_changed
    at gtktreemodelfilter.c line 1253
  • #5 gtk_tree_model_filter_refilter_helper
    at gtktreemodelfilter.c line 3457
  • #6 gtk_tree_model_foreach_helper
    at gtktreemodel.c line 1607
  • #7 IA__gtk_tree_model_foreach
    at gtktreemodel.c line 1653
  • #8 IA__gtk_tree_model_filter_refilter
    at gtktreemodelfilter.c line 3477
  • #9 IA__gtk_entry_completion_complete
    at gtkentrycompletion.c line 1182
  • #10 check_completion_callback
    at gtkentry.c line 9651
  • #11 source_closure_marshal_BOOLEAN__VOID
    at gsourceclosure.c line 71
  • #12 g_closure_invoke
    at gclosure.c line 767
  • #13 source_closure_callback
    at gsourceclosure.c line 113
  • #14 g_idle_dispatch
    at gmain.c line 4545
  • #15 g_main_dispatch
    at gmain.c line 2440
  • #16 g_main_context_dispatch
    at gmain.c line 3013
  • #17 g_main_context_iterate
    at gmain.c line 3091
  • #18 g_main_loop_run
    at gmain.c line 3299
  • #19 IA__gtk_main
    at gtkmain.c line 1256
  • #20 gnc_ui_start_event_loop
    from /usr/lib/gnucash/libgncmod-gnome-utils.so
  • #21 _start

Comment 12 Christian Stimming 2011-05-07 16:21:17 UTC
Ok, unfortunately the same crash and stack trace even in gtk 2.24. I'm still confused how this crash inside the gtk code can be caused by gnucash code. Maybe some dangling pointer that is accessed from the strncmp() in gtk_entry_completion_default_completion_func() ?
Comment 13 Fabrizio Antonangeli 2011-05-31 07:46:05 UTC
Appears also with:
gtk2 2.24.4
gtk3 3.0.10
gnucash 2.4.6
Comment 14 Fabrizio Antonangeli 2011-06-03 10:19:40 UTC
Hi,
Appears also if I open gnucash with a user that have no gnucash data:
appears the welcome message and if I choose the first or the second option, gnucash crashes with the same stacktrace. :-(
Comment 15 Geert Janssens 2011-06-11 14:11:38 UTC
Hmm, the stack trace is very similar to the one in bug 628710. Could this be a utf-8 related problem ?

Fabrizio: what locale are you using ? Could you try and reproduce the crash after you start gnucash in a UTF-8 equivalent of your locale, like described in bug 628710 comment 7 ?
Comment 16 Fabrizio Antonangeli 2011-06-11 15:54:40 UTC
Everything OK if I run:
env LC_ALL=it_IT.UTF-8 gnucash

I was using it_IT@euro.
Comment 17 Geert Janssens 2011-06-11 16:14:45 UTC
Thank you, this confirms this bug to be a duplicate of bug 628710.

*** This bug has been marked as a duplicate of bug 628710 ***
Comment 18 John Ralls 2017-09-24 22:44:35 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 19 John Ralls 2018-06-29 22:54:30 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=643653. Please update any external references or bookmarks.