Bug 1101037

Summary: [abrt] gnucash: AB_Banking__char2uint64(): gnucash killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Philip Walden <pwaldenlinux>
Component: gnucashAssignee: Bill Nottingham <notting>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: notting
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c92a2aa43e1365e12caecfb7a3cca011e9aa7ab4
Whiteboard: abrt_hash:ad3064b2dfe3063963b97f960bff676b71b3b76c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 20:16:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Philip Walden 2014-05-25 20:07:18 UTC
Description of problem:
My credit card account was closed and a new one was issued.

In aqbanking I deleted the former account and downloaded the new one

Pressing the aqbanking forward button expecting to assign the new account to a gnucash account caused the crash.

Version-Release number of selected component:
gnucash-2.4.15-1.fc19

Additional info:
reporter:       libreport-2.2.1
backtrace_rating: 4
cmdline:        gnucash
crash_function: AB_Banking__char2uint64
executable:     /usr/bin/gnucash
kernel:         3.13.11-100.fc19.i686.PAE
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 AB_Banking__char2uint64 at banking_account.c:350
 #1 AB_Banking_GetAccountByCodeAndNumber at banking_account.c:404
 #2 gnc_ab_get_ab_account at gnc-ab-utils.c:279
 #3 gnc_ab_getbalance at gnc-ab-getbalance.c:79
 #4 gnc_plugin_ab_cmd_get_balance at gnc-plugin-aqbanking.c:451
 #10 _gtk_action_emit_activate at gtkaction.c:795
 #11 gtk_action_activate at gtkaction.c:826
 #12 g_cclosure_marshal_VOID__VOIDv at gmarshal.c:115
 #13 g_type_class_meta_marshalv at gclosure.c:997
 #14 _g_closure_invoke_va at gclosure.c:840

Comment 1 Philip Walden 2014-05-25 20:07:21 UTC
Created attachment 899098 [details]
File: backtrace

Comment 2 Philip Walden 2014-05-25 20:07:22 UTC
Created attachment 899099 [details]
File: cgroup

Comment 3 Philip Walden 2014-05-25 20:07:24 UTC
Created attachment 899100 [details]
File: core_backtrace

Comment 4 Philip Walden 2014-05-25 20:07:26 UTC
Created attachment 899101 [details]
File: dso_list

Comment 5 Philip Walden 2014-05-25 20:07:27 UTC
Created attachment 899102 [details]
File: environ

Comment 6 Philip Walden 2014-05-25 20:07:28 UTC
Created attachment 899103 [details]
File: exploitable

Comment 7 Philip Walden 2014-05-25 20:07:30 UTC
Created attachment 899104 [details]
File: limits

Comment 8 Philip Walden 2014-05-25 20:07:32 UTC
Created attachment 899105 [details]
File: maps

Comment 9 Philip Walden 2014-05-25 20:07:33 UTC
Created attachment 899106 [details]
File: open_fds

Comment 10 Philip Walden 2014-05-25 20:07:35 UTC
Created attachment 899107 [details]
File: proc_pid_status

Comment 11 Philip Walden 2014-05-25 20:07:36 UTC
Created attachment 899108 [details]
File: var_log_messages

Comment 12 Philip Walden 2014-05-27 15:31:27 UTC
Another user experienced a similar problem:

My Discover card had to be re-issued with a new account number. So I tried to change the account number in aqbanking.

I did this:

1. Tools > Online Banking Setup..
2. Started the AqBanking Wizard
3. Went to the Accounts tab
4. Deleted the old Discover account
5. Went to the Users tab
6. Selected the Discover Card user, pressed the Edit User button.
7. Went to the Bank Setting tab
8. Pressed Retrieve Accounts List..seemed to go through successfully.
   The new account number came through.
9. Closed the Wizard
10. Pressed the "Forward" button..CRASH

Gnucash continues to crash everytime I try to go ahead past the Forward in order to set up the Account with the new online banking information.

If I try Actions > Online Actions on my Discover account, it crashes.

All my other on-line accounts Online Actions still work!!

I tried "aqbanking-cli request .. --balance" on the new Discover Card account name and successfully retried the account balance.

At this point, it appears this Discover account is broken as far as Gnucash on-line transactions and I cannot set up new accounts. 

reporter:       libreport-2.2.1
backtrace_rating: 4
cmdline:        gnucash
crash_function: AB_Banking__char2uint64
executable:     /usr/bin/gnucash
kernel:         3.13.11-100.fc19.i686.PAE
package:        gnucash-2.4.15-1.fc19
reason:         gnucash killed by SIGSEGV
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 13 Philip Walden 2014-05-28 17:52:06 UTC
After stack trace analysis I found that the old card number was still in the gnucash file. Gnucash was crashing when it did not find the old number in the aqbanking files.

So I caused this problem by deleting the old account in the aqbanking wizard. I guessed wrong as to how change to the new card number. I guess I should added the new account and then removed the old one later.

Hand editing the gnucash file and changing the old for new put me back in business.

This should still be a bug. Gnucash should not crash when something does not line up with the aqbanking accounts.

Comment 14 Bill Nottingham 2014-05-29 20:52:21 UTC
I've tried to reproduce this failure with 2.6.x on F20 and failed. I'll see if I can put a 2.6.x build for F19 up for you to test.

Comment 16 Philip Walden 2014-05-29 22:15:08 UTC
No 2.6.x crashes also.

I installed the 2.6.x package on a different F19 instance.

I copied over the working accounts and verified that I could Actions > Online > get balance from an active account. Everything else seemed to work as well.

I then:

1. went into Tools > Online Banking Setup..
2. Started the AqBanking Wizard
3. Went to the Accounts tab
4. Deleted the above working account
5. Closed the Wizard
6. Pressed the "Forward" button..CRASH

Comment 17 Bill Nottingham 2014-05-30 03:16:37 UTC
OK; it works for me in my testing, albeit with a different OFX direct connect account. One other variable (my test setup is F20 at the moment) would be aqbanking versions - I assume https://kojipkgs.fedoraproject.org//work/tasks/139/6910139/aqbanking-5.3.2-0.1.beta.fc19.i686.rpm probably wouldn't fix it for you, but it's worth a shot. I'll file this upstream as well.

Comment 18 Philip Walden 2014-05-30 21:01:33 UTC
Looks like when I installed the 2.6 gnucash it also brought down aqbanking-5.3.2-0.1.beta.fc19

# yum list installed gnucash* aqbanking*
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
aqbanking.i686                 5.3.2-0.1.beta.fc19             @updates                   
gnucash.i686                   2.6.3-1.fc19                    @/gnucash-2.6.3-1.fc19.i686
gnucash-docs.noarch            2.4.2-1.fc19                    @fedora                    

So no, it was crashing even with the newer aqbanking.

Looks like it is time to file it upstream. Thanks for your help.

P.S. I also brought this up in the gnucash-user list. They felt it was a bug also.

Comment 19 Fedora End Of Life 2015-01-09 21:23:05 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 20 Fedora End Of Life 2015-02-17 20:16:49 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.