GNOME Bugzilla – Bug 643653
Segmentation fault when doing some actions (gtk-2.22)
Last modified: 2018-06-29 22:54:30 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
+ Trace 226159
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!
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
+ Trace 226185
This looks like a bug in GTK. What version of GTK are you using?
2.22.1
Might be a duplicate of bug 638792 or at least related.
Apppears also with gnucash 2.4.5 Bacltrace:
+ Trace 226711
(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?
Christian: What version of gtk you need?
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.
Sorry but the dependencies block me the downgrade to gtk 2.20.
With: gtk2 2.24.4 gtk3 3.0.9 gnucash 2.4.5 Backtrace:
+ Trace 227022
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() ?
Appears also with: gtk2 2.24.4 gtk3 3.0.10 gnucash 2.4.6
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. :-(
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 ?
Everything OK if I run: env LC_ALL=it_IT.UTF-8 gnucash I was using it_IT@euro.
Thank you, this confirms this bug to be a duplicate of bug 628710. *** This bug has been marked as a duplicate of bug 628710 ***
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
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.