Page 1 of 1

Buffer overflow in UVFIT

Posted: Mon May 02, 2011 1:29 pm
by bnorris
Hi all,

I'm having a problem where UVFIT fails with the error `### Fatal Error: Buffer overflow'.
This occurs when giving it a modest amoutn of visibility data, say 2 hours of 9GHz data (with 1MHz channels). If I restrict the number of channels (using line) to only 500 channels, UVFIT will run, but I really want to fit to the whole set of visibilities at once.

Any ideas how to get round this - is there a way to allocate more memory to the buffer, for example?

Cheers
Barnaby Norris

Re: Buffer overflow in UVFIT

Posted: Mon May 02, 2011 1:51 pm
by ste616
Hi Barnaby,

You could try compiling your own version of Miriad - that's really the only suggestion I can offer unfortunately. The default memory allocated for the compiled version of Miriad is set by considering an average user's machine, and their requirements, but can be inadequate for many users.

You can download the source from the same place as you get the precompiled binaries, and you should look at the include file inc/maxdim.h in the Miriad tree. You might try increasing MAXBUF before compiling to see if that can fix your error.

Please let us know if you run into further problems!

Re: Buffer overflow in UVFIT

Posted: Mon May 02, 2011 4:52 pm
by Mark.Wieringa
Alternatively,

I often use uvflux with inputs like these:

Code: Select all

  line     = chan,20,1,100,100
This reduces the internal storage requirements by a factor 20, but still uses most of the frequency information.

Cheers,

Mark

Re: Buffer overflow in UVFIT

Posted: Wed May 04, 2011 5:36 pm
by bnorris
Thanks for your suggestions guys. I haven't yet been brave enough to try recompiling MIRIAD but'll try it and let you know how I go!

Cheers
Barnaby

Re: Buffer overflow in UVFIT

Posted: Wed Feb 29, 2012 6:04 pm
by hzhangshao2011
Hi,...
I also met this problem. And I tried to revise the head file inc/maxdim.h
and confiugre the miriad again following jamie's suggestions. what a pity, it still can not fix
the error.

Hui