[ncl-talk] NCL failed. Segmentation fault (core dumped)
Rick Brownrigg
brownrig at ucar.edu
Tue Jul 9 08:31:25 MDT 2019
Hi Berny,
The command ng4ex is actually a C-shell (csh) script, and the NCL
distribution has a number of others (eg, ncl_filedump, ncl_convert2nc,
etc). Lately we have been getting reports of these scripts causing a SEGV
specifically on Ubuntu systems. We don't know why and we do not have ready
access to an Ubuntu platform. I would be interested to know if
other/any/all C-shell scripts cause the problem as well.
The workaround however is to replace the C-shell with the tahoe-shell -
tcsh. That can be done in several ways:
i) at the system level, replace /usr/bin/csh with a symlink to
/usr/bin/tcsh.
ii) patch the various ncl utilities by replacing the first line:
#!/bin/csh -f
with
#!/bin/tcsh -f
You can track down where these utilities are on the disk, by for example:
which ng4ex
I hope that helps. I am going to load up an Ubuntu virtual machine and see
if I can replicate the problem.
Rick
On Fri, Jul 5, 2019 at 1:12 PM Berny Chaimite via ncl-talk <
ncl-talk at ucar.edu> wrote:
> ...which ncl, output is: /usr/local/ncarg/bin/ncl
> NCAR Command Language Version 6.5.0
> *-----*
>
> ----------------------------------------
> Berny A. Chaimite
> ----------------------------------------
>
> Atmospheric and Climate Sciences Student
> Department of Physics
> Eduardo Mondlane University
>
>
> *Contact*:
>
> +258 846041931/870434233
>
> Maputo, Mozambique
>
>
>
> Berny Chaimite <bchaimite at gmail.com> escreveu no dia sexta, 5/07/2019
> à(s) 21:06:
>
>> Hi, I'm installing ncl 6.5 (the files is
>> *ncl_ncarg-6.5.0-Debian9.4_64bit_gnu630.tar.gz*) in ubuntu 19.04 (*uname
>> -m*: x86_64; *gcc -v*: gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1) ).
>> In *.bashrc* file Im added: "export NCARG_ROOT=/usr/local/ncarg"
>> "export
>> PATH=$NCARG_ROOT/bin:~/bin:/usr/bin:/bin/etc:/usr/X11R6/bin:/usr/local/bin"
>>
>> When I run *ng4ex gsun01n* in command line, appears:
>>
>> NCAR Graphics NCL Example <gsun01n>
>> Segmentation fault (core dumped)
>> This example was set up to display the output to an
>> X11 window.
>> Copying gsun01n.ncl
>> cp: cannot stat '/usr/local/ncarg/lib/ncarg/nclex//gsun01n.ncl': No such
>> file or directory
>> Running NCL...
>> gsun01n.ncl: No such file or directory.
>> ncl failed.
>>
>>
>> Regards,
>> Berny Chaimite
>> *-----*
>>
>> ----------------------------------------
>> Berny A. Chaimite
>> ----------------------------------------
>>
>> Atmospheric and Climate Sciences Student
>> Department of Physics
>> Eduardo Mondlane University
>>
>>
>> *Contact*:
>>
>> +258 846041931/870434233
>>
>> Maputo, Mozambique
>>
>> _______________________________________________
> 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/20190709/79814f04/attachment.html>
More information about the ncl-talk
mailing list