Closed progval closed 9 months ago
This is most likely due to the switch to the zero-extended semantics. There must be something wrong that was silently fixed by the EOF semantics. That should be easy to test. Gimme a minute :).
OK, both problems were caused by the same change—the "small" change of signature of flush from self to &mut self. it turned out we were flushing the streams in the drop method, not in the flush method. So not passing self was causing drop not to happen, and flush was not called.
But the problem with mmap is real—very unlikely to happen, but it might happen, so I'm happy we nailed it now.
repro:
This is to be sensitive to the data; similar inputs with fewer or different tuples don't all trigger the bug.
I didn't have this issue with https://github.com/vigna/webgraph-rs/commit/d3fec35ad69aca12b9041b779ada641e5c87faf1