Project

General

Profile

Chaining of EOF with -runmean operator leads to segmentation fault

Added by Klaus Pankatz over 7 years ago

Hello,

a segmentation fault occurs when I chain the cdo eof operator with the -runmean operator.

I want to calculate the eof of pacific SSts with the command

cdo eof,10 -runmean,3 $infile eigenvectors.nc eigenvalues.nc

However, cdo then crashes with a segmentation fault. If I simply split up the operators in two different commands, it works just fine, like:

cdo runmean,3 $infile tmp.nc
cdo eof,10 tmp.nc eigenvectors.nc eigenvalues.nc

Why is that? Is it because runmean has an impact on the number of time steps, so the eof operator expects the number of time steps which is given by $infile?

It occurred to me that chaining the eof operator with different operators like addc or remapbil, for instance, is fine.

Thanks,
Klaus


Replies (5)

RE: Chaining of EOF with -runmean operator leads to segmentation fault - Added by Ralf Mueller over 7 years ago

Hi Klaus!

Could upload some sample data? It's hard to reproduce crashes without it..

thx in advance
ralf

RE: Chaining of EOF with -runmean operator leads to segmentation fault - Added by Ralf Mueller over 7 years ago

Forgot to ask: Could you please add the output of

cdo -V

RE: Chaining of EOF with -runmean operator leads to segmentation fault - Added by Klaus Pankatz over 7 years ago

Sure, apologies.

The file infile.nc contains the variable tos on the MPIOM grid on twelve time steps.

cdo -V
Climate Data Operators version 1.7.1 (http://mpimet.mpg.de/cdo)
Compiled: by k202082 on mlogin101 (x86_64-unknown-linux-gnu) Apr 12 2016 15:47:11
Compiler: gcc -std=gnu99 -fopenmp -pthread -O2 -march=native -mavx2
version: gcc (GCC) 4.8.2
Features: DATA PTHREADS OpenMP HDF5 NC4/HDF5/threadsafe OPeNDAP SZ Z UDUNITS2 PROJ.4 MAGICS AVX2
Libraries: HDF5/1.8.14 proj/4.91
Filetypes: srv ext ieg grb grb2 nc nc2 nc4 nc4c
CDI library version : 1.7.1 of Apr 12 2016 15:46:56
CGRIBEX library version : 1.7.4 of Feb 19 2016 11:03:41
GRIB_API library version : 1.13.0
NetCDF library version : 4.4.0 of Apr 12 2016 11:08:08 $
HDF5 library version : 1.8.14
SERVICE library version : 1.4.0 of Apr 12 2016 15:46:55
EXTRA library version : 1.4.0 of Apr 12 2016 15:46:55
IEG library version : 1.4.0 of Apr 12 2016 15:46:55
FILE library version : 1.8.2 of Apr 12 2016 15:46:55
infile.nc (6.9 MB) infile.nc MPIOM variable tos yearly mean anomaly on MPIOM grid

RE: Chaining of EOF with -runmean operator leads to segmentation fault - Added by Ralf Mueller over 7 years ago

Confirmed!!

I'll make a bug report out of it. You can work around it easily, right?

    (1-5/5)