<div dir="ltr"><div><div><div>Hi Carl,<br><br></div>Looking at output from "strace" while the addfiles statement runs indicates there are two variables of the same name in that file, but of different dimensions, -- V-component_of_wind(179,1,181,<wbr>360) and V-component_of_wind(1,1,190,<wbr>384). I'd surmise that's the likely source of the "double free or corruption" error message. In any case, I unfortunately don't know how to work around that, offhand. The error seems to be happening within the NetCDF library. I'll look into it further, but the question is whether NCL ever gets a chance to field that error from the library.<br><br></div>Wish I had a better answer...<br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 12:57 PM, Carl Schreck <span dir="ltr"><<a href="mailto:cjschrec@ncsu.edu" target="_blank">cjschrec@ncsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm having an issue trying to read some CFS-Reforecast data through OpenDAP in NCL. Most files work, but there are occasional ones that make NCL crash pretty hard (see output below). One such file is <a href="https://nomads.ncdc.noaa.gov/thredds/dodsC/cfsr-hpr-ts45/wnd200_f/2006/200601/catalog.html?dataset=cfsr-hpr-ts45/wnd200_f/2006/200601/wnd200_f.01.2006012406.2006031006.2006012406.grb2" target="_blank">this one</a>.</div><div><br></div><div>Any suggestions on how I can detect a bad file like this before it crashes NCL? Just passing it to addfile causes the crash.</div><div><br></div><div>Thanks!</div><div>Carl</div><div><br></div><div><div><div><font face="monospace, monospace"> Copyright (C) 1995-2017 - All Rights Reserved</font></div><div><font face="monospace, monospace"> University Corporation for Atmospheric Research</font></div><div><font face="monospace, monospace"> NCAR Command Language Version 6.4.1-04May2017_1732</font></div><div><font face="monospace, monospace"> The use of this software is governed by a License Agreement.</font></div><div><font face="monospace, monospace"> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</font></div><div><font face="monospace, monospace"><b>ncl 0> f=addfile("<span style="background-color:rgb(255,255,0)"><a href="https://nomads.ncdc.noaa.gov/thredds/dodsC/cfsr-hpr-ts45/wnd200_f/2006/200601/wnd200_f.01.2006012406.2006031006.2006012406.grb2" target="_blank">https://nomads.<wbr>ncdc.noaa.gov/thredds/dodsC/<wbr>cfsr-hpr-ts45/wnd200_f/2006/<wbr>200601/wnd200_f.01.2006012406.<wbr>2006031006.2006012406.grb2</a></span>","<wbr>r")</b></font></div><div><font face="monospace, monospace">Duplicate dataset field names: cfsr-hpr-ts45%2fwnd200_f%<wbr>2f2006%2f200601%2fwnd200_f%<wbr>2e01%2e2006012406%<wbr>2e2006031006%2e2006012406%<wbr>2egrb2</font></div><div><font face="monospace, monospace">context: Dataset { Float32 U-component_of_wind[time1 = 177][pressure = 1][lat = 181][lon = 360]; Float32 V-component_of_wind[time = 179][pressure = 1][lat = 181][lon = 360]; Int32 time[time = 179]; Int32 time1[time1 = 177]; Float64 lat[lat = 181]; Float64 lon[lon = 360]; String latLonCoordSys; Float64 pressure[pressure = 1]; Float32 V-component_of_wind[time2 = 1][height_above_ground = 1][lat = 190][lon = 384]; Int32 time[time = 179]; Int32 time1[time1 = 177]; Int32 time2[time2 = 1]; Float64 lat[lat = 190]; Float64 gaussw[lat = 190]; Float64 lon[lon = 384]; String latLonCoordSys; Float64 height_above_ground[height_<wbr>above_ground = 1]; Float64 pressure[pressure = 1];} cfsr-hpr-ts45%2fwnd200_f%<wbr>2f2006%2f200601%2fwnd200_f%<wbr>2e01%2e2006012406%<wbr>2e2006031006%2e2006012406%<wbr>2egrb2;^</font></div><div><font face="monospace, monospace">*** Error in `ncl': double free or corruption (!prev): 0x000000000d932fb0 ***</font></div><div><font face="monospace, monospace">======= Backtrace: =========</font></div><div><font face="monospace, monospace">/usr/lib64/libc.so.6(+0x7c619)<wbr>[0x7f7eb746b619]</font></div><div><font face="monospace, monospace">ncl(ocfree+0x1f)[0xe8034e]</font></div><div><font face="monospace, monospace">ncl(ocnodes_free+0x1e0)[<wbr>0xe86800]</font></div><div><font face="monospace, monospace">ncl[0xec6099]</font></div><div><font face="monospace, monospace">ncl(DAPparse+0x1f5)[0xec632a]</font></div><div><font face="monospace, monospace">ncl(ocfetch+0x2dd)[0xe83db8]</font></div><div><font face="monospace, monospace">ncl(oc_fetch+0x79)[0xe7a600]</font></div><div><font face="monospace, monospace">ncl(dap_fetch+0x17f)[0xebd349]</font></div><div><font face="monospace, monospace">ncl[0xe782b0]</font></div><div><font face="monospace, monospace">ncl(NCD2_open+0x4a5)[0xe73fc1]</font></div><div><font face="monospace, monospace">ncl(NC_open+0x2a0)[0xe3f06c]</font></div><div><font face="monospace, monospace">ncl(nc__open+0x46)[0xe3e521]</font></div><div><font face="monospace, monospace">ncl[0x822ca9]</font></div><div><font face="monospace, monospace">ncl(_NclFileCreate+0x3c7)[<wbr>0x805302]</font></div><div><font face="monospace, monospace">ncl(_NclOpenFile+0x483)[<wbr>0x7d0b69]</font></div><div><font face="monospace, monospace">ncl(_NclIAddFile+0x1b7)[<wbr>0x8cd741]</font></div><div><font face="monospace, monospace">ncl(CallINTRINSIC_FUNC_CALL+<wbr>0x43)[0x8a2b48]</font></div><div><font face="monospace, monospace">ncl(_NclExecute+0x3eb)[<wbr>0x8ae005]</font></div><div><font face="monospace, monospace">ncl(yyparse+0x6bd)[0x777de9]</font></div><div><font face="monospace, monospace">ncl(NclDriver+0xc16)[0x774025]</font></div><div><font face="monospace, monospace">ncl(main+0x9)[0x7707b6]</font></div><div><font face="monospace, monospace">/usr/lib64/libc.so.6(__libc_<wbr>start_main+0xf5)[<wbr>0x7f7eb7410c05]</font></div><div><font face="monospace, monospace">ncl[0x7706e1]</font></div><div><font face="monospace, monospace">======= Memory map: ========</font></div><div><font face="monospace, monospace">00400000-02846000 r-xp 00000000 00:4a 771250262 /snfs2/home/carl/ncl_ncarg/<wbr>bin/ncl</font></div><div><font face="monospace, monospace">02a45000-02b12000 r--p 02445000 00:4a 771250262 /snfs2/home/carl/ncl_ncarg/<wbr>bin/ncl</font></div><div><font face="monospace, monospace">02b12000-02c61000 rw-p 02512000 00:4a 771250262 /snfs2/home/carl/ncl_ncarg/<wbr>bin/ncl</font></div><div><font face="monospace, monospace">02c61000-06512000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">08214000-0d956000 rw-p 00000000 00:00 0 [heap]</font></div><div><font face="monospace, monospace">7f7eac000000-7f7eac021000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eac021000-7f7eb0000000 ---p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eb37d7000-7f7eb380c000 r--s 00000000 fd:01 1611467726 /var/db/nscd/hosts</font></div><div><font face="monospace, monospace">7f7eb380c000-7f7eb3a0d000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eb3a0d000-7f7eb3a6d000 r-xp 00000000 fd:01 1077832509 /usr/lib64/libpcre.so.1.2.0</font></div><div><font face="monospace, monospace">7f7eb3a6d000-7f7eb3c6d000 ---p 00060000 fd:01 1077832509 /usr/lib64/libpcre.so.1.2.0</font></div><div><font face="monospace, monospace">7f7eb3c6d000-7f7eb3c6e000 r--p 00060000 fd:01 1077832509 /usr/lib64/libpcre.so.1.2.0</font></div><div><font face="monospace, monospace">7f7eb3c6e000-7f7eb3c6f000 rw-p 00061000 fd:01 1077832509 /usr/lib64/libpcre.so.1.2.0</font></div><div><font face="monospace, monospace">7f7eb3c6f000-7f7eb3c71000 r-xp 00000000 fd:01 1076477375 /usr/lib64/libfreebl3.so</font></div><div><font face="monospace, monospace">7f7eb3c71000-7f7eb3e70000 ---p 00002000 fd:01 1076477375 /usr/lib64/libfreebl3.so</font></div><div><font face="monospace, monospace">7f7eb3e70000-7f7eb3e71000 r--p 00001000 fd:01 1076477375 /usr/lib64/libfreebl3.so</font></div><div><font face="monospace, monospace">7f7eb3e71000-7f7eb3e72000 rw-p 00002000 fd:01 1076477375 /usr/lib64/libfreebl3.so</font></div><div><font face="monospace, monospace">7f7eb3e72000-7f7eb3e96000 r-xp 00000000 fd:01 1074687352 /usr/lib64/libselinux.so.1</font></div><div><font face="monospace, monospace">7f7eb3e96000-7f7eb4095000 ---p 00024000 fd:01 1074687352 /usr/lib64/libselinux.so.1</font></div><div><font face="monospace, monospace">7f7eb4095000-7f7eb4096000 r--p 00023000 fd:01 1074687352 /usr/lib64/libselinux.so.1</font></div><div><font face="monospace, monospace">7f7eb4096000-7f7eb4097000 rw-p 00024000 fd:01 1074687352 /usr/lib64/libselinux.so.1</font></div><div><font face="monospace, monospace">7f7eb4097000-7f7eb4099000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eb4099000-7f7eb409b000 r-xp 00000000 fd:01 1078494182 /usr/lib64/libXau.so.6.0.0</font></div><div><font face="monospace, monospace">7f7eb409b000-7f7eb429b000 ---p 00002000 fd:01 1078494182 /usr/lib64/libXau.so.6.0.0</font></div><div><font face="monospace, monospace">7f7eb429b000-7f7eb429c000 r--p 00002000 fd:01 1078494182 /usr/lib64/libXau.so.6.0.0</font></div><div><font face="monospace, monospace">7f7eb429c000-7f7eb429d000 rw-p 00003000 fd:01 1078494182 /usr/lib64/libXau.so.6.0.0</font></div><div><font face="monospace, monospace">7f7eb429d000-7f7eb42a4000 r-xp 00000000 fd:01 1078457975 /usr/lib64/<a href="http://librt-2.17.so" target="_blank">librt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb42a4000-7f7eb44a3000 ---p 00007000 fd:01 1078457975 /usr/lib64/<a href="http://librt-2.17.so" target="_blank">librt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb44a3000-7f7eb44a4000 r--p 00006000 fd:01 1078457975 /usr/lib64/<a href="http://librt-2.17.so" target="_blank">librt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb44a4000-7f7eb44a5000 rw-p 00007000 fd:01 1078457975 /usr/lib64/<a href="http://librt-2.17.so" target="_blank">librt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb44a5000-7f7eb44ad000 r-xp 00000000 fd:01 1075307386 /usr/lib64/<a href="http://libcrypt-2.17.so" target="_blank">libcrypt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb44ad000-7f7eb46ac000 ---p 00008000 fd:01 1075307386 /usr/lib64/<a href="http://libcrypt-2.17.so" target="_blank">libcrypt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb46ac000-7f7eb46ad000 r--p 00007000 fd:01 1075307386 /usr/lib64/<a href="http://libcrypt-2.17.so" target="_blank">libcrypt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb46ad000-7f7eb46ae000 rw-p 00008000 fd:01 1075307386 /usr/lib64/<a href="http://libcrypt-2.17.so" target="_blank">libcrypt-2.17.so</a></font></div><div><font face="monospace, monospace">7f7eb46ae000-7f7eb46dc000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eb46dc000-7f7eb46df000 r-xp 00000000 fd:01 1074820322 /usr/lib64/libkeyutils.so.1.5</font></div><div><font face="monospace, monospace">7f7eb46df000-7f7eb48de000 ---p 00003000 fd:01 1074820322 /usr/lib64/libkeyutils.so.1.5</font></div><div><font face="monospace, monospace">7f7eb48de000-7f7eb48df000 r--p 00002000 fd:01 1074820322 /usr/lib64/libkeyutils.so.1.5</font></div><div><font face="monospace, monospace">7f7eb48df000-7f7eb48e0000 rw-p 00003000 fd:01 1074820322 /usr/lib64/libkeyutils.so.1.5</font></div><div><font face="monospace, monospace">7f7eb48e0000-7f7eb48ed000 r-xp 00000000 fd:01 1074821491 /usr/lib64/libkrb5support.so.<wbr>0.1</font></div><div><font face="monospace, monospace">7f7eb48ed000-7f7eb4aec000 ---p 0000d000 fd:01 1074821491 /usr/lib64/libkrb5support.so.<wbr>0.1</font></div><div><font face="monospace, monospace">7f7eb4aec000-7f7eb4aed000 r--p 0000c000 fd:01 1074821491 /usr/lib64/libkrb5support.so.<wbr>0.1</font></div><div><font face="monospace, monospace">7f7eb4aed000-7f7eb4aee000 rw-p 0000d000 fd:01 1074821491 /usr/lib64/libkrb5support.so.<wbr>0.1</font></div><div><font face="monospace, monospace">7f7eb4aee000-7f7eb4b29000 r-xp 00000000 fd:01 1075015850 /usr/lib64/libquadmath.so.0.<wbr>0.0</font></div><div><font face="monospace, monospace">7f7eb4b29000-7f7eb4d28000 ---p 0003b000 fd:01 1075015850 /usr/lib64/libquadmath.so.0.<wbr>0.0</font></div><div><font face="monospace, monospace">7f7eb4d28000-7f7eb4d29000 r--p 0003a000 fd:01 1075015850 /usr/lib64/libquadmath.so.0.<wbr>0.0</font></div><div><font face="monospace, monospace">7f7eb4d29000-7f7eb4d2a000 rw-p 0003b000 fd:01 1075015850 /usr/lib64/libquadmath.so.0.<wbr>0.0</font></div><div><font face="monospace, monospace">7f7eb4d2a000-7f7eb4d51000 r-xp 00000000 fd:01 1143288053 /usr/lib64/libxcb.so.1.1.0</font></div><div><font face="monospace, monospace">7f7eb4d51000-7f7eb4f50000 ---p 00027000 fd:01 1143288053 /usr/lib64/libxcb.so.1.1.0</font></div><div><font face="monospace, monospace">7f7eb4f50000-7f7eb4f51000 r--p 00026000 fd:01 1143288053 /usr/lib64/libxcb.so.1.1.0</font></div><div><font face="monospace, monospace">7f7eb4f51000-7f7eb4f52000 rw-p 00027000 fd:01 1143288053 /usr/lib64/libxcb.so.1.1.0</font></div><div><font face="monospace, monospace">7f7eb4f52000-7f7eb4f79000 r-xp 00000000 fd:01 1074687455 /usr/lib64/libexpat.so.1.6.0</font></div><div><font face="monospace, monospace">7f7eb4f79000-7f7eb5179000 ---p 00027000 fd:01 1074687455 /usr/lib64/libexpat.so.1.6.0</font></div><div><font face="monospace, monospace">7f7eb5179000-7f7eb517b000 r--p 00027000 fd:01 1074687455 /usr/lib64/libexpat.so.1.6.0</font></div><div><font face="monospace, monospace">7f7eb517b000-7f7eb517c000 rw-p 00029000 fd:01 1074687455 /usr/lib64/libexpat.so.1.6.0</font></div><div><font face="monospace, monospace">7f7eb517c000-7f7eb521c000 r-xp 00000000 fd:01 1142930368 /usr/lib64/libfreetype.so.6.<wbr>10.0</font></div><div><font face="monospace, monospace">7f7eb521c000-7f7eb541b000 ---p 000a0000 fd:01 1142930368 /usr/lib64/libfreetype.so.6.<wbr>10.0</font></div><div><font face="monospace, monospace">7f7eb541b000-7f7eb5421000 r--p 0009f000 fd:01 1142930368 /usr/lib64/libfreetype.so.6.<wbr>10.0</font></div><div><font face="monospace, monospace">7f7eb5421000-7f7eb5422000 rw-p 000a5000 fd:01 1142930368 /usr/lib64/libfreetype.so.6.<wbr>10.0</font></div><div><font face="monospace, monospace">7f7eb5422000-7f7eb545c000 r-xp 00000000 fd:01 1097103702 /usr/lib64/libnspr4.so</font></div><div><font face="monospace, monospace">7f7eb545c000-7f7eb565b000 ---p 0003a000 fd:01 1097103702 /usr/lib64/libnspr4.so</font></div><div><font face="monospace, monospace">7f7eb565b000-7f7eb565c000 r--p 00039000 fd:01 1097103702 /usr/lib64/libnspr4.so</font></div><div><font face="monospace, monospace">7f7eb565c000-7f7eb565e000 rw-p 0003a000 fd:01 1097103702 /usr/lib64/libnspr4.so</font></div><div><font face="monospace, monospace">7f7eb565e000-7f7eb5660000 rw-p 00000000 00:00 0</font></div><div><font face="monospace, monospace">7f7eb5660000-7f7eb5664000 r-xp 00000000 fd:01 1097205616 /usr/lib64/libplc4.so</font></div><div><font face="monospace, monospace">7f7eb5664000-7f7eb5863000 ---p 00004000 fd:01 1097205616 /usr/lib64/libplc4.so</font></div><div><font face="monospace, monospace">7f7eb5863000-7f7eb5864000 r--p 00003000 fd:01 1097205616 /usr/lib64/libplc4.so</font></div><div><font face="monospace, monospace">7f7eb5864000-7f7eb5865000 rw-p 00004000 fd:01 1097205616 /usr/lib64/libplc4.soAborted</font></div></div><div><br></div><div><br></div>-- <br><div class="m_-3461048384048853638gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><table style="background-color:transparent;max-width:100%;border-collapse:collapse;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px" cellspacing="2" cellpadding="2" border="0"><tbody><tr><td align="center" width="71" height="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="https://ncics.org/" style="color:rgb(17,85,204)" target="_blank"><img src="https://ncics.org/ncics/img/NCICS_logo-131x131.png"></a></span></span></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br></span></span><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Research Scholar</b></span></span><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><br></span></span><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://ncsu.edu/" style="color:rgb(38,58,143);font-weight:bold" target="_blank">North Carolina State University</a><br></span></span><a href="https://ncics.org/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;font-weight:bold" target="_blank">North Carolina Institute for Climate Studies (NCICS)</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: <a href="tel:(828)%20257-3140" value="+18282573140" style="color:rgb(17,85,204)" target="_blank">+1 828 257 3140</a><br></span></span><span style="font-family:arial,helvetica,sans-serif;font-size:11px">c: <a href="tel:(828)%20484-1702" value="+18284841702" style="color:rgb(17,85,204)" target="_blank">+1 828 484 1702</a><br></span><a href="http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;font-weight:bold" target="_blank">Publications</a><br><a href="https://ncics.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;font-weight:bold" target="_blank">ncics.org/mjo</a><br><a href="https://www.cyclonecenter.org/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;font-weight:bold" target="_blank">CycloneCenter.org</a><br></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>