<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Robert,</p>
<p><br>
</p>
<p>without knowing details about your error, can you eliminate the infinite loop by applying any of the proposed solutions from <a href="http://forum.world.st/I-broke-the-debugger-td5110752.html#a5110814" class="OWAAutoLink" id="LPlnk912340" previewremoved="true">http://forum.world.st/I-broke-the-debugger-td5110752.html#a5110814</a>?</p>
<div id="LPBorder_GT_15978352282170.4912681673953856" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15978352282080.445783465119177" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15978352282110.2023490311271734" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15978352282110.7236682477655259"></div>
<div id="LPTitle_15978352282110.5059186271624909" style="top: 0px; color: rgb(36, 96, 118); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15978352282130.4203076750725674" href="http://forum.world.st/I-broke-the-debugger-td5110752.html#a5110814" target="_blank" style="text-decoration: none;">Squeak - Dev - I broke the debugger?</a></div>
<div id="LPMetadata_15978352282140.13946029993795284" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
forum.world.st</div>
<div id="LPDescription_15978352282150.28985452749690777" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
I broke the debugger?. Weird thing her. I was trying out my old Plumbing example, mostly just as a way to improve the swiki page. Using a 19292 update 5.3 image on Mac. Found a recursion related bug in...</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">Best,
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
<div class="_rp_T4" id="Item.MessagePartBody">Christoph</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Robert Withers via Squeak-dev <squeak-dev@lists.squeakfoundation.org><br>
<b>Gesendet:</b> Samstag, 25. Juli 2020 14:22:47<br>
<b>An:</b> Squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] error on process termination</font>
<div> </div>
</div>
<div>
<p>To give you more context, I am looking into gaurding the Vat's eventualProcess to restart when curtailed. This method is the main processing event loop. Below that is the #restartEventLoop method.</p>
<blockquote>
<p>PriorityVat>>#processSends<br>
<br>
    [<br>
        [Processor yield.<br>
        self nextPriorityMsg ifNotNil: [:msg | msg value].<br>
        normalQ notNil ] ifCurtailed: [self restartEventLoop]] whileTrue<br>
    <br>
PriorityVat>>#restartEventLoop<br>
<br>
    | currentEventLoop |<br>
    (Processor activeProcess == eventualProcess) ifTrue: [<br>
        eventualProcess ifNotNil: [:ea | currentEventLoop := ea].<br>
        eventualProcess := nil.<br>
        eventualProcess := EventualProcess newOnVat: self.<br>
        eventualProcess resumeAsProcess.<br>
        currentEventLoop ifNotNil: [:ea | ea terminate ]].</p>
</blockquote>
<p>The termination is where the #stepToCallee error occurs.</p>
<p>K, r<br>
</p>
<div class="moz-cite-prefix">On 7/25/20 8:13 AM, Robert Withers wrote:<br>
</div>
<blockquote type="cite" cite="mid:a7a1a628-8d90-39f1-bd66-b387bed1e59b@pm.me">
<p>Hi y'all,</p>
<p>I am getting an error when terminating my process and it loops infinitely stacking this error recursively.</p>
<blockquote>
<p>nil doesNotUnderstand: stepToCallee<br>
</p>
</blockquote>
<p>This is called from Context>>#runUntilErrorOrReturnFrom: aSender after this method has tried to get the topContext. Somehow topContext is nil, and I am guessing that returns from one of the context pops, in the following code from #runUntilErrorOrReturnFrom:. </p>
<blockquote>
<p>    "Control resumes here once above ensure block or exception handler is executed"<br>
    ^ error ifNil: [<br>
        "No error was raised, remove ensure context by stepping until popped"<br>
        [ctxt isDead] whileFalse: [topContext := topContext stepToCallee].<br>
        {topContext. nil}<br>
<br>
</p>
</blockquote>
<p>Have I setup the process incorrectly to receive this error or is something else the issue?<br>
</p>
<p>Appreciated.</p>
<p>Kindly,<br>
rabbit<br>
</p>
</blockquote>
</div>
</body>
</html>