Skip to content

ncdump fails on s390x #2670

@dschwoerer

Description

@dschwoerer

To report a non-security related issue, please provide:

  • master ; v4.9.2 ; v4.9.0 (output from 43abd69)

  • Fedora 36 on s390x

  • The attached file somefile.nc.zip cannot be read with ncdump -h somefile.nc

  • The file was generated on s390x as part of the test suite; it can be read without issues on x86_64

netcdf somefile {
dimensions:
	x = 1 ;
	y = 54 ;
	z = 1 ;
	t = UNLIMITED ; // (0 currently)
	char36 = 36 ;
variables:
[...]
	char run_id(char36) ;
		run_id:description = "UUID for this simulation" ;
[...]
	double dx(x, 
NetCDF: Invalid dimension ID or name
Location: file /home/dave/netcdf-c/ncdump/ncdump.c; fcn do_ncdump_rec line 1782

The next dimension would be y - i.e. id 1, but the id is read as 0x1000000. Note that the dimension id for char36 is correctly read as 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions