[netcdfgroup] ncgen bug

I get a crash with these steps on macos with Homebrew netcdf:

$ which ncgen
/usr/local/bin/ncgen

$ ncgen -h
netcdf library version 4.6.3 of Oct  1 2019 15:44:39 $

$ cat > bug.cdl << EOF
netcdf bug {
types:
  int enum enum1 {A = -1, B = 0, C = 1} ;
  compound comp1 {
    enum1 e1;
  };

dimensions:
  dim1 = 2 ;
variables:
  enum1 var1(dim1) ;
  comp1 var2(dim1) ;
data:
  var1 = A, A ;
  var2 = {A}, {A} ;
}
EOF

$ ncgen -k nc4 -o bug.nc bug.cdl
assertion failure: econst->subclass == NC_ECONST

Abort trap: 6

Another user reported this on centos with netcdf4.7 (https://gitlab.com/remikz/nccmp/issues/10)

I do not get this problem when using netcdf 4.6.3 built from scratch on Ubuntu 16.04.3 LTS with GCC 5.4.0-6ubuntu1~16.04.12.

Remik


  • 2019 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: