<br><br><div class="gmail_quote">On Mon, Jun 21, 2010 at 5:23 AM, Henrik Johansen <span dir="ltr"><<a href="mailto:henrik.s.johansen@veloxit.no">henrik.s.johansen@veloxit.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
This is what happens when you are still using the LargeInteger prims.<br>
Execute<br>
<br>
#(= bitAnd: bitOr: bitShift: bitXor: ~=) do:[:sel|<br>
LargePositiveInteger removeSelector: sel.<br>
].<br>
save the image, then you should be able to open without segfaulting.<br></blockquote><div><br></div><div>There are a few other things also. Please file-in NecessaryImageChangesForCogToWork.1.cs from the image directory in the tarball or upgrade to the latest in trunk (i.e. Andreas added the changes from NecessaryImageChangesForCogToWork.1.cs to trunk over the weekend).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Cheers,<br>
Henry<br>
<div><div></div><div class="h5"><br>
On Jun 21, 2010, at 1:39 51PM, Göran Krampe wrote:<br>
<br>
> Howdy!<br>
><br>
> First: Super fun and cool! I am of course *very* happy to see Cog released.<br>
><br>
> Now, over to some "testing"...<br>
><br>
> SIDENOTE: First btw I ran pystone.py with regular Python 2.6.5 on my Lucid Lynx, then in the latest "regular" VM from Squeakvm.org. Result:<br>
><br>
> Python: 36k pystones<br>
> Squeak: 45k pystones<br>
><br>
> So... the good ole VM is still a tad faster than CPython in that bench. :)<br>
><br>
> Now, I wanted to try it out with Cogit. Trouble begins! :)<br>
><br>
> I am using the tar ball on a Lucid laptop.<br>
><br>
> 1. vm-sound-NAS does not compile! Lots of compile errors, probably due to a new upstream NAS. So try to get rid of that plugin... is harder than I thought! I finally ended up hacking the configure script to "fail" on the compile check by trying to compile rubbish. ;)<br>
><br>
> 2. For some odd reason this will still create duplicate lines about NAS in disabledPlugins.c, just manually remove one of them, fine. Tada! Got a VM binary.<br>
><br>
> 3. Fire it up on a *vanilla* Squeak4.1.1.image. BOOM, segfault. This is a "full debug VM" per instructions in HowToBuild. Anyway, see all info below, and tell me if there is more you want. :)<br>
><br>
> Btw, is there some nice existing script to run to "collect data about the box" that does uname etc?<br>
><br>
> regards, Göran<br>
> ------------------<br>
> gokr@yoda:~/squeak$ cat /proc/cpuinfo<br>
> processor : 0<br>
> vendor_id : GenuineIntel<br>
> cpu family : 6<br>
> model : 14<br>
> model name : Genuine Intel(R) CPU U2500 @ 1.20GHz<br>
> stepping : 8<br>
> cpu MHz : 800.000<br>
> cache size : 2048 KB<br>
> physical id : 0<br>
> siblings : 2<br>
> core id : 0<br>
> cpu cores : 2<br>
> apicid : 0<br>
> initial apicid : 0<br>
> fdiv_bug : no<br>
> hlt_bug : no<br>
> f00f_bug : no<br>
> coma_bug : no<br>
> fpu : yes<br>
> fpu_exception : yes<br>
> cpuid level : 10<br>
> wp : yes<br>
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts aperfmperf pni monitor vmx est tm2 xtpr pdcm<br>
> bogomips : 2393.82<br>
> clflush size : 64<br>
> cache_alignment : 64<br>
> address sizes : 32 bits physical, 32 bits virtual<br>
> power management:<br>
><br>
> gokr@yoda:~/squeak$ gcc --version<br>
> gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3<br>
> Copyright (C) 2009 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions. There is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
><br>
> gokr@yoda:~/squeak$ uname -a<br>
> Linux yoda 2.6.32-22-generic-pae #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010 i686 GNU/Linux<br>
><br>
> gokr@yoda:~/squeak$ squeak -version<br>
> 3.9-7 #1 Mon Jun 21 13:20:28 CEST 2010 gcc 4.4.3<br>
> Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.11]<br>
> Linux yoda 2.6.32-22-generic-pae #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010 i686 GNU/Linux<br>
> plugin path: /usr/local/lib/squeak/3.9-7/ [default: /usr/local/lib/squeak/3.9-7/]<br>
><br>
> gokr@yoda:~/squeak$ squeak Squeak4.1.1.image<br>
><br>
> ((rcvr & 1)) || (addressCouldBeObj(rcvr)) 11334<br>
><br>
> Segmentation fault<br>
><br>
><br>
><br>
> Smalltalk stack dump:<br>
> 0xbfc87e08 M GradientFillStyle>scaledAlphaMix:of:with: 2018669100: a(n) GradientFillStyle<br>
> 0xbfc87e5c M [] in GradientFillStyle>computePixelRampOfSize: 2018669100: a(n) GradientFillStyle<br>
> 0xbfc87e7c M SortedCollection(OrderedCollection)>do: 2018669424: a(n) SortedCollection<br>
> 0xbfc87eb4 I GradientFillStyle>computePixelRampOfSize: 2018669100: a(n) GradientFillStyle<br>
> 0xbfc87ed8 I [] in GradientFillStyle class>initPixelRampCache 2007164144: a(n) GradientFillStyle class<br>
> 0xbfc87f10 I LRUCache>at: 2012963616: a(n) LRUCache<br>
> 0xbfc87f2c M GradientFillStyle>pixelRamp 2018529312: a(n) GradientFillStyle<br>
> 0xbfc87f4c M BalloonEngine>registerFill: 2018659444: a(n) BalloonEngine<br>
> 0xbfc87f74 M BalloonEngine>registerFills: 2018659444: a(n) BalloonEngine<br>
> 0xbfc87f90 M BalloonEngine>registerFill:and: 2018659444: a(n) BalloonEngine<br>
> 0xbfc87fb4 M BalloonEngine>drawRectangle:fill:borderWidth:borderColor:transform: 2018659444: a(n) BalloonEngine<br>
> 0xbfc87fe8 M BalloonCanvas>drawRectangle:color:borderWidth:borderColor: 2018659252: a(n) BalloonCanvas<br>
> 0xbfc88010 M BalloonCanvas>fillRectangle:fillStyle: 2018659252: a(n) BalloonCanvas<br>
> 0xbfc88030 M FormCanvas>balloonFillRectangle:fillStyle: 2018611404: a(n) FormCanvas<br>
> 0xbfc88054 M FormCanvas>fillRectangle:fillStyle: 2018611404: a(n) FormCanvas<br>
> 0xbfc88074 M FormCanvas(Canvas)>fillRectangle:fillStyle:borderStyle: 2018611404: a(n) FormCanvas<br>
> 0xbfc88098 M SystemWindow(Morph)>drawOn: 2014426088: a(n) SystemWindow<br>
> 0xbfc880b4 M FormCanvas(Canvas)>draw: 2018611404: a(n) FormCanvas<br>
> 0xbfc880d0 M FormCanvas(Canvas)>drawMorph: 2018611404: a(n) FormCanvas<br>
> 0xbfc880f0 M [] in SystemWindow(Morph)>fullDrawOn: 2014426088: a(n) SystemWindow<br>
> 0xbfc8810c M CornerRounder class>roundCornersOf:on:in:displayBlock:borderWidth:corners: 2007442196: a(n) CornerRounder class<br>
> 0xbfc8813c M FormCanvas>roundCornersOf:in:during: 2018611404: a(n) FormCanvas<br>
> 0xbfc88160 M FormCanvas(Canvas)>roundCornersOf:during: 2018611404: a(n) FormCanvas<br>
> 0xbfc88180 M SystemWindow(Morph)>fullDrawOn: 2014426088: a(n) SystemWindow<br>
> 0xbfc8819c M FormCanvas(Canvas)>fullDraw: 2018611404: a(n) FormCanvas<br>
> 0xbfc881b8 M FormCanvas(Canvas)>fullDrawMorph: 2018611404: a(n) FormCanvas<br>
> 0xbfc88208 M [] in WorldState>drawWorld:submorphs:invalidAreasOn: 2001318316: a(n) WorldState<br>
> 0xbfc88240 I Rectangle>allAreasOutsideList:startingAt:do: 2017358104: a(n) Rectangle<br>
> 0xbfc8826c I Rectangle>allAreasOutsideList:do: 2017358104: a(n) Rectangle<br>
> 0xbfc882a8 M [] in WorldState>drawWorld:submorphs:invalidAreasOn: 2001318316: a(n) WorldState<br>
> 0xbfc882cc M Array(SequenceableCollection)>do: 2018529764: a(n) Array<br>
> 0xbfc882fc M WorldState>drawWorld:submorphs:invalidAreasOn: 2001318316: a(n) WorldState<br>
> 0xbfc88334 M [] in WorldState>displayWorld:submorphs: 2001318316: a(n) WorldState<br>
> 0xbfc8834c M FormCanvas>roundCornersOf:in:during: 2017358448: a(n) FormCanvas<br>
> 0xbfc88370 M FormCanvas(Canvas)>roundCornersOf:during: 2017358448: a(n) FormCanvas<br>
> 0xbfc88398 M WorldState>displayWorld:submorphs: 2001318316: a(n) WorldState<br>
> 0xbfc883c0 I PasteUpMorph>privateOuterDisplayWorld 2001318568: a(n) PasteUpMorph<br>
> 0xbfc883e0 I PasteUpMorph>displayWorld 2001318568: a(n) PasteUpMorph<br>
> 0xbfc88404 I [] in WorldState>displayWorldSafely: 2001318316: a(n) WorldState<br>
> 0xbfc88420 M BlockClosure>on:do: 2018529472: a(n) BlockClosure<br>
> 0xbfc88440 M BlockClosure>ifError: 2018529472: a(n) BlockClosure<br>
> 0xbfc88464 I WorldState>displayWorldSafely: 2001318316: a(n) WorldState<br>
> 0xbfc88480 M PasteUpMorph>displayWorldSafely 2001318568: a(n) PasteUpMorph<br>
> 0xbfc88498 M PasteUpMorph>install 2001318568: a(n) PasteUpMorph<br>
> 0xbfc884c0 I AutoStart class>checkForPluginUpdate 2008299932: a(n) AutoStart class<br>
> 0xbfc884e0 M AutoStart class>startUp: 2008299932: a(n) AutoStart class<br>
> 0xbfc8850c M [] in SmalltalkImage>send:toClassesNamedIn:with: 2009624740: a(n) SmalltalkImage<br>
> 0xbfc88534 I OrderedCollection>do: 2009661056: a(n) OrderedCollection<br>
> 0xbfc8855c I SmalltalkImage>send:toClassesNamedIn:with: 2009624740: a(n) SmalltalkImage<br>
> 0xbfc88588 I SmalltalkImage>processStartUpList: 2009624740: a(n) SmalltalkImage<br>
> 0xbfc885b4 I SmalltalkImage>snapshot:andQuit:embedded: 2009624740: a(n) SmalltalkImage<br>
> 2014606248 s SmalltalkImage>snapshot:andQuit:<br>
> 2014606132 s TheWorldMainDockingBar>saveAndQuitSqueak<br>
> 2014606040 s [] in MenuItemMorph>invokeWithEvent:<br>
> 2014605924 s BlockClosure>ensure:<br>
> 2014605832 s CursorWithMask(Cursor)>showWhile:<br>
> 2014605632 s MenuItemMorph>invokeWithEvent:<br>
> 2014605540 s MenuItemMorph>mouseUp:<br>
> 2014605448 s MenuItemMorph>handleMouseUp:<br>
> 2014605316 s MouseButtonEvent>sentTo:<br>
> 2014605224 s MenuItemMorph(Morph)>handleEvent:<br>
> 2014605132 s MorphicEventDispatcher>dispatchDefault:with:<br>
> 2014605040 s MorphicEventDispatcher>dispatchEvent:with:<br>
> 2014604948 s MenuItemMorph(Morph)>processEvent:using:<br>
> 2014604856 s MorphicEventDispatcher>dispatchDefault:with:<br>
> 2014604748 s MorphicEventDispatcher>dispatchEvent:with:<br>
> 2014604616 s DockingBarMenuMorph(Morph)>processEvent:using:<br>
> 2014604524 s DockingBarMenuMorph(Morph)>processEvent:<br>
> 2014604432 s DockingBarMenuMorph(MenuMorph)>handleFocusEvent:<br>
> 2014604340 s [] in HandMorph>sendFocusEvent:to:clear:<br>
> 2014604248 s [] in PasteUpMorph>becomeActiveDuring:<br>
> 2014604068 s BlockClosure>on:do:<br>
> 2014603976 s PasteUpMorph>becomeActiveDuring:<br>
> 2014603856 s HandMorph>sendFocusEvent:to:clear:<br>
> 2014603764 s HandMorph>sendEvent:focus:clear:<br>
> 2014603672 s HandMorph>sendMouseEvent:<br>
> 2014603528 s HandMorph>handleEvent:<br>
> 2014603180 s HandMorph>processEvents<br>
> 2014603064 s [] in WorldState>doOneCycleNowFor:<br>
> 2014602972 s Array(SequenceableCollection)>do:<br>
> 2014602872 s WorldState>handsDo:<br>
> 2014602780 s WorldState>doOneCycleNowFor:<br>
> 2014602688 s WorldState>doOneCycleFor:<br>
> 2014602596 s PasteUpMorph>doOneCycle<br>
> 2010011832 s [] in Project class>spawnNewProcess<br>
> 2010011700 s [] in BlockClosure>newProcess<br>
><br>
> Most recent primitives<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> copyBits<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> at:put:<br>
> @<br>
> copyBits<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> shallowCopy<br>
> new:<br>
> @<br>
> @<br>
> new:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> @<br>
> basicNew<br>
> copyBits<br>
> at:put:<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> @<br>
> basicNew<br>
> copyBits<br>
> at:put:<br>
> @<br>
> @<br>
> @<br>
> @<br>
> basicNew@<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> @<br>
> basicNew<br>
> copyBits<br>
> at:put:<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> copyBits<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> @<br>
> basicNew<br>
> copyBits<br>
> at:put:<br>
> @<br>
> perform:with:<br>
> @<br>
> @<br>
> perform:with:<br>
> @<br>
> basicNew<br>
> basicNew<br>
> @<br>
> @<br>
> @<br>
> basicNew<br>
> basicNew<br>
> basicNew<br>
> basicNew<br>
> new:<br>
> basicNew:<br>
> basicNew<br>
> primitiveSetBitBltPlugin:<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> primitiveSetBitBltPlugin:<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> basicNew<br>
> @<br>
> @<br>
> wait<br>
> at:put:<br>
> signal<br>
> primInitializeBuffer:<br>
> primSetAALevel:<br>
> primSetOffset:<br>
> primSetClipRect:<br>
> primSetEdgeTransform:<br>
> primSetColorTransform:<br>
> primSetEdgeTransform:<br>
> primSetColorTransform:<br>
> primGetDepth<br>
> primSetDepth:<br>
> new:<br>
> at:put:<br>
> at:put:<br>
> basicNew:<br>
> species<br>
> stringHash:initialHash:<br>
> fractionPart<br>
> truncated<br>
> fractionPart<br>
> fractionPart<br>
> truncated<br>
> basicNew<br>
> basicNew<br>
> new:<br>
> value:<br>
> at:put:<br>
> value:<br>
> at:put:<br>
> at:put:<br>
> value:value:<br>
> value:value:<br>
> basicNew:<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> fractionPart<br>
> truncated<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> fractionPart<br>
> truncated<br>
> basicNew:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> at:put:<br>
> truncated<br>
> truncated<br>
> truncated<br>
> truncated<br>
> at:put:<br>
> perform:with:<br>
> truncated<br>
> Aborted<br>
> gokr@yoda:~/squeak$<br>
><br>
><br>
<br>
</div></div></blockquote></div><br>