[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Reproduceable Segmentation fault while saving images (#444)

Alistair Grant notifications at github.com
Wed Nov 27 10:00:21 UTC 2019

Hi Guille,

Can you try running this script from a minimal image:

| aJson anArray |
aJson := ZnEasy get: 'https://data.nasa.gov/resource/y77d-th95.json' asZnUrl.
Array streamContents: [ :aStream |
    1 to: 400 do: [ :i |
		Stdio stdout
			<< 'ExternalAddress: ';
			print: ExternalAddress instanceCount; lf;
			<< 'Start';
			lf; flush.
        aStream nextPutAll: (STON fromString: aJson contents).
		Smalltalk saveImageInFileNamed: 'Save.', i asString, '.image'.
		Stdio stdout
			<< 'Loop: ';
			print: i;
			lf; flush ] ].

I'm using a minimal image from 18 Nov 2019 and it normally crashes on the 90th iteration.  On my machine it takes about 50 seconds to crash.  The good bit though is the addresses are the same on each run, so breakpoints can be easily set when working backwards.

pharo -headless Pharo.image gccrash.st

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191127/54065f7c/attachment.html>

More information about the Vm-dev mailing list