~/.aqbanking/settings/accounts
 % touch uid%3a%3a00000007.conf
 % l
total 48
4 drwx------ 2 xxxxx 4096 Sep 16 15:04 .
4 drwx------ 7 xxxxx 4096 Sep 15 22:09 ..
4 -rw------- 1 xxxxx  421 Sep 15 22:10 uid%3a%3a00000001.conf
4 -rw------- 1 xxxxx  363 Sep 15 22:10 uid%3a%3a00000002.conf
4 -rw------- 1 xxxxx  368 Sep 15 22:10 uid%3a%3a00000004.conf
4 -rw------- 1 xxxxx  400 Sep 15 22:10 uid%3a%3a00000005.conf
4 -rw------- 1 xxxxx  425 Sep 15 22:10 uid%3a%3a00000006.conf
0 -rw-r--r-- 1 xxxxx    0 Sep 16 15:04 uid%3a%3a00000007.conf
4 -rw------- 1 xxxxx  406 Sep 15 22:10 uid%3a%3a0000000a.conf
4 -rw------- 1 xxxxx  438 Sep 15 22:38 uid%3a%3a0000000c.conf
4 -rw------- 1 xxxxx  373 Sep 15 22:38 uid%3a%3a0000000e.conf
4 -rw------- 1 xxxxx  363 Sep 15 22:38 uid%3a%3a0000000f.conf
4 -rw------- 1 xxxxx    2 Sep 15 22:38 uniqueid

 % aqbanking-cli listaccs
4:2011/09/16 15-04-22:aqbanking(13430):banking_cfg.c: 532: Provider "(null)" not found, ignoring user [(null)]
aqbanking-cli: account.c:61: AB_Account_fromDb: Assertion `pname' failed.
zsh: abort (core dumped)  aqbanking-cli listaccs


 % gdb aqbanking-cli core
GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/aqbanking-cli...Reading symbols from /usr/lib/debug/usr/bin/aqbanking-cli...done.
done.
[New LWP 13430]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `aqbanking-cli listaccs'.
Program terminated with signal 6, Aborted.
#0  0xb77cd424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb77cd424 in __kernel_vsyscall ()
#1  0xb73e1911 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0xb73e4d42 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3 0xb73dab28 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #4 0xb7668d67 in AB_Account_fromDb (ab=0x9f26218, db=0xa05b728) at account.c:61 #5 0xb7672d37 in AB_Banking_LoadAllAccounts (ab=0x9f26218) at banking_cfg.c:641
#6  AB_Banking_LoadConfig (ab=0x9f26218) at banking_cfg.c:725
#7  AB_Banking_OnlineInit (ab=0x9f26218) at banking_init.c:412
#8 0x0804ce1c in listAccs (argv=0xbfd03b88, argc=1, dbArgs=0x9f25628, ab=0x9f26218) at listaccs.c:113
#9  main (argc=1, argv=0xbfd03b88) at main.c:307
(gdb)



On 16.09.2011 09:48, Micha Lenk wrote:
 Hi Simon,

 On 09/15/2011 10:56 PM CEST +02:00, Simon Walter wrote:
> i have fixed the problem... after some gdb fiddling it was obvious
> the problem was in aqbanking and not gnucash.
>
> #strace aqbanking-cli listaccs
>
> showed aqbank tried to read files from
> ~/.aqbanking/settings/accounts and crashed, because some of them
> had zero-length.
>
> deleting the files helped.

 I would nevertheless be interested in a backtrace of your crash,
 because a crash is never an appropriate reaction to unexpected
 zero-length files...

 Regards, Micha


Reply via email to