Gnucash crashes while loading an existing file

Carl Moller cmoller at ece.ualberta.ca
Sat Jul 21 00:34:27 EDT 2007


I have a problem where I cannot load a file using the "open" dialog in 
GnuCash:
GnuCash 2.0.5
Built 2007-07-20 from r15617

I try to open gnucash and it says there is a lock on the file. So I 
press "open anyway", then it loads up the file until it tries to load a 
report which used to load automatically. Then it crashes

I could not get a backtrace of the actual problem as shown by this GDB 
session following the instructions on the GnuCash wiki:
<< gdb session start>>
(gdb) continue
Continuing.
gnucash: [W] "failure loading 
""/home/carl/.gnucash/books/%2Fhome%2Fcarl%2FFinancial%2FGnuCash%2FOLD%2FHome+Finances"
Backtrace:
In unknown file:
    ?: 0* [gnc:send-options 3 #f]
In /usr/share/gnucash/scm/options.scm:
1508: 1* [gnc:options-for-each #<procedure #f (option)> #f]
1457: 2  ((options (quote for-each)) thunk)
1457: 3* (options (quote for-each))

/usr/share/gnucash/scm/options.scm:1457:4: In expression (options (quote 
for-each)):
/usr/share/gnucash/scm/options.scm:1457:4: Wrong type to apply: #f

Program exited with code 02.
(gdb) bt
No stack.
(gdb)

<<gdb session end>>

And here is an attempt at filtering out an strace to the problem (the 
last 100 lines of the trace file):

<<strace snip start>>
open("/usr/local/share/cursors/default/index.theme", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/local/share/icons/default/cursors/watch", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/local/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/local/share/pixmaps/default/cursors/watch", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/local/share/pixmaps/default/index.theme", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/cursors/xorg-x11/default/cursors/watch", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/cursors/xorg-x11/default/index.theme", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/cursors/default/cursors/watch", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/pixmaps/xorg-x11/default/cursors/watch", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/pixmaps/xorg-x11/default/index.theme", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/icons/default/cursors/watch", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/pixmaps/default/cursors/watch", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No 
such file or directory)
write(3, "^\30\10\0h\5\340\1<\0\340\1<\0\340\1\226\0\227\0\0\0\0"..., 
48) = 48
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, 
events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}], 6, 0) = 0
write(3, "_\30\2\0[\5\340\1\2\0\4\0.\0\340\1\0@\0\0\0\0\0\0_\0\2"..., 
48) = 48
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, 
events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}], 6, 0) = 0
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, 
events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}], 6, 0) = 0
write(3, "6\30\2\0M\5\340\0015\30\4\0i\5\340\1>\0\340\1\226\0\30"..., 
500) = 500
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, 
events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}], 6, 0) = 0
gettimeofday({1184991881, 84124}, NULL) = 0
brk(0x8a25000)                          = 0x8a25000
brk(0x8a13000)                          = 0x8a13000
write(2, "Backtrace:\n", 11)            = 11
write(2, "In ", 3)                      = 3
write(2, "unknown file", 12)            = 12
write(2, ":\n", 2)                      = 2
write(2, "   ?", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "0", 1)                        = 1
write(2, "*", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "[gnc:send-options 3 #f]", 23) = 23
write(2, "\n", 1)                       = 1
write(2, "In ", 3)                      = 3
write(2, "/usr/share/gnucash/scm/options.s"..., 34) = 34
write(2, ":\n", 2)                      = 2
write(2, "1508", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "1", 1)                        = 1
write(2, "*", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "[gnc:options-for-each #<procedur"..., 50) = 50
write(2, "\n", 1)                       = 1
write(2, "1457", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "2", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "((options (quote for-each)) thun"..., 34) = 34
write(2, "\n", 1)                       = 1
write(2, "1457", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "3", 1)                        = 1
write(2, "*", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "(options (quote for-each))", 26) = 26
write(2, "\n", 1)                       = 1
write(2, "\n", 1)                       = 1
write(2, "/usr/share/gnucash/scm/options.s"..., 34) = 34
write(2, ":", 1)                        = 1
write(2, "1457", 4)                     = 4
write(2, ":", 1)                        = 1
write(2, "4", 1)                        = 1
write(2, ": ", 2)                       = 2
write(2, "In expression ", 14)          = 14
write(2, "(", 1)                        = 1c:send-options 3 #f]", 23) = 23
write(2, "\n", 1)                       = 1
write(2, "In ", 3)                      = 3
write(2, "/usr/share/gnucash/scm/options.s"..., 34) = 34
write(2, ":\n", 2)                      = 2
write(2, "1508", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "1", 1)                        = 1
write(2, "*", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "[gnc:options-for-each #<procedur"..., 50) = 50
write(2, "\n", 1)                       = 1
write(2, "1457", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "2", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "((options (quote for-each)) thun"..., 34) = 34
write(2, "\n", 1)                       = 1
write(2, "1457", 4)                     = 4
write(2, ": ", 2)                       = 2
write(2, "3", 1)                        = 1
write(2, "*", 1)                        = 1
write(2, " ", 1)                        = 1
write(2, "(options (quote for-each))", 26) = 26
write(2, "\n", 1)                       = 1
write(2, "\n", 1)
write(2, "options", 7)                  = 7
write(2, " ", 1)                        = 1
write(2, "(", 1)                        = 1
write(2, "quote", 5)                    = 5
write(2, " ", 1)                        = 1
write(2, "for-each", 8)                 = 8
write(2, ")", 1)                        = 1
write(2, ")", 1)                        = 1
write(2, ":\n", 2)                      = 2
write(2, "/usr/share/gnucash/scm/options.s"..., 34) = 34
write(2, ":", 1)                        = 1
write(2, "1457", 4)                     = 4
write(2, ":", 1)                        = 1
write(2, "4", 1)                        = 1
write(2, ": ", 2)                       = 2
write(2, "Wrong type to apply: ", 21)   = 21
write(2, "#f", 2)                       = 2
write(2, "\n", 1)                       = 1
writev(12, [{"GIOP\1\2\1\5\0\0\0\0", 12}], 1) = 12
close(12)                               = 0
writev(10, [{"GIOP\1\2\1\5\0\0\0\0", 12}], 1) = 12
close(10)                               = 0
close(9)                                = 0
close(8)                                = 0
unlink("/tmp/orbit-carl/linc-1041-0-498e9ab7702af") = 0
close(11)                               = 0
exit_group(2)                           = ?

<<strace snip end>>

Thank you so much for your time!

Carl


More information about the gnucash-user mailing list