[ncl-install] Segmentation fault

Ted Mansell ted.mansell at noaa.gov
Wed Jan 17 09:03:59 MST 2018


This could be a stacksize issue, as the default stack size in OS X is pretty small (8MB). If you are running tcsh, try the command 'unlimit stacksize' to boost it to 65MB. If you have the default bash shell, it is something similar but not the same (ulimit?).

-- Ted

__________________________________________________________
| Edward Mansell <ted.mansell at noaa.gov>
| National Severe Storms Laboratory
|--------------------------------------------------------------
| "The contents of this message are mine personally and
| do not reflect any position of the U.S. Government or NOAA."
|--------------------------------------------------------------

> On Jan 16, 2018, at 11:33 PM, Yuanfu Xie via ncl-install <ncl-install at ucar.edu> wrote:
> 
> 
> Hello,
> 
> I have compiled a very simple program to test ncl. When I ran it with a small array, say 10x10, it ran fine. However, when I increased the sizes to 100x100 or larger, it got segmentation faults. I attached the simple code in the following for your reference. Please let me know if I did anything wrong or how to solve this problem. Thanks.
> 
> Yuanfu
> 
> program tst
>   
>   integer, parameter nd = 100
>   real a(nd,nd)
> 
>   a = 1.0
> 
>   call opngks
>   call cpcnrc(a,nd,nd,nd,0.0,0.0,0.0,0,0,-1000)
>   call frame
>   call clsgks
> 
> end program
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180117/cc9044d5/attachment-0001.html>


More information about the ncl-install mailing list