Skip to content
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

Segfault in cmor.write during source_id validation #293

Closed
durack1 opened this issue Jan 25, 2018 · 5 comments
Closed

Segfault in cmor.write during source_id validation #293

durack1 opened this issue Jan 25, 2018 · 5 comments

Comments

@durack1
Copy link
Contributor

durack1 commented Jan 25, 2018

I'm getting a persistent segfault during the cmor.write call, with a gdb suggesting the issue is in:

(gdb) bt
#0  0x0000003cf37285e4 in __strchr_sse42 () from /lib64/libc.so.6
#1  0x00007fffa3c0f28b in cmor_CV_checkSourceID ()
   from /export/duro/anaconda2/envs/cmor330/lib/python2.7/site-packages/cmor/_cmor.so
#2  0x00007fffa3c0b0dc in cmor_setGblAttr ()
   from /export/duro/anaconda2/envs/cmor330/lib/python2.7/site-packages/cmor/_cmor.so

I've had problems determining where the problem is occurring, so have replicated the setup at:

crunch:/work/durack1/Shared/160427_CMIP6_Forcing/OMIP

Running runCmorDemo.py in that directory should reproduce the error, all table files and input files are specified within this python script

@durack1
Copy link
Contributor Author

durack1 commented Jan 29, 2018

@dnadeau4 if you have cmor time today, it'd be great to get to the bottom of this issue

@taylor13
Copy link
Collaborator

one thought is: Is there a hardwired limit to the size of an array CMOR can write in one call to cmor_write? I think the file being treated exceeds 2 gigabytes.

Also check that the type of the dimensions is properly defined as "double".

@durack1
Copy link
Contributor Author

durack1 commented Jan 29, 2018

@taylor13 you're right, the array is very near that 2GB size and is stored as a float in the source file, so at double precision, will be a fair bit larger than 2GB

@dnadeau4
Copy link
Collaborator

fixed. You did not set your source properly in you CV file.

        "source_id":{
            "MRI-JRA55-do-1-3":{
                "source": "MRI JRA55-do 1.3: Atmospheric state generated for OMIP based on the MRI JRA55 reanalysis"
             },
            "PCMDI":{ "source":"PCMDI:"}

@dnadeau4
Copy link
Collaborator

adb1435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants