[Vm-dev] Bug in writing compressed stream when saving an mcz
(was: New Cog VMs available...)
David T. Lewis
lewis at mail.msen.com
Thu Jul 3 02:23:49 UTC 2014
On Wed, Jul 02, 2014 at 06:53:09PM -0700, Eliot Miranda wrote:
> On Wed, Jul 2, 2014 at 5:08 PM, David T. Lewis <lewis at mail.msen.com> wrote:
> > On Wed, Jul 02, 2014 at 03:48:03PM -0700, Eliot Miranda wrote:
> > >
> > > On Wed, Jul 2, 2014 at 3:39 PM, Nicolas Cellier <
> > > nicolas.cellier.aka.nice at gmail.com> wrote:
> > > >
> > > > Anyway, it happens that I cannot publish because there is a bug in my
> > > > image (mostly an updated trunk image)...
> > > > I'm currently stuck with ZipWriteStream(DeflateStream)>>updateHashAt:
> > > > which tries to write at position 65537 in a buffer of length 65536
> > > > Huh?
> > > >
> > >
> > > Ah, I've seen this recently too! I think it's just a corrupted mcz
> > > package. Delete the package and download a fresh one and you could find
> > > the bug evaporates.
> > I saw it last weekend too. I thought that it was an improbable edge
> > condition,
> > so I did not mention it on squeak-dev until I could explain the bug.
> > It is not a corrupted mcz. In my case, the failure occurred while trying to
> > write a new mcz.
> > We should move this to squeak-dev and figure out what is going on.
> That triggers my memory. I had a method with corrupted source, perhaps
> wide characters. That broke the writer. I fixed it by fixing the method
> source code. Where the corruption came from I can't say.
I would not be surprised if it is something to do with wide characters. I
vaguely recall that we fixed a similar sounding problem elsewhere in the
system recently. Unfortunately I cannot remember what it was.
In any case, I am attaching a png of the debug window for the problem as I
encountered it last weekend. This will need to be turned into a repeatable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error: subscript is out of bounds: 65537.png
Size: 51507 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140702/ff90a797/65537-0001.png
More information about the Vm-dev