[ncl-talk] buffer overflow detected

Micah Sklut micahs2005 at gmail.com
Fri Sep 24 12:01:14 MDT 2021


Hi Rick,

Yes, it is a copy/paste of the error.

On Fri, Sep 24, 2021 at 12:18 PM Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> I can't find anywhere in the source code where such an error message would
> arise. Is that a literal copy/paste of the error?
>
> Rick
>
>
> On Fri, Sep 24, 2021 at 10:03 AM Micah Sklut via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi NCL Talk,
>>
>> I'm using write_table to output a large amount of data to file.
>> Here's the output statement:
>>
>> alist =
>> [/latPoints,lonPoints,hsString,perString,dirString,winduString,windvString,phs1String,phs2String,phs3String,phs4String,phs5String,phswindString,pdir1String,pdir2String,pdir3String,pdir4String,pdir5String,pdirwindString,ptp1String,ptp2String,ptp3String,ptp4String,ptp5String,ptpwindString/]
>>
>>
>> write_table("outf_data.txt","w",alist,"%6.3f,%6.3f,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s");
>>
>> I'm getting the following message:
>>
>> *** buffer overflow detected ***: ncl terminated
>> Aborted
>>
>> When I reduce the string lengths of the variables, then I don't get this
>> error, so I"m guessing I"m running into an NCL string length maximum?
>>
>> Any suggestions on how to get around this problem?
>>
>> Thank you.
>>
>> --
>> Micah Sklut
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Micah Sklut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210924/f836fa15/attachment.html>


More information about the ncl-talk mailing list