<div dir="ltr"><div><div><div>So you need to publish a new version of RecentMessages with size restored as last inst var, publish a mcm<br></div>Then remove the inst var size<br><br></div>Be aware that the more classes you put in basicLoad, the more fragile it will be w.r.t. class layout change.<br>
</div>Believe me, I have a solid experience in this area with my Compiler changes ;)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/16 Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>To reproduce, just load System-cmm.602 from a MC browser and it quits quite fast...<br></div>From assert cog vm, here is the end of the report:<br>
<br>**IncrementalGC**<br>**FullGC**<br><br>stack page bytes 2048 available headroom 1252 minimum unused headroom 724<br>
<br> (sweep failed to find exact end of memory)<br>Abort trap<br><br></div><div>and the beginning is:<br><br>sweep failed to find exact end of memory<br><br>Squeak VM version: 4.0 4.0.2778 Mac OS X built on Aug 8 2013 07:43:35 Compiler: 4.2.1 (Apple Inc. build 5666) (dot 3) [Assert VM]<br>
Built from: CoInterpreter * VMMaker.oscog-nice.336 uuid: 409e5084-5ffa-466c-a844-2473662c1ebf Sep 8 2013<br>With: StackToRegisterMappingCogit * VMMaker.oscog-nice.336 uuid: 409e5084-5ffa-466c-a844-2473662c1ebf Sep 8 2013<br>
Revision: VM: r2778 <a href="http://squeakvm.org/svn/squeak/branches/Cog" target="_blank">http://squeakvm.org/svn/squeak/branches/Cog</a><br>Plugins: r2545 <a href="http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins" target="_blank">http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins</a><br>
<br><br>C stack backtrace:<br>0 Squeak 0x0004deec reportStackState + 147<br>1 Squeak 0x0004e26b error + 31<br>2 Squeak 0x000b43ec fullGC + 897<br>
3 Squeak 0x000b4cd5 sufficientSpaceAfterGC + 64<br>4 Squeak 0x000b6094 primitiveNewWithArg + 147<br>5 ??? 0x11acc789 0x0 + 296535945<br>
6 Squeak 0x000c9795 interpret + 32627<br>7 Squeak 0x000429dd EventLoopEventHandler + 28<br>8 HIToolbox 0x911eac2f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567<br>
9 HIToolbox 0x911e9ef6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411<br>10 HIToolbox 0x911e9d55 SendEventToEventTargetWithOptions + 58<br>
11 HIToolbox 0x9121ea24 _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 3006<br>12 HIToolbox 0x911eb080 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2672<br>
13 HIToolbox 0x911e9ef6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411<br>14 HIToolbox 0x9120c7f3 SendEventToEventTarget + 52<br>
15 HIToolbox 0x91395c17 ToolboxEventDispatcher + 86<br>16 HIToolbox 0x91395d4f RunApplicationEventLoop + 243<br>17 Squeak 0x00040e61 RunApplicationEventLoopWithSqueak + 185<br>
18 Squeak 0x0004de37 main + 1079<br>19 Squeak 0x000027be start + 54<br><br><br>Smalltalk stack dump:<br>0xbffeb058 M Array(SequenceableCollection)>select: 0x13fe1d04: a(n) Array<br>
0xbffeb074 M MCFileRepositoryInspector>versionNamesForSelectedPackage 0x135d28b0: a(n) MCFileRepositoryInspector<br>0xbffeb094 M MCFileRepositoryInspector(MCRepositoryInspector)>versionList 0x135d28b0: a(n) MCFileRepositoryInspector<br>
<br></div><div>Squeak stack has no importance, I just clicked somewhere in a MC trunk repo inspector...<br><br></div><div>It sounds like memory corruption...<br></div><div><br></div>What it interesting is that loading this mcz also blow a 4.10.10 interpreter VM...<br>
<div><br></div><div>I just fail to see what could cause such a violent ... Ah WAIT WAIT WAIT:<br><br></div><div>MCPackageLoader>>basicLoad invoke RecentMessages default suspendWhile: [ ]<br></div><div>suspendWhile is using the last instance variable... which is being shifted inside the suspendWhile: []...<br>
</div><div>So when we're back from the block, it's not long before die...<br><br></div><div>At least i'm happy it's not related to CharacterScanner stuff.<br></div><div><br></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/16 Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Ah, interesting,<span> but MorphicExtras-nice.125.mcz is changing a class that is essentially unused, and I'm sure it was possible to update before...<br></span></div><div><div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/16 Bob Arning <span dir="ltr"><<a href="mailto:arning315@comcast.net" target="_blank">arning315@comcast.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">FWIW, after it starts loading System-cmm.602,
it starts reshaping MorphicExtras-nice.125. Then it dies.<br>
<br>
Cheers,<br>
Bob<br>
<br>
</font><div><div>
<div>On 10/15/13 5:05 PM, Frank Shearar
wrote:<br>
</div>
<blockquote type="cite">
<pre>On 15 October 2013 21:30, Frank Shearar <a href="mailto:frank.shearar@gmail.com" target="_blank"><frank.shearar@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre>On 15 October 2013 19:45, <a href="mailto:commits@source.squeak.org" target="_blank"><commits@source.squeak.org></a> wrote:
</pre>
<blockquote type="cite">
<pre>Chris Muller uploaded a new version of System to project The Trunk:
<a href="http://source.squeak.org/trunk/System-cmm.602.mcz" target="_blank">http://source.squeak.org/trunk/System-cmm.602.mcz</a>
==================== Summary ====================
Name: System-cmm.602
Author: cmm
Time: 15 October 2013, 1:45:33.881 pm
UUID: 7a452144-3c88-4726-9692-a6afa93ef46e
Ancestors: System-eem.601
- Support Preferences class>>#readDocumentAtStartup: false, so that Squeak can accept arbitrary arguments without requiring the first one to be a document URL.
- Convenience method for checking for any of the various headless VM options.
- API consistency for accessing command-line arguments.
- Remove duplicate code (#extractParameters). Bid to remove apparently-unused code.
- RecentMessages simplifications, fixes and cleanups.
=============== Diff against System-eem.601 ===============
</pre>
</blockquote>
<pre>This might be temporal, or temperamental, coincidence but
<a href="http://build.squeak.org/job/SqueakTrunk/561/console" target="_blank">http://build.squeak.org/job/SqueakTrunk/561/console</a> shows a segfault
while updating to this commit.
I'm going to rerun the build, just in case it was a once-off. I'll
report back when it's done.
Here's the top part of the stack; see the URL for full details:
</pre>
</blockquote>
<pre><a href="http://build.squeak.org/job/SqueakTrunk/562/console" target="_blank">http://build.squeak.org/job/SqueakTrunk/562/console</a> shows it happening
again. So either something's very badly wrong, or something's very
badly wrong just on that slave. (But you'll see in its history that it
can run builds.)
frank
</pre>
</blockquote>
<br>
</div></div></div>
<br><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>