Skip to content

Creating character dataset with LZF filter crashes R #168

@lazappi

Description

@lazappi

We were having a problem with R crashing when trying to write a file with LZF compression. I've tracked it down to trying to create a character dataset with the LZF filter:

h5f <- rhdf5::H5Fcreate(tempfile())
rhdf5::h5createDataset(
    h5f,
    dataset = "test",
    dims = 1,
    storage.mode = "character",
    filter = "LZF"
)

Running this crashes my R session with this output (on Linux and Mac):

 *** caught segfault ***
address 0x1, cause 'memory not mapped'

Traceback:
 1: H5Pset_lzf(dcpl, h5tid = dtype)
 2: .createDCPL(chunk, dims, level, fillValue, dtype = tid, filter = filter,     shuffle = shuffle)
 3: rhdf5::h5createDataset(h5f, dataset = "test", dims = 1, storage.mode = "character",     filter = "LZF")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions