[ncl-talk] segmentation fault while using gsm_csn_xy

Zhifeng Yang yangzf01 at gmail.com
Mon Apr 30 10:20:16 MDT 2018


Hi Rick,

Yes, you are right. I can run the script on NCL 6.4, but not on NCL 6.3. We
are trying to install NCL 6.4 on our computer. However, can you run the
script on NCL 6.3? If you can, I am wondering whether you will have the
same error. And what caused this error? I narrowed down the error to that
specific statement in gsn_code.ncl. However, I can not figure out why that
statement caused the error. It's very interesting and may be a potential
bug in NCL. I just guess.

Best,
Zhifeng


On Mon, Apr 30, 2018 at 12:08 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> I was able to run your script, which produced the attached plot.  It also
> produced the printed output below. The syntax error related to debugging
> print statements you perhaps added to gsn_code.ncl (a print statement would
> not be valid within a create-block), and the error at the end is because I
> don't have all  the file. But otherwise, its working fine with the
> development version of NCL. Are you able to upgrade to 6.4.0?
>
> Rick
>
> $ ncl arm_sgp_trend_line_diurnal.ncl
>  Copyright (C) 1995-2017 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.5.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> fatal:syntax error: line 12347 in file ./gsn_code.ncl before or near print
> print
> ----^
>
> (0)    AAA01
> (0)    NOW WORKING ON : 20171220
> (0)    AAA02
> (0)    AAA03
> (0)    BBB03
> (0)    BBB01
> (0)    CC01
> (0)    CC02
> (0)    CC04
> (0)    CC08
> (0)    CC11
> (0)    CC12
> (0)    CC13
> (0)    DD05
> (0)    DD09
> (0)    DD10
> (0)    GG01
> (0)    GG05
> (0)    GG07
> (0)    GG06
> (0)    GG02
> (0)    GG03
> (0)    DD08
> (0)    DD07
> (0)    DD06
> (0)    DD02
> (0)    CC03
> (0)    BBB02
> (0)    NOW WORKING ON : 20171221
> (0)    AAA02
> warning:_NclOpenFile: cannot open file <./sgpco2flx4mC1.b1.20171221.
> 001500.nc>; No such file or directory
>
> fatal:file (f) isn't defined
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 70 in
> file arm_sgp_trend_line_diurnal.ncl
>
>
>
> On Fri, Apr 27, 2018 at 3:01 PM, Zhifeng Yang <yangzf01 at gmail.com> wrote:
>
>> Hi all,
>>
>> I got a segmentation fault error while executing the following statement
>> calling from gsn_code.ncl
>>
>>     plot_object = create wksname + "_xy" xyPlotClass wks
>>         "xyCoordData" : data_object
>>
>> Here is the exact error.
>>
>> Segmentation fault (core dumped)
>>
>> The NCL version is 6.3.0. I also attached the ncl code and data. The main
>> code is "arm_sgp_trend_line_diurnal.ncl", and subroutine is
>> "plot_arm_sgp_trend_line_diurnal.ncl".
>>
>> and also the log file using "ncl -x code.ncl" (file name is
>> ncl_x_code.txt)
>>
>> Best,
>> Zhifeng
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180430/51105169/attachment.html>


More information about the ncl-talk mailing list