On Tue, Mar 17, 2009 at 10:28:48AM -0400, xavier renaut wrote: > once i load onak with a few keys, lookup works fine for 10 times at most, > then segfaults. > > db4.6_recover -v seems to fix the problem. > > to reproduce : > > user=onak > sudo su -m $user -c 'rm -f /var/lib/onak/*' > sudo su -m $user -c 'cat /home/xavier/keys-onak-test | onak add' > # keys-onak-test was generated with gpg --export -a > # check if working : > sudo su -m $user -c 'onak index .de' > > do some request until segfault : > j=0;while (wget-stdout > 'http://localhost:11371/pks/lookup?op=index&options=mr&search=steve' > > /dev/null);do sleep .01;(( j += 1 )) ;done;echo $j Bah. The segfault is because the dbconns structure is not initialised to NULL, so when we hit the Berkeley DB error we try to close DBs we haven't yet opened. I've fixed that in the upstream bzr repo.
The reason we have issues opening the DB seems to be Debian bug #510270. I can reproduce your issue on i386/lenny with db4.6, but if I rebuild against db4.5 everything seems happy (I'm up to 28000+ indexes with no problem). I haven't tried against db4.7, but I'll try to do so as that's a potentially obvious fix for testing/unstable. J. -- You want me, but it scares you. This .sig brought to you by the letter K and the number 29 Product of the Republic of HuggieTag
signature.asc
Description: Digital signature