Re: Seg Fault with str_match() and str_match_ic()?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 21 2012 - 08:52:21 MDT

Hi Paul,

I think what you're doing should be perfectly fine. I tried it on a couple of Linux systems and my Mac using V6.0.0 and couldn't reproduce the problem.
I tried it both interactively and in a script.

If you print "class_out", does it have valid values? Does it seg fault if you run these two lines from a script rather than interactively?

Do you know which NCL binary was installed on your machine? We tend to see more problems with RedHat binaries than we do Debian binaries.
It seems that the Debian binaries are more compatible for other flavors of Linux.

--Mary

On Jun 21, 2012, at 5:00 AM, Paul Scorer wrote:

> Is this one known about?
>
> Or am I doing something silly?
>
> This is the example provided at
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/str_match.shtml
>
> $ ncl
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> class_out = NhlGetClassResources("contourPlotClass", "")
> ncl 1> cnConst = str_match_ic(class_out, "cnConst")
> Segmentation fault
> $
>
> It the same for both str_match() and str_match_ic()
>
> $ uname -srvmpio
> Linux 2.6.43.5-2.fc15.x86_64 #1 SMP Tue May 8 11:09:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> Fixed in V6.1-beta? :-)
>
> PaulS
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 21 08:52:31 2012

This archive was generated by hypermail 2.1.8 : Mon Jun 25 2012 - 09:57:23 MDT