On Mon, 25 Jun 2007, Tim Jenness wrote:
> On Mon, 25 Jun 2007, Malcolm J. Currie wrote:
>
>> While running a few KAPPA tests so unusual errors appeared.
>>
>> % makesurface $KAPPA_DIR/m31 like=$KAPPA_DIR/m31
>> OUT - NDF to contain surface > m5
>> !! Search of free chip stack for a frame match exceeded stack size
>> ! DAT_ERASE: Error erasing an HDS structure component.
>> ! SUBPAR: Failed to find locator for action MAKESURFACE
>> ! SUBPAR: Failed to find locator for parameter OUT
>> ! SUBPAR: Failed to update GLOBAL file for parameter OUT
>> ! Application exit status DAT__WEIRD, Unknown error
>> ! /home/mjc/classic/bin/kappa/m31 like=/home/mjc/classic/bin/kappa/m31
>> % nomagic n43 out=n7 repval=0
>
> in the good old days you would have got a segv there so at least we've made
> some progress :-) It's interesting that the corruption always looks the same.
> Don't know enough about HDS internals to comment on the significance of this
> though.
Had a closer look at this too. Didn't get very far other than to notice
that the file can be manipulated by HDS3 (i.e. using that I can erase the
DATA_ARRAY component), but not HDS4, and that a simple HCOPY of the file
resolves the problems too.
The problem could be related to the header control block state, which
seems to imply there's a problem with the free space allocations. Have a
look at the output from "hdsdump" which should be on your PATH.
> hdsdump ~/adam/GLOBAL.sdf
HDS dump - BKM/TIMJ 20060719 - file /home2/pdraper/adam/GLOBAL.sdf
HCB information:
HDS version 3, eof block=22
Stack information (LRB)
Block 987140, spare 12544 ! suspect this is wrong
Block 66064, spare 16593
Block 198417, spare 61696
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
Block 0, spare 0
c.f to the HCOPY version (using HDS3 format):
HDS dump - BKM/TIMJ 20060719 - file GLOBAL.sdf
HCB information:
HDS version 3, eof block=22
Stack information (LRB)
Block 20, spare 0
Block 14, spare 0
Block 22, spare 6
Block 19, spare 1
Block 21, spare 1
LRB stack ends at entry 5
Stack information (PDB)
Block 23, spare 0
PDB stack ends at entry 94
Container record (2,0):
Parent(b=0,c=0),size=1,chained=0,active=1,slen=0,dlen=20
Name = GLOBAL Next record = (2,1)
Peter.
|