Privacy and Security Notice

Archived Messages for CLAS_GSIM@cebaf.gov: Re: HELP! Something is stepping on my BOS banks.

Re: HELP! Something is stepping on my BOS banks.

Joseph Manak (manak@jlab.org)
Fri, 10 Apr 1998 14:21:32 -0400

did you define the format of your new bank in the
bankfmt calls or in the ddl file you used for txt2bos?
If you are writing a file BOS needs to know the format of
the bank.

A corrupted bos common comes from either

A) somebody is making a bank but declares the bank to be
the wrong size (too small) ex:
so somebody makes a bank and declares it to have
two columns but they fill the bank as if it has
three and walk off the bank overwriting a header of
another bank or some vital piece of BOS bookkeeping
information - then 3000 events later you get a core
dump and you sit in your office for 12 hours trying
to figure out what piece of code did this to you...

B) somebody tries to write to the iw array without making
a bank ex: somebody tries to overwrite an existing
and doesn't get the size just right...(people should
never even think about writing to the bcs or wcs commons
without making a new bank...)

C) some package decides it wants to clean up the bos array
even though pointers to the iw array are still being
used elsewhere....(not technically a corruption but
it might as well be)

I am sure there are other ways of doing it....

- Joe