[gradsusr] error: Buffer overflow detected

Celso Bandeira de Melo Ribeiro celso.bandeira at ufjf.edu.br
Mon Dec 2 19:26:49 EST 2013


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
-------------- next part --------------
'reinit'
'set display color white'
'c'

'set grads off'
'xdfopen amazonia.ctl'
'set gxout scatter'
"Set ccolor 2"
"Set cthick 6"
"Set cmark 1"
"set digsiz 0.4"
"Set vrange 0 1000"
"d rain;qrunoff"
"draw xlab Rain"
"draw ylab RunOff"
-------------- next part --------------
DSET ^amazonia.clm2.h0.2000-%m2-%d2-00000.nc
OPTIONS 365_day_calendar
OPTIONS template
DTYPE netcdf
TDEF time 365 linear 02jan2000 1dy


More information about the gradsusr mailing list