[gradsusr] error: Buffer overflow detected

Jeff Duda jeffduda319 at gmail.com
Mon Dec 2 23:16:04 EST 2013


Okay, I may be wrong about my thoughts.  If it's the "buffer" that's
overflowing, perhaps that's related to the memory required to make the
scatter plot.  In that case, use the -m flag when starting grads to set the
meta file buffer size to a large value (1000000 is the default, I think
that's in bytes).

If that doesn't work, then this is probably past my level of expertise on
the subject.

Jeff


On Mon, Dec 2, 2013 at 6:26 PM, Celso Bandeira de Melo Ribeiro <
celso.bandeira at ufjf.edu.br> wrote:

> Hi Jeff,
> Thank you for your attention again.
> I am sending my code attached.
> Best wishes,
> Celso
>
> On Sat, 30 Nov 2013 21:21:21 -0600, Jeff Duda <jeffduda319 at gmail.com>
> wrote:
> > It depends.  Send your script code and I'll have a look at it.
> >
> > Jeff
> >
> >
> > On Sat, Nov 30, 2013 at 5:11 PM, Celso Bandeira de Melo Ribeiro <
> > celso.bandeira at ufjf.edu.br> wrote:
> >
> >> Hi Heff Duda,
> >> Thank you for your attention and help.
> >> Do you know how can I fix this problem?
> >> I am using VM-Ware, Virtual Machine to run grads in Ubuntu. I need
> >> allocate more memory in VM ware?
> >> Best wishes.
> >> Celso
> >>
> >> On Sat, 30 Nov 2013 16:15:09 -0600, Jeff Duda <jeffduda319 at gmail.com>
> >> wrote:
> >> > That sounds like a memory error - your command request exceeded the
> >> > available memory on the system you were using.  That typically
> happens
> >> when
> >> > you define new arrays in Grads, especially if you do not undefine
> them
> >> > after use.
> >> >
> >> > Jeff Duda
> >> >
> >> >
> >> > On Sat, Nov 30, 2013 at 11:19 AM, Celso Bandeira de Melo Ribeiro <
> >> > celso.bandeira at ufjf.edu.br> wrote:
> >> >
> >> >> Hello,
> >> >> Every time I am trying to plot a scatter graphic using 'set gxout
> >> >> scatter'
> >> >> it don't work and always appears one message that "buffer overflow
> >> >> detected". I tried on two different linux versions (Ubuntu and
> >> Xubuntu),
> >> >> but the problem continue.
> >> >> I don't know how to fix it.
> >> >>
> >> >> The error message is:
> >> >>
> >> >> ga-> scatter_PCP_ET.gs
> >> >> *** buffer overflow detected ***: grads terminated
> >> >> ======= Backtrace: =========
> >> >> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x3bd085]
> >> >> /lib/i386-linux-gnu/libc.so.6(+0xebe87)[0x3bbe87]
> >> >> /lib/i386-linux-gnu/libc.so.6(+0xeb763)[0x3bb763]
> >> >> /lib/i386-linux-gnu/libc.so.6(__snprintf_chk+0x37)[0x3bb627]
> >> >> grads(gascat+0x247)[0x8091e07]
> >> >> grads(gaplot+0x42f)[0x809b3df]
> >> >> grads(gadspl+0x5b8)[0x80e30b8]
> >> >> grads(gacmd+0x1922)[0x80e1892]
> >> >> grads(gagsdo+0x41)[0x80e3751]
> >> >> grads(gsstmt+0x40)[0x80a0880]
> >> >> grads(gsruns+0x244)[0x80a0d94]
> >> >> grads(gsrunf+0x124)[0x80a10f4]
> >> >> grads(gsfile+0x1a6)[0x80a1556]
> >> >> grads(gacmd+0x1dca)[0x80e1d3a]
> >> >> grads(main+0x5d6)[0x80520b6]
> >> >> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x2e9113]
> >> >> grads[0x8052661]
> >> >> ======= Memory map: ========
> >> >> 00110000-0012a000 r-xp 00000000 08:06 440979
> >> >> /usr/lib/libudunits2.so.0.1.0
> >> >> 0012a000-0012b000 r--p 0001a000 08:06 440979
> >> >>
> >> >>
> >> >> Can anybody help me?
> >> >> I appreciate some help.
> >> >> Celso
> >> >>
> >> >>
> >> >> --
> >> >> ____________________________________________
> >> >> Prof. Celso Bandeira de Melo Ribeiro
> >> >> Universidade Federal de Juiz de Fora - UFJF
> >> >> Faculdade de Engenharia, Plataforma 4
> >> >> Departamento de Engenharia Ambiental e Sanitaria
> >> >> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
> >> >> tel. (32) 2102-3400
> >> >> Visiting Scholar in Texas A&M University
> >> >> _______________________________________________
> >> >> gradsusr mailing list
> >> >> gradsusr at gradsusr.org
> >> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >> >>
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
>
> --
> ____________________________________________
> Prof. Celso Bandeira de Melo Ribeiro
> Universidade Federal de Juiz de Fora - UFJF
> Faculdade de Engenharia, Plataforma 4
> Departamento de Engenharia Ambiental e Sanitaria
> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
> tel. (32) 2102-3400
> Visiting Scholar in Texas A&M University
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131202/efc8d319/attachment.html 


More information about the gradsusr mailing list