Unable to save data

Derek Atkins warlord@MIT.EDU
21 Oct 2002 13:12:06 -0400


Well, 'strace' is not really a stack trace...

It is clear that your file is being removed, but I have no idea
why, or where.  This certainly is not happening to me with my test
data.  Could you perhaps run under gdb and get a stack-trace from the
unlink() call?

-derek

Laurent Duperval <lduperval@videotron.ca> writes:

> HI,
> 
> With a recent CVS build (Wednesday, I think), I now notice that my account
> information is no longer being saved. At all. Here is a sort of stack trace
> using strace to see how my file name is being used.  This trace is after I
> save the file then I exit gnucash. The next time I try to start GC, I get an
> error saying my file doesn't exist. Well, duh! It's unlinkend but never
> reopened for writing.  Has anyone else seen this? ANyone have an idea hat
> could be causing it?
> 
> Thanks,
> 
> L
> 
> lstat64("/home/laurent/finance/progressif2002.xac.tmp-Dciprg", 0xbfffe800) = -1 ENOENT (No such file or directory)
> stat64("/home/laurent/finance/progressif2002.xac", {st_mode=S_IFREG|0644, st_size=1770877, ...}) = 0
> open("/home/laurent/finance/progressif2002.xac", O_RDONLY) = 12
> link("/home/laurent/finance/progressif2002.xac", "/home/laurent/finance/progressif2002.xac.20021020232714.xac") = 0
> open("/home/laurent/finance/progressif2002.xac.tmp-Dciprg", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 12
> stat64("/home/laurent/finance/progressif2002.xac", {st_mode=S_IFREG|0644, st_size=1770877, ...}) = 0
> chmod("/home/laurent/finance/progressif2002.xac.tmp-Dciprg", 0100644) = 0
> unlink("/home/laurent/finance/progressif2002.xac") = 0
> link("/home/laurent/finance/progressif2002.xac.tmp-Dciprg", "/home/laurent/finance/progressif2002.xac") = 0
> unlink("/home/laurent/finance/progressif2002.xac.tmp-Dciprg") = 0
> stat64("/home/laurent/finance/progressif2002.xac.LCK", {st_mode=S_IFREG, st_size=0, ...}) = 0
> open("/home/laurent/finance", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 12
> unlink("/home/laurent/finance/progressif2002.xac.7f0100.387.LNK") = 0
> unlink("/home/laurent/finance/progressif2002.xac") = 0
> open("/home/laurent/.gnucash/books/%2Fhome%2Flaurent%2Ffinance%2Fprogressif2002.xac", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 12
> open("/home/laurent/.gnucash/books/%2Fhome%2Flaurent%2Ffinance%2Fprogressif2002.xac", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 13
> unlink("/home/laurent/finance/progressif2002.xac.7f0100.387.LNK") = -1 ENOENT (No such file or directory)
> unlink("/home/laurent/finance/progressif2002.xac.LCK") = 0
> 
> -- 
> Laurent Duperval <mailto:lduperval@videotron.ca>
> 
> You know that little indestructible black box that is used on planes,
> why can't they make the whole plane out of the same substance?
>                                                           -
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available