Mantis - Squeak
Viewing Issue Advanced Details
7523 VM crash sometimes 05-03-10 23:54 05-14-10 22:04
lewis  
andreas  
normal  
assigned  
open  
none    
none  
0007523: Opening some JPEG files may crash Windows VM
As reported on squeak-dev list, opening some JPEG files from a FileList on Windows can crash the VM.

http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-April/149871.html [^]
http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-May/150167.html [^]
Date: Mon, 3 May 2010 15:50:55 +0000
Subject: Re: [squeak-dev] Vm crash from FileList
From: Hannes Hirzel <hannes.hirzel@gmail.com>
To: The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org>
Hello

I have found a 110kB sample jpg file which causes the MSWindows VM to
crash immediately *** whereas it displays the file properly under
Ubuntu.

I will happily sent the file to anybody interested having a look at this....

--Hannes
 Picture 081.jpg [^] (112,134 bytes) 05-09-10 07:16

Notes
(0013762)
hirzel   
05-09-10 07:17   
The attached jpg file (Picture 081.jpg) is displayed fine in Squeak 4.1 on Ubuntu but on Windows it leads to an immediate crash.

(0013763)
laza   
05-09-10 10:03   
I tried this with a windows VM 4.0.2 and some recent trunk image.
I can see the picture displayed in the file list, but the vm console pops up with the message:

# Debug console
# To close: F2 -> 'debug options' -> 'show output console'
# To disable: F2 -> 'debug options' -> 'show console on errors'
Corrupt JPEG data: 1 extraneous bytes before marker 0xd9
(0013767)
baveco   
05-10-10 14:57   
I see the same as laza when displaying this file. It doesn't crash the VM.
On the other hand I still get - unpredictable - crashes when selecting randomly jpg files in the FileList (not related to a specific file) and when repeatedly executing code that reads several jpg files on a row (but also highly unpredictable: sometimes when opening the set of files for the first time, in other cases after having read the whole set of files several times...). Feels more and more like an obscure memory problem.

The crash dump always ends with:

The Smalltalk Stack:
168583592 Behavior>new:
168583500 Form>setExtent:depth:
168583408 Form class>extent:depth:
168515720 JPEGReadWriter2>nextImageSuggestedDepth:
168515628 JPEGReadWriter2>nextImage
168515480 ImageReadWriter class>formFromStream:
168513316 BlockClosure>ensure:
168513224 Cursor>showWhile:
168499160 ImageReadWriter class>formFromStream:
168236116 ImageReadWriter class>formFromFileNamed:

Hans