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 769571 - Crash opening file from 2.6.1-2 Mint 17.3
Crash opening file from 2.6.1-2 Mint 17.3
Status: RESOLVED DUPLICATE of bug 764871
Product: GnuCash
Classification: Other
Component: General
2.6.12
Other Linux
: High critical
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-06 03:51 UTC by omvsj
Modified: 2018-06-29 23:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This file can open in previous version (41.91 KB, application/x-gnucash)
2016-08-06 03:51 UTC, omvsj
Details
This is the result of the generated .crash file by apport (135.76 KB, text/plain)
2016-08-06 14:11 UTC, omvsj
Details
Trace file of the crash opening file (442.30 KB, text/plain)
2016-08-06 14:21 UTC, omvsj
Details

Description omvsj 2016-08-06 03:51:57 UTC
Created attachment 332814 [details]
This file can open in previous version

I had all my account information in a file that opens correctly in Linux Mint 17.3 and GNUCash 2.6.1-2

In a brand new system with Linux Mint 18 and GNUCash 2.6.12-1 it just crash trying to open the file.

I installed again Linux Mint 17.3 in a virtual machine and I can open the file but in the host with Mint 18 it just crash with

*** Error in `gnucash': free(): invalid pointer: 0x000055a80ce8ca40 ***
Comment 1 André Klapper 2016-08-06 09:22:04 UTC
Thanks for taking the time to report this.
Without a stack trace from the crash it's very hard to determine what caused it.
Can you get us a stack trace? Please see https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces for more information on how to do so. When pasting a stack trace in this bug report, please reset the status of this bug report from NEEDINFO to its previous status. Thanks in advance!
Comment 2 John Ralls 2016-08-06 13:57:16 UTC
A stack trace would indeed be helpful, and you can find friendlier instructions for getting one at http://wiki.gnucash.org/wiki/Stack_Trace.

Another helpful troubleshooting aid is the tracefile, see http://wiki.gnucash.org/wiki/Tracefile. Please find the tracefile from the crash and attach it here.
Comment 3 omvsj 2016-08-06 14:10:44 UTC
After reading about Stack_Trace y trying to get it work in Mint 18, I think I did it.

I had to attach .crash file because when I click "Save Changes" it said "Comments cannot be longer than 65535 characters."

BTW I couldn't change Bug Status because it only shows NEEDINFO and RESOLVED.
Comment 4 omvsj 2016-08-06 14:11:38 UTC
Created attachment 332825 [details]
This is the result of the generated .crash file by apport
Comment 5 omvsj 2016-08-06 14:21:17 UTC
Created attachment 332826 [details]
Trace file of the crash opening file
Comment 6 John Ralls 2016-08-06 14:52:23 UTC
I'm able to load your file without trouble on 2.6.13 on OSX, I'll try again on Debian later today.

Unfortunately the crash file doesn't have a stack trace in it (it does have a scheme exception from the python bindings, but that's not the problem here). What did you have trouble with in the Stack Trace procedure?
Comment 7 Chris Good 2016-08-06 20:44:12 UTC
Opens OK in Windows 10 GnuCash 2.6.13, Ubuntu 16.04 GnuCash 2.6.12 & Debian 8.5.0 GnuCash 2.6.9 with my Sydney Australia timezone.
Comment 8 omvsj 2016-08-07 01:24:10 UTC
(In reply to John Ralls from comment #6)
> I'm able to load your file without trouble on 2.6.13 on OSX, I'll try again
> on Debian later today.
> 
> Unfortunately the crash file doesn't have a stack trace in it (it does have
> a scheme exception from the python bindings, but that's not the problem
> here). What did you have trouble with in the Stack Trace procedure?


Well...

1) I read https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces

2) I went to Distro Specific Instructions (https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces/DistroSpecificInstructions)

3) That took me to Ubuntu (DebbugingProgramCrash: 
https://wiki.ubuntu.com/DebuggingProgramCrash)

4) I tried using apport-retrace after installing it (apport-retrace -R --gdb --sandbox system --cache ~/.apport/cache /var/crash/_usr_bin_gnucash.1000.crash) After hours of reading manpages I couldn't pass "ERROR: report file does not contain one of the required fields: CoreDump DistroRelease Package ExecutablePath"

5) Then I tried with apport-cli, after GNUCash crashed and it generated 
the crash file.

6) I did install gnucash-dbg debug symbols. Then I tried gdb gnucash (as asked in https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces/Details#obtain-a-stacktrace ) but the command 'thread apply all bt' show some '??' which indicate that I'm still missing some debug symbols.

Oscar
Comment 9 omvsj 2016-08-07 01:38:52 UTC
I downloaded and installed in Linux Mint 18, GNUCash 2.6.13 rev 6fe4b8f from

http://ftp.us.debian.org/debian/pool/main/g/gnucash

and it can open my file without problems.
Comment 10 John Ralls 2016-08-07 03:04:34 UTC
(In reply to omvsj from comment #8)
> 
> Well...
> 
> 1) I read
> https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces

But ignored:

> A stack trace would indeed be helpful, and you can find friendlier
> instructions for getting one at http://wiki.gnucash.org/wiki/Stack_Trace.

No matter, though, since
(In reply to omvsj from comment #9)
> I downloaded and installed in Linux Mint 18, GNUCash 2.6.13 rev 6fe4b8f from
> 
> http://ftp.us.debian.org/debian/pool/main/g/gnucash
> 
> and it can open my file without problems.

So a 2.6.12 bug that's already fixed.
Comment 11 omvsj 2016-08-07 14:37:06 UTC
(In reply to John Ralls from comment #10)
> (In reply to omvsj from comment #8)
> > 
> > Well...
> > 
> > 1) I read
> > https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces
> 
> But ignored:
> 
> > A stack trace would indeed be helpful, and you can find friendlier
> > instructions for getting one at http://wiki.gnucash.org/wiki/Stack_Trace.
> 

Actually, I did it in 6) since is the same procedure but, as I stated, I still needed to install some debug symbol files.

> No matter, though, since
> (In reply to omvsj from comment #9)
> > I downloaded and installed in Linux Mint 18, GNUCash 2.6.13 rev 6fe4b8f from
> > 
> > http://ftp.us.debian.org/debian/pool/main/g/gnucash
> > 
> > and it can open my file without problems.
> 
> So a 2.6.12 bug that's already fixed.

For me is fixed with Debian packages. I think it will be a matter of time for Mint to upgrade their repository.
Comment 12 John Ralls 2016-08-07 15:20:10 UTC
>Actually, I did it in 6) since is the same procedure but, as I stated, I still 
>needed to install some debug symbol files.

Nah, go ahead and paste it in without the other symbols. I can figure out what's going wrong with just the GnuCash symbols.

We'd consider it fixed even if you'd built it from source. What the distros do is beyond our control.
Comment 13 omvsj 2016-08-08 13:58:44 UTC
(In reply to John Ralls from comment #12)
> >Actually, I did it in 6) since is the same procedure but, as I stated, I still 
> >needed to install some debug symbol files.
> 
> Nah, go ahead and paste it in without the other symbols. I can figure out
> what's going wrong with just the GnuCash symbols.
> 
> We'd consider it fixed even if you'd built it from source. What the distros
> do is beyond our control.

I read somewhere the problem was with scheduled transactions.

1) I did a backup and modified the scheduled transactions en LM 17.3, GNUCash 2.6.1-2 by eliminating some commas in formulas (some amounts had commas, something like 2,325). Modified file opened without problem in 2.6.12-1

2) I uninstall GNUCash 2.6.13 from Debian and purge any residual configuration file, as well with any dependencies.

I reinstalled 2.6.12-1 from LM repos and ran gdb procedure with the original file which crashed again. Here is the result from gdb:

Thread 1 (Thread 0x7ffff7f11ac0 (LWP 25296))

  • #0 __GI_raise
    at ../sysdeps/unix/sysv/linux/raise.c line 54
  • #1 __GI_abort
    at abort.c line 89
  • #2 __libc_message
    at ../sysdeps/posix/libc_fatal.c line 175
  • #3 malloc_printerr
  • #4 _int_free
    at malloc.c line 3868
  • #5 __GI___libc_free
    at malloc.c line 2969
  • #6 creation_error_dialog
    at dialog-sx-since-last-run.c line 810
  • #7 gnc_sx_sxsincelast_book_opened
    at dialog-sx-since-last-run.c line 874
  • #8 call_c_hook
    at gnc-hooks.c line 217
  • #9 g_hook_list_marshal
  • #10 gnc_hook_run
    at gnc-hooks.c line 233
  • #11 gnc_book_opened
    at gnc-file.c line 509
  • #12 gnc_post_file_open
    at gnc-file.c line 990
  • #13 gnc_file_open_file
    at gnc-file.c line 1057
  • #14 gnc_ui_file_access_response_cb
    at dialog-file-access.c line 147
  • #15 g_cclosure_marshal_VOID__ENUMv
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #16 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #17 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #18 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #27 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #28 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #29 g_closure_invoke
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #30 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #31 g_signal_emit_valist
  • #32 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #33 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #34 gtk_propagate_event
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #35 gtk_main_do_event
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #36 ??
    from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
  • #37 g_main_context_dispatch
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #38 ??
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #39 g_main_loop_run
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #40 gtk_main
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #41 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 620
  • #42 inner_main
    at gnucash-bin.c line 623
  • #43 ??
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #44 ??
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #45 ??
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #46 scm_call_4
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #47 ??
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #48 scm_c_with_continuation_barrier
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #49 ??
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #50 GC_call_with_stack_base
    from /usr/lib/x86_64-linux-gnu/libgc.so.1
  • #51 scm_with_guile
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #52 scm_boot_guile
    from /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
  • #53 main
    at gnucash-bin.c line 778

Comment 14 John Ralls 2016-08-08 15:29:31 UTC
Perfect, thanks for doing that extra work. That's bug 764871. Resolution changed accordingly.

*** This bug has been marked as a duplicate of bug 764871 ***
Comment 15 John Ralls 2018-06-29 23:50:22 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=769571. Please update any external references or bookmarks.