-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal instruction error when region attribute is not found in the CV #638
Comments
Closed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered an error when working on #628. It was when I tried to set the
region
attribute for the input4MIPs variable to a string made from a list that I got the "illegal instruction" error. It turned out that CMOR was trying to create an error message that said that the string used for the attribute value was not found in a regular expression composed of all the regions listed in the input4MIPs CV file. This causes a problem since there are enough regions in that list to make the regular expression string exceed the maximum string length of CMOR. The code that produces this message is below.cmor/Src/cmor_CV.c
Lines 2008 to 2031 in e38ba87
This issue is related to the bigger issue of the maximum string length being only 1024 as listed in #530. However, rather than tackle that larger issue here, I will just find a solution to handle errors for not finding attribute values in large lists in the CV. Maybe just mention which attribute in the CV where it couldn't find the values.
The text was updated successfully, but these errors were encountered: