Hi Sven, Thanks for all that background information on the history of streams. It makes everything a lot clearer for me.
But first, it would help a lot that you give a self-contained reproducible snippet that raises your problem, like mine. I tried reproducing your failure but could not.
My bug is difficult to reproduce because it is triggered only when the "right" kind of buffer overflow happens. I didn't succeed yet to provoke it while serializing simple objects such as strings or arrays. I did manage to reduce my code quite a lot, so here is the shortest example I have for the moment that provokes the bug: Metacello new baseline: 'ComputationalDocuments'; repository: 'github://khinsen/computational-documents-with-gtoolkit:minimal-code-for-serialization-bug'; load. And then APLibraryTest new setUp; testScanDirectory Konrad.