Hi, I'm running tests from PharoCore 1.3 using latest compiled CocoaCogMTVM, and the vm is crashing... I tried to get more information by compiling the vm for debug, but when I do that the tests runs ok (well, with errors and failures, but no crash). I'm adding the crash information, with optimization -Ox (any optimization with the exception of -O0) Is that "expected"? cheers, Esteban Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0xfff5d7e0 0x0004025e in mapPointersInObjectsFromto (memStart=543732620, memEnd=546135132) at sqMemoryAccess.h:81 81 static inline sqInt longAtPointer(char *ptr) { return *(sqInt *)ptr; } (gdb) bt #0 0x0004025e in mapPointersInObjectsFromto (memStart=543732620, memEnd=546135132) at sqMemoryAccess.h:81 #1 0x000541ad in becomewithtwoWaycopyHash (array1=546135112, array2=546135120, twoWayFlag=0, copyHashFlag=1) at /Users/MAC/Desktop/Dev/VM/cog-osx/src/vm/gcc3x-cointerpmt.c:9464 Current language: auto; currently c (gdb) call (int) printAllStacks() Process 0x1f8877b8 priority 40 0xbff6172c M CompiledMethod(Object)>becomeForward: 546135084: a(n) CompiledMethod 0xbff61750 M CompiledMethod>setSourcePointer: 546135084: a(n) CompiledMethod 0xbff6176c M CompiledMethod>setSourcePosition:inFile: 546135084: a(n) CompiledMethod 0xbff61794 M CompiledMethod>putSource:fromParseNode:inFile:withPreamble: 546135084: a(n) CompiledMethod 0xbff617cc I Trait(TraitBehavior)>addTraitSelector:withMethod: 546084408: a(n) Trait 0xbff61800 I [] in Trait(TraitBehavior)>updateMethodDictionarySelector: 546084408: a(n) Trait 0xbff61820 M OrderedCollection>do: 546109816: a(n) OrderedCollection 0xbff6184c I Trait(TraitBehavior)>updateMethodDictionarySelector: 546084408: a(n) Trait 0xbff61878 I [] in Trait(TraitBehavior)>noteChangedSelectors: 546084408: a(n) Trait 0xbff61898 M [] in IdentitySet(Set)>do: 546106188: a(n) IdentitySet 0xbff618bc M Array(SequenceableCollection)>do: 546108852: a(n) Array 0xbff618d8 M IdentitySet(Set)>do: 546106188: a(n) IdentitySet 0xbff61900 I Trait(TraitBehavior)>noteChangedSelectors: 546084408: a(n) Trait 0xbff61928 I Trait(TraitBehavior)>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait 0xbff61950 I Trait(TraitDescription)>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait 0xbff61978 I Trait>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait 0xbff619a0 I Trait(TraitBehavior)>setTraitComposition: 546084408: a(n) Trait 0xbff619d0 I Trait class>named:uses:category:env: 526249240: a(n) Trait class 0xbff61a04 I Trait class>named:uses:category: 526249240: a(n) Trait class 0xbff61a34 I TraitCompositionTest(TraitsTestCase)>createTraitNamed:uses: 543105336: a(n) TraitCompositionTest 0xbff61a5c M TraitCompositionTest>testProvidedMethodBindingsWithConflicts 543105336: a(n) TraitCompositionTest 0xbff61a74 M TraitCompositionTest(TestCase)>performTest 543105336: a(n) TraitCompositionTest 0xbff61a8c M [] in TraitCompositionTest(TestCase)>runCase 543105336: a(n) TraitCompositionTest 0xbff61aac M BlockClosure>ensure: 546082864: a(n) BlockClosure 0xbff61ac8 M TraitCompositionTest(TestCase)>runCase 543105336: a(n) TraitCompositionTest 0xbff61ae4 M [] in TestResult>runCase: 542965432: a(n) TestResult 0xbff61b00 M BlockClosure>on:do: 546081292: a(n) BlockClosure 0xbff61b20 M TestResult>runCase: 542965432: a(n) TestResult 0xbff61b3c M TraitCompositionTest(TestCase)>run: 543105336: a(n) TraitCompositionTest 0xbff61b58 M TestRunner>runTest: 542862452: a(n) TestRunner 0xbff61b74 M [] in TestRunner>runSuite: 542862452: a(n) TestRunner 0xbff61bac M [] in OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection 0xbff61bcc M OrderedCollection>do: 542965900: a(n) OrderedCollection 0xbff5e600 M [] in OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection 0xbff5e624 M [] in ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException 0xbff5e640 M BlockClosure>on:do: 543486284: a(n) BlockClosure 0xbff5e668 M [] in ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException 0xbff5e688 M BlockClosure>ensure: 543486148: a(n) BlockClosure 0xbff5e6ac M ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException 0xbff5e6c4 M MorphicUIManager>progressInitiationExceptionDefaultAction: 528458180: a(n) MorphicUIManager 0xbff5e6e0 M ProgressInitiationException>defaultAction 543485640: a(n) ProgressInitiationException 0xbff5e6fc M UndefinedObject>handleSignal: 525336580: a(n) UndefinedObject 0xbff5e71c M MethodContext(ContextPart)>handleSignal: 543449400: a(n) MethodContext 0xbff5e738 M ProgressInitiationException(Exception)>signal 543485640: a(n) ProgressInitiationException 0xbff5e750 M ProgressInitiationException>display:at:from:to:during: 543485640: a(n) ProgressInitiationException 0xbff5e784 I ProgressInitiationException class>display:at:from:to:during: 526237160: a(n) ProgressInitiationException class 0xbff5e7b0 M ByteString(String)>displayProgressAt:from:to:during: 533053144: a(n) ByteString 0xbff5e7e4 M OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection 0xbff5e808 M OrderedCollection(Collection)>do:displayingProgress: 542965900: a(n) OrderedCollection 0xbff5e838 I [] in TestRunner>basicRunSuite:do: 542862452: a(n) TestRunner 0xbff5e858 M BlockClosure>ensure: 543485428: a(n) BlockClosure 0xbff5e87c I TestRunner>basicRunSuite:do: 542862452: a(n) TestRunner 0xbff5e8a4 I TestRunner>runSuite: 542862452: a(n) TestRunner 0xbff5e8c0 M TestRunner>runAll 542862452: a(n) TestRunner 0xbff5e8e0 I PluggableButtonMorph>performAction 542889344: a(n) PluggableButtonMorph 0xbff5e8fc M [] in PluggableButtonMorph>mouseUp: 542889344: a(n) PluggableButtonMorph 0xbff5e920 M Array(SequenceableCollection)>do: 542965288: a(n) Array 0xbff5e948 I PluggableButtonMorph>mouseUp: 542889344: a(n) PluggableButtonMorph 0xbff5e964 M PluggableButtonMorph(Morph)>handleMouseUp: 542889344: a(n) PluggableButtonMorph 0xbff5e980 M MouseButtonEvent>sentTo: 542965248: a(n) MouseButtonEvent 0xbff5e99c M PluggableButtonMorph(Morph)>handleEvent: 542889344: a(n) PluggableButtonMorph 0xbff5e9b8 M PluggableButtonMorph(Morph)>handleFocusEvent: 542889344: a(n) PluggableButtonMorph 0xbff5e9e0 M [] in HandMorph>sendFocusEvent:to:clear: 526628468: a(n) HandMorph 0xbff5e9fc M [] in PasteUpMorph>becomeActiveDuring: 527650492: a(n) PasteUpMorph 0xbff5ea18 M BlockClosure>on:do: 542965196: a(n) BlockClosure 0xbff5ea44 M PasteUpMorph>becomeActiveDuring: 527650492: a(n) PasteUpMorph 0xbff5ea68 M HandMorph>sendFocusEvent:to:clear: 526628468: a(n) HandMorph 0xbff5ea90 M HandMorph>sendEvent:focus:clear: 526628468: a(n) HandMorph 0xbff5eab4 M HandMorph>sendMouseEvent: 526628468: a(n) HandMorph 0xbff5ead8 M HandMorph>handleEvent: 526628468: a(n) HandMorph 0xbff5eb04 M HandMorph>processEvents 526628468: a(n) HandMorph 0xbff5eb1c M [] in WorldState>doOneCycleNowFor: 528260136: a(n) WorldState 0xbff5eb40 M Array(SequenceableCollection)>do: 525350088: a(n) Array 0xbff5eb5c M WorldState>handsDo: 528260136: a(n) WorldState 0xbff5eb78 M WorldState>doOneCycleNowFor: 528260136: a(n) WorldState 0xbff5eb94 M WorldState>doOneCycleFor: 528260136: a(n) WorldState 0xbff5ebb0 M PasteUpMorph>doOneCycle 527650492: a(n) PasteUpMorph 0xbff5ebd0 I [] in Project class>? 530379376: a(n) Project class 527749448 s [] in BlockClosure>? Process 0x20563e8c priority 50 0xbff5fb90 M WeakArray class>finalizationProcess 526217312: a(n) WeakArray class 0xbff5fbb0 I [] in WeakArray class>restartFinalizationProcess 526217312: a(n) WeakArray class 0xbff5fbd0 I [] in BlockClosure>newProcess 542522800: a(n) BlockClosure Process 0x1f9d1954 priority 80 0xbff60bb0 M Delay class>handleTimerEvent 526222772: a(n) Delay class 0xbff60bd0 I Delay class>? 526222772: a(n) Delay class 530388960 s [] in Delay class>? 530389236 s [] in BlockClosure>? Process 0x20561a1c priority 60 0xbff63b10 M [] in Delay>wait 542513768: a(n) Delay 0xbff63b30 M BlockClosure>ifCurtailed: 546134108: a(n) BlockClosure 0xbff63b4c M Delay>wait 542513768: a(n) Delay 0xbff63b64 M InputEventPollingFetcher>waitForInput 526679160: a(n) InputEventPollingFetcher 0xbff63b90 I InputEventPollingFetcher(InputEventFetcher)>eventLoop 526679160: a(n) InputEventPollingFetcher 0xbff63bb0 I [] in InputEventPollingFetcher(InputEventFetcher)>installEventLoop 526679160: a(n) InputEventPollingFetcher 0xbff63bd0 I [] in BlockClosure>newProcess 542513472: a(n) BlockClosure Process 0x206808f8 priority 60 0xbff7ab90 I SmalltalkImage>lowSpaceWatcher 527474448: a(n) SmalltalkImage 0xbff7abb0 I [] in SmalltalkImage>installLowSpaceWatcher 527474448: a(n) SmalltalkImage 0xbff7abd0 I [] in BlockClosure>newProcess 543688732: a(n) BlockClosure |
Check your own email with subject: "[Vm-dev] cog crash when running Pharo 1.2 tests" Same problem. Again, it is failing in TraitCompositionTest, but if you run it individually, it works. Cheers Mariano On Mon, Apr 11, 2011 at 11:18 PM, Esteban Lorenzano <[hidden email]> wrote:
-- Mariano http://marianopeck.wordpress.com |
Yeah.. looks like its again this longstanding bug with become:. .. and note that its always with CompiledMethod. On 12 April 2011 18:20, Mariano Martinez Peck <[hidden email]> wrote: > > Check your own email with subject: "[Vm-dev] cog crash when running Pharo 1.2 tests" > Same problem. Again, it is failing in TraitCompositionTest, but if you run it individually, it works. > > Cheers > > Mariano > > > On Mon, Apr 11, 2011 at 11:18 PM, Esteban Lorenzano <[hidden email]> wrote: >> >> Hi, >> I'm running tests from PharoCore 1.3 using latest compiled CocoaCogMTVM, and the vm is crashing... >> I tried to get more information by compiling the vm for debug, but when I do that the tests runs ok (well, with errors and failures, but no crash). >> I'm adding the crash information, with optimization -Ox (any optimization with the exception of -O0) >> >> Is that "expected"? >> >> cheers, >> Esteban >> >> Program received signal EXC_BAD_ACCESS, Could not access memory. >> Reason: KERN_INVALID_ADDRESS at address: 0xfff5d7e0 >> 0x0004025e in mapPointersInObjectsFromto (memStart=543732620, memEnd=546135132) at sqMemoryAccess.h:81 >> 81 static inline sqInt longAtPointer(char *ptr) { return *(sqInt *)ptr; } >> >> (gdb) bt >> #0 0x0004025e in mapPointersInObjectsFromto (memStart=543732620, memEnd=546135132) at sqMemoryAccess.h:81 >> #1 0x000541ad in becomewithtwoWaycopyHash (array1=546135112, array2=546135120, twoWayFlag=0, copyHashFlag=1) at /Users/MAC/Desktop/Dev/VM/cog-osx/src/vm/gcc3x-cointerpmt.c:9464 >> Current language: auto; currently c >> >> (gdb) call (int) printAllStacks() >> Process 0x1f8877b8 priority 40 >> 0xbff6172c M CompiledMethod(Object)>becomeForward: 546135084: a(n) CompiledMethod >> 0xbff61750 M CompiledMethod>setSourcePointer: 546135084: a(n) CompiledMethod >> 0xbff6176c M CompiledMethod>setSourcePosition:inFile: 546135084: a(n) CompiledMethod >> 0xbff61794 M CompiledMethod>putSource:fromParseNode:inFile:withPreamble: 546135084: a(n) CompiledMethod >> 0xbff617cc I Trait(TraitBehavior)>addTraitSelector:withMethod: 546084408: a(n) Trait >> 0xbff61800 I [] in Trait(TraitBehavior)>updateMethodDictionarySelector: 546084408: a(n) Trait >> 0xbff61820 M OrderedCollection>do: 546109816: a(n) OrderedCollection >> 0xbff6184c I Trait(TraitBehavior)>updateMethodDictionarySelector: 546084408: a(n) Trait >> 0xbff61878 I [] in Trait(TraitBehavior)>noteChangedSelectors: 546084408: a(n) Trait >> 0xbff61898 M [] in IdentitySet(Set)>do: 546106188: a(n) IdentitySet >> 0xbff618bc M Array(SequenceableCollection)>do: 546108852: a(n) Array >> 0xbff618d8 M IdentitySet(Set)>do: 546106188: a(n) IdentitySet >> 0xbff61900 I Trait(TraitBehavior)>noteChangedSelectors: 546084408: a(n) Trait >> 0xbff61928 I Trait(TraitBehavior)>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait >> 0xbff61950 I Trait(TraitDescription)>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait >> 0xbff61978 I Trait>applyChangesOfNewTraitCompositionReplacing: 546084408: a(n) Trait >> 0xbff619a0 I Trait(TraitBehavior)>setTraitComposition: 546084408: a(n) Trait >> 0xbff619d0 I Trait class>named:uses:category:env: 526249240: a(n) Trait class >> 0xbff61a04 I Trait class>named:uses:category: 526249240: a(n) Trait class >> 0xbff61a34 I TraitCompositionTest(TraitsTestCase)>createTraitNamed:uses: 543105336: a(n) TraitCompositionTest >> 0xbff61a5c M TraitCompositionTest>testProvidedMethodBindingsWithConflicts 543105336: a(n) TraitCompositionTest >> 0xbff61a74 M TraitCompositionTest(TestCase)>performTest 543105336: a(n) TraitCompositionTest >> 0xbff61a8c M [] in TraitCompositionTest(TestCase)>runCase 543105336: a(n) TraitCompositionTest >> 0xbff61aac M BlockClosure>ensure: 546082864: a(n) BlockClosure >> 0xbff61ac8 M TraitCompositionTest(TestCase)>runCase 543105336: a(n) TraitCompositionTest >> 0xbff61ae4 M [] in TestResult>runCase: 542965432: a(n) TestResult >> 0xbff61b00 M BlockClosure>on:do: 546081292: a(n) BlockClosure >> 0xbff61b20 M TestResult>runCase: 542965432: a(n) TestResult >> 0xbff61b3c M TraitCompositionTest(TestCase)>run: 543105336: a(n) TraitCompositionTest >> 0xbff61b58 M TestRunner>runTest: 542862452: a(n) TestRunner >> 0xbff61b74 M [] in TestRunner>runSuite: 542862452: a(n) TestRunner >> 0xbff61bac M [] in OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection >> 0xbff61bcc M OrderedCollection>do: 542965900: a(n) OrderedCollection >> 0xbff5e600 M [] in OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection >> 0xbff5e624 M [] in ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException >> 0xbff5e640 M BlockClosure>on:do: 543486284: a(n) BlockClosure >> 0xbff5e668 M [] in ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException >> 0xbff5e688 M BlockClosure>ensure: 543486148: a(n) BlockClosure >> 0xbff5e6ac M ProgressInitiationException>defaultMorphicAction 543485640: a(n) ProgressInitiationException >> 0xbff5e6c4 M MorphicUIManager>progressInitiationExceptionDefaultAction: 528458180: a(n) MorphicUIManager >> 0xbff5e6e0 M ProgressInitiationException>defaultAction 543485640: a(n) ProgressInitiationException >> 0xbff5e6fc M UndefinedObject>handleSignal: 525336580: a(n) UndefinedObject >> 0xbff5e71c M MethodContext(ContextPart)>handleSignal: 543449400: a(n) MethodContext >> 0xbff5e738 M ProgressInitiationException(Exception)>signal 543485640: a(n) ProgressInitiationException >> 0xbff5e750 M ProgressInitiationException>display:at:from:to:during: 543485640: a(n) ProgressInitiationException >> 0xbff5e784 I ProgressInitiationException class>display:at:from:to:during: 526237160: a(n) ProgressInitiationException class >> 0xbff5e7b0 M ByteString(String)>displayProgressAt:from:to:during: 533053144: a(n) ByteString >> 0xbff5e7e4 M OrderedCollection(Collection)>do:displayingProgress:every: 542965900: a(n) OrderedCollection >> 0xbff5e808 M OrderedCollection(Collection)>do:displayingProgress: 542965900: a(n) OrderedCollection >> 0xbff5e838 I [] in TestRunner>basicRunSuite:do: 542862452: a(n) TestRunner >> 0xbff5e858 M BlockClosure>ensure: 543485428: a(n) BlockClosure >> 0xbff5e87c I TestRunner>basicRunSuite:do: 542862452: a(n) TestRunner >> 0xbff5e8a4 I TestRunner>runSuite: 542862452: a(n) TestRunner >> 0xbff5e8c0 M TestRunner>runAll 542862452: a(n) TestRunner >> 0xbff5e8e0 I PluggableButtonMorph>performAction 542889344: a(n) PluggableButtonMorph >> 0xbff5e8fc M [] in PluggableButtonMorph>mouseUp: 542889344: a(n) PluggableButtonMorph >> 0xbff5e920 M Array(SequenceableCollection)>do: 542965288: a(n) Array >> 0xbff5e948 I PluggableButtonMorph>mouseUp: 542889344: a(n) PluggableButtonMorph >> 0xbff5e964 M PluggableButtonMorph(Morph)>handleMouseUp: 542889344: a(n) PluggableButtonMorph >> 0xbff5e980 M MouseButtonEvent>sentTo: 542965248: a(n) MouseButtonEvent >> 0xbff5e99c M PluggableButtonMorph(Morph)>handleEvent: 542889344: a(n) PluggableButtonMorph >> 0xbff5e9b8 M PluggableButtonMorph(Morph)>handleFocusEvent: 542889344: a(n) PluggableButtonMorph >> 0xbff5e9e0 M [] in HandMorph>sendFocusEvent:to:clear: 526628468: a(n) HandMorph >> 0xbff5e9fc M [] in PasteUpMorph>becomeActiveDuring: 527650492: a(n) PasteUpMorph >> 0xbff5ea18 M BlockClosure>on:do: 542965196: a(n) BlockClosure >> 0xbff5ea44 M PasteUpMorph>becomeActiveDuring: 527650492: a(n) PasteUpMorph >> 0xbff5ea68 M HandMorph>sendFocusEvent:to:clear: 526628468: a(n) HandMorph >> 0xbff5ea90 M HandMorph>sendEvent:focus:clear: 526628468: a(n) HandMorph >> 0xbff5eab4 M HandMorph>sendMouseEvent: 526628468: a(n) HandMorph >> 0xbff5ead8 M HandMorph>handleEvent: 526628468: a(n) HandMorph >> 0xbff5eb04 M HandMorph>processEvents 526628468: a(n) HandMorph >> 0xbff5eb1c M [] in WorldState>doOneCycleNowFor: 528260136: a(n) WorldState >> 0xbff5eb40 M Array(SequenceableCollection)>do: 525350088: a(n) Array >> 0xbff5eb5c M WorldState>handsDo: 528260136: a(n) WorldState >> 0xbff5eb78 M WorldState>doOneCycleNowFor: 528260136: a(n) WorldState >> 0xbff5eb94 M WorldState>doOneCycleFor: 528260136: a(n) WorldState >> 0xbff5ebb0 M PasteUpMorph>doOneCycle 527650492: a(n) PasteUpMorph >> 0xbff5ebd0 I [] in Project class>? 530379376: a(n) Project class >> 527749448 s [] in BlockClosure>? >> >> Process 0x20563e8c priority 50 >> 0xbff5fb90 M WeakArray class>finalizationProcess 526217312: a(n) WeakArray class >> 0xbff5fbb0 I [] in WeakArray class>restartFinalizationProcess 526217312: a(n) WeakArray class >> 0xbff5fbd0 I [] in BlockClosure>newProcess 542522800: a(n) BlockClosure >> >> Process 0x1f9d1954 priority 80 >> 0xbff60bb0 M Delay class>handleTimerEvent 526222772: a(n) Delay class >> 0xbff60bd0 I Delay class>? 526222772: a(n) Delay class >> 530388960 s [] in Delay class>? >> 530389236 s [] in BlockClosure>? >> >> Process 0x20561a1c priority 60 >> 0xbff63b10 M [] in Delay>wait 542513768: a(n) Delay >> 0xbff63b30 M BlockClosure>ifCurtailed: 546134108: a(n) BlockClosure >> 0xbff63b4c M Delay>wait 542513768: a(n) Delay >> 0xbff63b64 M InputEventPollingFetcher>waitForInput 526679160: a(n) InputEventPollingFetcher >> 0xbff63b90 I InputEventPollingFetcher(InputEventFetcher)>eventLoop 526679160: a(n) InputEventPollingFetcher >> 0xbff63bb0 I [] in InputEventPollingFetcher(InputEventFetcher)>installEventLoop 526679160: a(n) InputEventPollingFetcher >> 0xbff63bd0 I [] in BlockClosure>newProcess 542513472: a(n) BlockClosure >> >> Process 0x206808f8 priority 60 >> 0xbff7ab90 I SmalltalkImage>lowSpaceWatcher 527474448: a(n) SmalltalkImage >> 0xbff7abb0 I [] in SmalltalkImage>installLowSpaceWatcher 527474448: a(n) SmalltalkImage >> 0xbff7abd0 I [] in BlockClosure>newProcess 543688732: a(n) BlockClosure >> >> >> >> > > > > -- > Mariano > http://marianopeck.wordpress.com > > > -- Best regards, Igor Stasenko AKA sig. |
Free forum by Nabble | Edit this page |