Ok, what I can see is a longAt: that crashed. Happened to me several times with Cog when using objects as methods.
Then, you did a printAllStacks() which caused another crash (I think). It seems it was in the line:
self print: ' priority '; printNum: (self quickFetchInteger: PriorityIndex ofObject: proc); cr.
of #printAllStacks
if you see, the 'priority' is written, so the crash is in printNum: (self quickFetchInteger: PriorityIndex ofObject: proc);
It seems this failed because there was a SmallInteger instead of a Procces ? mmm wierd.
anyway, the real crash is in longAt:
I bet that the number you are sending is negative. I would compiled the VM in development and "run and debug". Then, when it fails, open the XCode debugger and check the value sent to longAt: and its stracktrace.
cheers
mariano
Hi,This is a continuation of a crash report by Igor (but I couldn't find the thread to reply properly, he). I tried running Pharo 1.2 tests using a cocoa cog compiled by my self (near 5.8b12 version, but with minor bugfixes), and the VM crashes with the info I'm pasting below.The crash occurs while executing TraitCompositionTest, which runs fine if it's run individually.btw... Pharo 1.1.1 tests runs correctly (some failures, some errors, but no crash :) )best,Esteban(gdb) bt#0 0x0008f18c in longAt [inlined] () at /Users/MAC/Desktop/Dev/VM/cog-osx/platforms/Cross/vm/sqMemoryAccess.h:41314#1 0x0008f18c in longAtPointer [inlined] () at /Users/MAC/Desktop/Dev/VM/cog-osx/platforms/Cross/vm/sqMemoryAccess.h:41314#2 0x0008f18c in mapPointersInObjectsFromto (memStart=544259160, memEnd=547015536) at /Users/MAC/Desktop/Dev/VM/cog-osx/platforms/iOS/vm/../../../src/vm/gcc3x-cointerp.c:19156#3 0x1f4d7330 in ?? ()(gdb) call (int) printAllStacks()Process 0x1fb0b654 priority 400xbff664a4 I CompiledMethod(Object)>becomeForward: 547015488: a(n) CompiledMethod0xbff664c8 M CompiledMethod>setSourcePointer: 547015488: a(n) CompiledMethod0xbff664e4 M CompiledMethod>setSourcePosition:inFile: 547015488: a(n) CompiledMethod0xbff6650c M CompiledMethod>putSource:fromParseNode:inFile:withPreamble: 547015488: a(n) CompiledMethod0xbff66544 I Trait(TraitBehavior)>addTraitSelector:withMethod: 546943760: a(n) Trait0xbff66570 M [] in Trait(TraitBehavior)>updateMethodDictionarySelector: 546943760: a(n) Trait0xbff66590 M OrderedCollection>do: 546995828: a(n) OrderedCollection0xbff665b4 M Trait(TraitBehavior)>updateMethodDictionarySelector: 546943760: a(n) Trait0xbff665e0 I [] in Trait(TraitBehavior)>noteChangedSelectors: 546943760: a(n) Trait0xbff66600 M [] in IdentitySet(Set)>do: 546964932: a(n) IdentitySet0xbff66624 M Array(SequenceableCollection)>do: 546967168: a(n) Array0xbff66640 M IdentitySet(Set)>do: 546964932: a(n) IdentitySet0xbff66668 I Trait(TraitBehavior)>noteChangedSelectors: 546943760: a(n) Trait0xbff66690 I Trait(TraitBehavior)>applyChangesOfNewTraitCompositionReplacing: 546943760: a(n) Trait0xbff666b8 I Trait(TraitDescription)>applyChangesOfNewTraitCompositionReplacing: 546943760: a(n) Trait0xbff666e0 I Trait>applyChangesOfNewTraitCompositionReplacing: 546943760: a(n) Trait0xbff66708 I Trait(TraitBehavior)>setTraitComposition: 546943760: a(n) Trait0xbff66738 I Trait class>named:uses:category:env: 526279012: a(n) Trait class0xbff6676c I Trait class>named:uses:category: 526279012: a(n) Trait class0xbff6679c I TraitCompositionTest(TraitsTestCase)>createTraitNamed:uses: 543518512: a(n) TraitCompositionTest0xbff667c4 M TraitCompositionTest>testProvidedMethodBindingsWithConflicts 543518512: a(n) TraitCompositionTest0xbff667dc M TraitCompositionTest(TestCase)>performTest 543518512: a(n) TraitCompositionTest0xbff667f4 M [] in TraitCompositionTest(TestCase)>runCase 543518512: a(n) TraitCompositionTest0xbff66814 M BlockClosure>ensure: 546942212: a(n) BlockClosure0xbff66830 M TraitCompositionTest(TestCase)>runCase 543518512: a(n) TraitCompositionTest0xbff6684c M [] in TestResult>runCase: 543379756: a(n) TestResult0xbff66868 M BlockClosure>on:do: 546940640: a(n) BlockClosure0xbff66888 M TestResult>runCase: 543379756: a(n) TestResult0xbff668a4 M TraitCompositionTest(TestCase)>run: 543518512: a(n) TraitCompositionTest0xbff668c0 M TestRunner>runTest: 543237552: a(n) TestRunner0xbff668dc M [] in TestRunner>runSuite: 543237552: a(n) TestRunner0xbff66914 M [] in OrderedCollection(Collection)>do:displayingProgress:every: 543380248: a(n) OrderedCollection0xbff66934 M OrderedCollection>do: 543380248: a(n) OrderedCollection0xbff6696c I [] in OrderedCollection(Collection)>do:displayingProgress:every: 543380248: a(n) OrderedCollection0xbff66990 M [] in ProgressInitiationException>defaultMorphicAction 543926492: a(n) ProgressInitiationException0xbff5e3c0 M BlockClosure>on:do: 543927148: a(n) BlockClosure0xbff5e3f0 I [] in ProgressInitiationException>defaultMorphicAction 543926492: a(n) ProgressInitiationException0xbff5e410 M BlockClosure>ensure: 543927012: a(n) BlockClosure0xbff5e43c I ProgressInitiationException>defaultMorphicAction 543926492: a(n) ProgressInitiationException0xbff5e45c I MorphicUIManager>progressInitiationExceptionDefaultAction: 543926724: a(n) MorphicUIManager0xbff5e478 M ProgressInitiationException>defaultAction 543926492: a(n) ProgressInitiationException0xbff5e494 M UndefinedObject>handleSignal: 525336580: a(n) UndefinedObject0xbff5e4b4 M MethodContext(ContextPart)>handleSignal: 543861016: a(n) MethodContext0xbff5e4d0 M ProgressInitiationException(Exception)>signal 543926492: a(n) ProgressInitiationException0xbff5e4f0 I ProgressInitiationException>display:at:from:to:during: 543926492: a(n) ProgressInitiationException0xbff5e524 I ProgressInitiationException class>display:at:from:to:during: 526266692: a(n) ProgressInitiationException class0xbff5e558 I ByteString(String)>displayProgressAt:from:to:during: 528298688: a(n) ByteString0xbff5e594 I OrderedCollection(Collection)>do:displayingProgress:every: 543380248: a(n) OrderedCollection0xbff5e5c0 I OrderedCollection(Collection)>do:displayingProgress: 543380248: a(n) OrderedCollection0xbff5e5f0 I [] in TestRunner>basicRunSuite:do: 543237552: a(n) TestRunner0xbff5e610 M BlockClosure>ensure: 543926280: a(n) BlockClosure0xbff5e634 I TestRunner>basicRunSuite:do: 543237552: a(n) TestRunner0xbff5e65c I TestRunner>runSuite: 543237552: a(n) TestRunner0xbff5e678 M TestRunner>runAll 543237552: a(n) TestRunner0xbff5e698 I PluggableButtonMorph>performAction 543287688: a(n) PluggableButtonMorph0xbff5e6b4 M [] in PluggableButtonMorph>mouseUp: 543287688: a(n) PluggableButtonMorph0xbff5e6d8 M Array(SequenceableCollection)>do: 543379612: a(n) Array0xbff5e700 I PluggableButtonMorph>mouseUp: 543287688: a(n) PluggableButtonMorph0xbff5e724 I PluggableButtonMorph(Morph)>handleMouseUp: 543287688: a(n) PluggableButtonMorph0xbff5e740 M MouseButtonEvent>sentTo: 543379572: a(n) MouseButtonEvent0xbff5e75c M PluggableButtonMorph(Morph)>handleEvent: 543287688: a(n) PluggableButtonMorph0xbff5e778 M PluggableButtonMorph(Morph)>handleFocusEvent: 543287688: a(n) PluggableButtonMorph0xbff5e7a0 M [] in HandMorph>sendFocusEvent:to:clear: 526727360: a(n) HandMorph0xbff5e7bc M [] in PasteUpMorph>becomeActiveDuring: 527811092: a(n) PasteUpMorph0xbff5e7d8 M BlockClosure>on:do: 543379520: a(n) BlockClosure0xbff5e804 M PasteUpMorph>becomeActiveDuring: 527811092: a(n) PasteUpMorph0xbff5e828 M HandMorph>sendFocusEvent:to:clear: 526727360: a(n) HandMorph0xbff5e850 M HandMorph>sendEvent:focus:clear: 526727360: a(n) HandMorph0xbff5e874 M HandMorph>sendMouseEvent: 526727360: a(n) HandMorph0xbff5e898 M HandMorph>handleEvent: 526727360: a(n) HandMorph0xbff5e8c4 M HandMorph>processEvents 526727360: a(n) HandMorph0xbff5e8dc M [] in WorldState>doOneCycleNowFor: 535613652: a(n) WorldState0xbff5e900 M Array(SequenceableCollection)>do: 525350276: a(n) Array0xbff5e91c M WorldState>handsDo: 535613652: a(n) WorldState0xbff5e938 M WorldState>doOneCycleNowFor: 535613652: a(n) WorldState0xbff5e954 M WorldState>doOneCycleFor: 535613652: a(n) WorldState0xbff5e970 M PasteUpMorph>doOneCycle 527811092: a(n) PasteUpMorph0xbff5e990 I [] in Project class>? 533540648: a(n) Project class531674612 s [] in BlockClosure>newProcessProcess 0x205eef6c priority 500xbff5f950 I WeakArray class>finalizationProcess 526245700: a(n) WeakArray class0xbff5f970 I [] in WeakArray class>restartFinalizationProcess 526245700: a(n) WeakArray class0xbff5f990 I [] in BlockClosure>newProcess 543092368: a(n) BlockClosureProcess 0x20078f84 priority 800xbff60970 M Delay class>handleTimerEvent 526251340: a(n) Delay class0xbff60990 I Delay class>runTimerEventLoop 526251340: a(n) Delay class537366032 s [] in Delay class>startTimerEventLoop537366308 s [] in BlockClosure>newProcessProcess 0x205b9cc8 priority 600xbff61950 I SmalltalkImage>lowSpaceWatcher 527615096: a(n) SmalltalkImage0xbff61970 I [] in SmalltalkImage>installLowSpaceWatcher 527615096: a(n) SmalltalkImage0xbff61990 I [] in BlockClosure>newProcess 542874604: a(n) BlockClosureProcess 0x205ecb00 priority 600xbff628d0 M [] in Delay>wait 543083336: a(n) Delay0xbff628f0 M BlockClosure>ifCurtailed: 547003416: a(n) BlockClosure0xbff6290c M Delay>wait 543083336: a(n) Delay0xbff62924 M InputEventPollingFetcher>waitForInput 526779328: a(n) InputEventPollingFetcher0xbff62950 I InputEventPollingFetcher(InputEventFetcher)>eventLoop 526779328: a(n) InputEventPollingFetcher0xbff62970 I [] in InputEventPollingFetcher(InputEventFetcher)>installEventLoop 526779328: a(n) InputEventPollingFetcher0xbff62990 I [] in BlockClosure>newProcess 543083044: a(n) BlockClosureSmallInteger 0xc01 priorityProgram received signal EXC_BAD_ACCESS, Could not access memory.Reason: KERN_PROTECTION_FAILURE at address: 0x00000c0dprintProcessStack (aProcess=3073) at /Users/MAC/Desktop/Dev/VM/cog-osx/platforms/iOS/vm/../../../src/vm/gcc3x-cointerp.c:3734037340 printNum(quickFetchIntegerofObject(PriorityIndex, aProcess));The program being debugged was signaled while in a function called from GDB.GDB remains in the frame where the signal was received.To change this behavior use "set unwindonsignal on"Evaluation of the expression containing the function (printAllStacks) will be abandoned.