Closed janfrancu closed 5 years ago
I have done further investigation and I have found MWE, which produces the error, however the issue seems to be in the FlatBuffers.bytes(FlatBuffers.build!(...))
, which produces 'corrupted' bytes. More precisely the lenght of the array is around 76M, however part of it resides in read only sector, as is indicated by ERROR: ReadOnlyMemoryError()
raised just by showing the array.
I will close this issue and report it to the Flatbuffer.jl repository.
I have been running some data processing in which I compress the output array of bytes (FlatBuffer built bytes) using the
transcode
API, however sometimes some of the workers die due to this crash inside zlib.I could not find any reproducible example, it just happens every so often. The code I have been using is somewhat reminiscent to this one.
I am aware of the fact that this is more of
zlib
issue, however it might be possible, that the way I use it is somewhat non-standard. For example I know, that the code above allocates the working space ofGzipCompressor
every iteration, that is mainly because I am not sure how to treat the preallocation (described here) in distributed environment.