Page 1 of 1

A weird error

Posted: Tue May 17, 2005 11:30 am
by MiniMe
While trying to run a kdbfchk on a table I got this error..

011 Can't alloc 1048 bytes of memory: Not enough space in the function ramdbf:newb
006 Could not write new page for B-tree (temp RAM DBF) in the function btgetnewpage
006 Can't create new page in B-tree (temp RAM DBF) in the function [fbt]insert
006 Can't add free block to internal tree in the function add_free_block

Any idea as to the cause. I have never seen this before.

A weird error

Posted: Tue May 17, 2005 6:01 pm
by Kai
It means kdbfchk is out of memory for one of its internal trees used for tracking the free list. The free list was probably too large to fix. If the file is known to be damaged (ie. you're not just checking it), use the -q option (with the -O option) to do a quick tail fix instead. This is less effective but does not need to scan the free tree.

A weird error

Posted: Tue May 17, 2005 6:42 pm
by MiniMe
Actually that is the exact command I was running when it did that. Alternate ideas??

A weird error

Posted: Wed May 18, 2005 12:18 pm
by mark
What's your kdbfchk version? Run kdbfchk with no options or with -h to get it. Include the full version line.

A weird error

Posted: Wed May 18, 2005 2:24 pm
by MiniMe
It is as follows..

KDBF File Repair Utility Copyright (c) 1995-2001 Thunderstone - EPI, Inc.
Version 4.02.1033654782 of Oct 3, 2002 (alpha-dec-osf4.0-64)

A weird error

Posted: Wed May 18, 2005 4:57 pm
by Kai
There was a recent fix that affected memory allocation in kdbfchk, but I'm not sure it would apply when the -q option is used. Contact tech support at Thunderstone to see if an upgrade is available.