-
Notifications
You must be signed in to change notification settings - Fork 267
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
nc_create("file://foo.zarr#mode=nczarr,noxarray", 0, &ncid) consumes all memory #2573
Comments
It seems to get stuck in an infinite allocation/copy loop. backtrace:
|
Pointer to the python-xarray test: https://github.com/pydata/xarray/blob/main/xarray/tests/test_backends.py#L5733 |
ok, I have a fix.But it has revealed an odd HDF5 error that I need to track down. |
DennisHeimbigner
added a commit
to DennisHeimbigner/netcdf-c
that referenced
this issue
Dec 18, 2022
re: Issue Unidata#2573 The file type inferencer in libdispatch/dinference.c has a simple forward inference mechanism so that the occurrence of certain mode values in a URL fragment implies inclusion of additional mode values. This kind of inference is notorious for leading to cycles if not careful. Unfortunately, this occurred in the one in dinference.c. This was fixed by providing a more complicated, but more reliable inference mechanism. ## Misc. Other Changes * Found and fixed a couple of memory leaks. * There is a recent problem in building HDF4 support on github actions. Fixed by using the internal HDF4 xdr capability. * Some filter-related code was not being properly ifdef'd with ENABLE_NCZARRA_FILTERS.
Fixed by PR #2574 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are seeing this with netcdf 4.9.0 and current git main head on Fedora Rawhide. The following is a simple reproducer:
This is derived from a test in python-xarray - an issue was initially raised there: pydata/xarray#6854
The text was updated successfully, but these errors were encountered: