A weird error

Post Reply
MiniMe
Posts: 210
Joined: Thu Mar 15, 2001 4:30 pm

A weird error

Post 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.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

A weird error

Post 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.
MiniMe
Posts: 210
Joined: Thu Mar 15, 2001 4:30 pm

A weird error

Post by MiniMe »

Actually that is the exact command I was running when it did that. Alternate ideas??
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

A weird error

Post by mark »

What's your kdbfchk version? Run kdbfchk with no options or with -h to get it. Include the full version line.
MiniMe
Posts: 210
Joined: Thu Mar 15, 2001 4:30 pm

A weird error

Post 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)
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

A weird error

Post 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.
Post Reply