[gradsusr] error: Buffer overflow detected

Jeff Duda jeffduda319 at gmail.com
Tue Dec 3 18:05:35 EST 2013


You have to give a specific integer value after the flag, e.g., -m 5000000


On Tue, Dec 3, 2013 at 3:27 PM, Celso Bandeira de Melo Ribeiro <
celso.bandeira at ufjf.edu.br> wrote:

> Hello Jeff,
> Thank you for your suggestion.
> I tried to use -m flag but it doesn't work. Appear the massage that it
> wasn't provide:
>
> celso1234 at ubuntu:~/2000_Diarios$ grads -m flag
> Note: -m option was specified, but no metafile buffer size was provided
>
> And the problem of Boffer overflow persists when I try to run scatter
> plot:
>
> Grid Analysis and Display System (GrADS) Version 2.0.a9
> Copyright (c) 1988-2010 by Brian Doty and the
> Institute for Global Environment and Society (IGES)
> GrADS comes with ABSOLUTELY NO WARRANTY
> See file COPYRIGHT for more information
>
> Config: v2.0.a9 little-endian readline printim grib2 netcdf hdf4-sds hdf5
> opendap-grids geotiff shapefile
> Issue 'q config' command for more detailed configuration information
> Landscape mode? ('n' for portrait):
> GX Package Initialization: Size = 11 8.5
> ga-> scatter1.gs
> No hardcopy metafile open
> All files closed; all defined objects released;
> All GrADS attributes have been reinitialized
> *** buffer overflow detected ***: grads terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f549d3d8f47]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x7f549d3d7e40]
> /lib/x86_64-linux-gnu/libc.so.6(+0x10952b)[0x7f549d3d752b]
> /lib/x86_64-linux-gnu/libc.so.6(__snprintf_chk+0x78)[0x7f549d3d7408]
> grads(gascat+0x239)[0x44b749]
> grads(gaplot+0x40f)[0x4541ff]
> grads(gadspl+0x584)[0x499954]
> grads(gacmd+0x166e)[0x49834e]
> grads(gagsdo+0x34)[0x499fb4]
> grads(gsstmt+0x40)[0x4595d0]
> grads(gsruns+0x253)[0x459ab3]
> grads(gsrunf+0x134)[0x459e04]
> grads(gsfile+0x1aa)[0x45a24a]
> grads(gacmd+0x1a39)[0x498719]
> grads(main+0x5a7)[0x40d897]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f549d2ef76d]
> grads[0x40ddb1]
> ======= Memory map: ========
> 00400000-004c9000 r-xp 00000000 08:01 136215
> /usr/bin/grads
> 006c8000-006c9000 r--p 000c8000 08:01 136215
> /usr/bin/grads
> 006c9000-006cd000 rw-p 000c9000 08:01 136215
>
> I will keep trying.
> Best wishes.
> Celso
>
>
> On Mon, 2 Dec 2013 22:16:04 -0600, Jeff Duda <jeffduda319 at gmail.com>
> wrote:
> > 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
> _______________________________________________
> 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/20131203/cf984c1f/attachment.html 


More information about the gradsusr mailing list