openPMD / openPMD/openPMD-api

Streaming Read: Segfault on Close w/o Explicit Flush

Open
#994 5 comments 0 reactions 2 assignees Claimed by @franzpoeschel View on GitHub
bug internal
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

I am trying to read data from a file. I create a `Series` and the iteration via `readIters = series->readIterations()` and `iter = *readIters.begin()`. I schedule the reads via `loadChunk`, passing pointers to AMReX-allocated data structures.

I then tried to perform the reads via `iter.close()`. This lead to a segfault.

I can avoid the segfault by calling `series->flush()` before closing the iteration.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.