[ncl-talk] Bug :: Seg Fault when accidentally trying to overwrite a list pointer
Alan Brammer
abrammer at albany.edu
Fri Jun 17 12:20:15 MDT 2016
Possibly related, I also get inconsistent seg faults when deleting an occupied list.
Occupied with “anonymous” variables which is probably thereto of the problem.
Inconsistent though, so can’t create an example at this time.
> On 17 Jun 2016, at 14:00, Rick Brownrigg <brownrig at ucar.edu> wrote:
>
> HI Alan,
>
> That's tough justice indeed! I'll file a bug report and we'll look into it. Thanks for reporting this.
>
> Rick
>
>
> On Fri, Jun 17, 2016 at 11:57 AM, Alan Brammer <abrammer at albany.edu <mailto:abrammer at albany.edu>> wrote:
>
>
> So this was a mistake on my part, but it resulted in a seg fault rather than the usual type mismatch warning.
>
>
> ;; me being an idiot, but seg faults are a tough justice
>
> my_list = NewList("lifo")
> my_list = new(10, float)
> Segmentation fault (core dumped)
>
>
> ;;;typical and more preferable behaviour
>
> my_list = new(10, integer)
> my_list = new(10, float)
> fatal:["NclVar.c":1390]:Assignment type mismatch, right hand side can't be coerced to type of left hand side
> fatal:["Execute.c":8573]:Execute: Error occurred at or near line 1
>
>
> my_list = new(10, float)
> my_list = NewList("lifo")
> fatal:["NclVar.c":1390]:Assignment type mismatch, right hand side can't be coerced to type of left hand side
> fatal:["Execute.c":8573]:Execute: Error occurred at or near line 1
>
>
>
>
>
>
> Thanks,
>
> Alan.
>
>
> ##############################
> Alan Brammer,
> Post-Doc Researcher
>
> Department of Atmospheric and Environmental Sciences,
> University at Albany, State University of New York, Albany, NY, 12222
> abrammer at albany.edu <mailto:abrammer at albany.edu>
> ##############################
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160617/b0de5f30/attachment.html
More information about the ncl-talk
mailing list