Hi Eliot. I am testing your very last VM r2496, CogMT in Mac OS 10.6.8. I am using the trick of #cannotInterpret: and I discover a problem with it. Basically, it is when doing something like this:<br><br>MyProxy >> cannotInterpret: aMessage<br>
<br>Error signal: 'ups...'.<br><br>In this case, the debugger comes in but after one or 2 times I press in the debugger line of #cannotInterpret: (to debug it), it crashes. As far as I could see with gdb, the problem is in MethodContext >> #printDetails:<br>
If I comment the contents of such method, I have no crash at all. I think that in this scenario where I throw an arror inside #cannotInterpret can reach a situation where you don't have temps or values or receiver or something and that's why it crash.<br>
Furthermore, previous VM version, do NOT have this problem. <br><br>I will try to dig a little more, but if you give me a hint, I appreciate it. <br><br>Here is the bt and the stack:<br><br>Program received signal EXC_BAD_ACCESS, Could not access memory.<br>
Reason: KERN_PROTECTION_FAILURE at address: 0x00000026<br>0x000d8356 in methodHasCogMethod ()<br>(gdb) bt<br>#0 0x000d8356 in methodHasCogMethod ()<br>#1 0x000c7899 in cogPICSelectornumArgsCase0MethodCase1MethodtagisMNUCase ()<br>
#2 0x000d6eea in ceSICMiss ()<br>#3 0x13ffc35c in ?? ()<br>#4 0x00107a05 in threadSchedulingLoop ()<br>#5 0x00108c38 in initStackPagesAndInterpret ()<br>#6 0x0005d964 in EventLoopEventHandler ()<br>#7 0x98c66c2f in DispatchEventToHandlers ()<br>
#8 0x98c65ef6 in SendEventToEventTargetInternal ()<br>#9 0x98c65d55 in SendEventToEventTargetWithOptions ()<br>#10 0x98c9aa24 in ToolboxEventDispatcherHandler ()<br>#11 0x98c67080 in DispatchEventToHandlers ()<br>#12 0x98c65ef6 in SendEventToEventTargetInternal ()<br>
#13 0x98c887f3 in SendEventToEventTarget ()<br>#14 0x98e11c17 in ToolboxEventDispatcher ()<br>#15 0x98e11d4f in RunApplicationEventLoop ()<br>#16 0x0005d18a in RunApplicationEventLoopWithSqueak ()<br>#17 0x0006ebf7 in main ()<br>
<br><br><br>(gdb) call (int) printAllStacks()<br>Process 0x171793f8 priority 40<br>0xbff69d64 M [] in MethodContext>printDetails: 387422092: a(n) MethodContext<br>0xbff69d80 M BlockClosure>on:do: 388720820: a(n) BlockClosure<br>
0xbff69da0 M BlockClosure>ifError: 388720820: a(n) BlockClosure<br>0xbff69dc8 M MethodContext>printDetails: 387422092: a(n) MethodContext<br>0xbff69df0 M MethodContext(ContextPart)>errorReportOn: 387418688: a(n) MethodContext<br>
0xbff69e1c I [] in SmalltalkImage>logError:inContext: 340435416: a(n) SmalltalkImage<br>0xbff69e48 I [] in SmalltalkImage>logDuring: 340435416: a(n) SmalltalkImage<br>0xbff69e68 M BlockClosure>ensure: 388309644: a(n) BlockClosure<br>
0xbff69e90 I SmalltalkImage>logDuring: 340435416: a(n) SmalltalkImage<br>0xbff69eb4 I SmalltalkImage>logError:inContext: 340435416: a(n) SmalltalkImage<br>0xbff69ef0 M [] in MorphicUIManager>openDebuggerOn:context:label:contents:fullView: 338485116: a(n) MorphicUIManager<br>
0xbff69f0c M BlockClosure>on:do: 387421948: a(n) BlockClosure<br>0xbff69f44 M [] in MorphicUIManager>openDebuggerOn:context:label:contents:fullView: 338485116: a(n) MorphicUIManager<br>0xbff69f64 M WorldState>runStepMethodsIn: 338433128: a(n) WorldState<br>
0xbff69f80 M PasteUpMorph>runStepMethods 338272244: a(n) PasteUpMorph<br>0xbff69f98 M WorldState>doOneCycleNowFor: 338433128: a(n) WorldState<br>0xbff69fb4 M WorldState>doOneCycleFor: 338433128: a(n) WorldState<br>
0xbff69fd0 M PasteUpMorph>doOneCycle 338272244: a(n) PasteUpMorph<br>0xbff69ff0 I [] in Project class>spawnNewProcess 338672796: a(n) Project class<br>0xbff6a010 I [] in BlockClosure>newProcess 387420956: a(n) BlockClosure<br>
<br>Process 0x1711e7fc priority 50<br>0xbff5ffd0 M WeakArray class>finalizationProcess 337425280: a(n) WeakArray class<br>0xbff5fff0 I [] in WeakArray class>restartFinalizationProcess 337425280: a(n) WeakArray class<br>
0xbff60010 I [] in BlockClosure>newProcess 387049248: a(n) BlockClosure<br><br>Process 0x14a27698 priority 80<br>0xbff60ff0 M Delay class>handleTimerEvent 337430620: a(n) Delay class<br>0xbff61010 I Delay class>? 337430620: a(n) Delay class<br>
346191180 s [] in Delay class>?<br>346191416 s [] in BlockClosure>?<br><br>Process 0x15d37dd0 priority 40<br>366182080 s [] in SHTextStylerST80(SHTextStyler)>styleInBackgroundProcess:<br>366181744 s [] in BlockClosure>newProcess<br>
<br>Process 0x166a5108 priority 60<br>0xbff61fd0 I SmalltalkImage>lowSpaceWatcher 340435416: a(n) SmalltalkImage<br>0xbff61ff0 I [] in SmalltalkImage>installLowSpaceWatcher 340435416: a(n) SmalltalkImage<br>0xbff62010 I [] in BlockClosure>newProcess 376066092: a(n) BlockClosure<br>
<br>Process 0x1711c3d8 priority 60<br>0xbff64f50 M [] in Delay>wait 387040292: a(n) Delay<br>0xbff64f70 M BlockClosure>ifCurtailed: 387932080: a(n) BlockClosure<br>0xbff64f8c M Delay>wait 387040292: a(n) Delay<br>
0xbff64fa4 M InputEventPollingFetcher>waitForInput 337872084: a(n) InputEventPollingFetcher<br>0xbff64fd0 I InputEventPollingFetcher(InputEventFetcher)>eventLoop 337872084: a(n) InputEventPollingFetcher<br>0xbff64ff0 I [] in InputEventPollingFetcher(InputEventFetcher)>installEventLoop 337872084: a(n) InputEventPollingFetcher<br>
0xbff65010 I [] in BlockClosure>newProcess 387039996: a(n) BlockClosure<br><br>processes at priority 10<br>Process 0x166a52d4 priority 10<br>0xbff63fd0 M ProcessorScheduler class>idleProcess 337424860: a(n) ProcessorScheduler class<br>
0xbff63ff0 I [] in ProcessorScheduler class>startUp 337424860: a(n) ProcessorScheduler class<br>0xbff64010 I [] in BlockClosure>newProcess 376066552: a(n) BlockClosure<br>$1 = 0<br clear="all"><br><br>Thanks in advance,<br>
<br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>