[ncl-talk] Seg fault on reordering graphics array

Dennis Shea shea at ucar.edu
Thu Aug 20 15:45:47 MDT 2015


Yes, I can reproduce the seg fauls under 6.2.0 and 6.3.0

plots = plots(::-1)

causes the malloc error ==> segfault

A JIRA ticket will be opened.

THX
D

On Wed, Aug 19, 2015 at 8:32 AM, Alan Brammer <abrammer at albany.edu> wrote:
> Managed to find a consistent seg fault, when reversing an array of graphics.
> Tested in 6.3.0 on yellowstone and 6.3.0 on a mac.
> Easy solution though as reordering with indices does work.
>
> Alan.
>
>
>
> x = fspan(0,10,11)
> x = x(::-1)         ;; Just a sanity check.
>
> res = True
> res at gsnDraw = False
> res at gsnFrame = False
>
> wks = gsn_open_wks("x11","")  ;; tested png and x11 both fail
> plots = new(5, graphic)
> do p=0,4
>   plots(p) = gsn_csm_blank_plot(wks, res)
> end do
> plots = plots(::-1)
> ;plots = plots( (/4,3,2,1,0/) )  This does work ???
>
> ;;fatal:NclMalloc Failed:[errno=12]
> ;;Segmentation fault (core dumped)
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list