<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, 14 Sep 2018 at 00:02, Alistair Grant <<a href="mailto:akgrant0710@gmail.com">akgrant0710@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Hi Eliot and Everyone,<br>
<br>
Is it possible to print out a smalltalk stack dump from within gdb<br>
(while debugging a plugin)?<br>
<br>
The latest changes I'm making to fix UTF8 support in<br>
FileAttributesPlugin are causing a segmentation fault, but I can only<br>
trigger it during image startup and the fault occurs after returning<br>
from the primitive.  I assume I'm corrupting memory somewhere, but<br>
haven't been able to track it down yet.<br>
<br>
Wishing I was at ESUG,<br>
Alistair<br></blockquote><div><div><br></div><div>I've only dabbled with the VM, but I believe calling printcallStack() from gdb </div><div>might be what you need.  </div><div><br></div><div>Until a more authoritative answer arrives, the following might get you started...</div><div><a href="http://forum.world.st/HIGH-CPU-not-frozen-but-s-l-o-w-seaside-image-td91010.html#a91018">http://forum.world.st/HIGH-CPU-not-frozen-but-s-l-o-w-seaside-image-td91010.html#a91018</a></div><div><a href="http://forum.world.st/Squeak-periodic-crash-td57392.html#a57393">http://forum.world.st/Squeak-periodic-crash-td57392.html#a57393</a></div><div><a href="http://forum.world.st/Debugging-Win64-Cog-Spur-td4948194.html#a4948339">http://forum.world.st/Debugging-Win64-Cog-Spur-td4948194.html#a4948339</a></div><div><br></div><div>I believe many of the methods invoked from the VM Simulator can be called as functions from gdb...</div><div><a href="https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/">https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/</a><br></div><div><a href="http://forum.world.st/Simulator-tutorial-td4888841.html#a4895708">http://forum.world.st/Simulator-tutorial-td4888841.html#a4895708</a></div><div><a href="http://forum.world.st/Exploring-the-simulator-was-Re-REPL-image-for-simulation-td4896870.html#a4897975">http://forum.world.st/Exploring-the-simulator-was-Re-REPL-image-for-simulation-td4896870.html#a4897975</a></div></div><div><br></div><div>cheers -ben</div></div></div></div></div></div></div></div></div></div>