Hi Eliot and Everyone,
Is it possible to print out a smalltalk stack dump from within gdb (while debugging a plugin)?
The latest changes I'm making to fix UTF8 support in FileAttributesPlugin are causing a segmentation fault, but I can only trigger it during image startup and the fault occurs after returning from the primitive. I assume I'm corrupting memory somewhere, but haven't been able to track it down yet.
Wishing I was at ESUG, Alistair
On Fri, 14 Sep 2018 at 00:02, Alistair Grant akgrant0710@gmail.com wrote:
Hi Eliot and Everyone,
Is it possible to print out a smalltalk stack dump from within gdb (while debugging a plugin)?
The latest changes I'm making to fix UTF8 support in FileAttributesPlugin are causing a segmentation fault, but I can only trigger it during image startup and the fault occurs after returning from the primitive. I assume I'm corrupting memory somewhere, but haven't been able to track it down yet.
Wishing I was at ESUG, Alistair
I've only dabbled with the VM, but I believe calling printcallStack() from gdb might be what you need.
Until a more authoritative answer arrives, the following might get you started... http://forum.world.st/HIGH-CPU-not-frozen-but-s-l-o-w-seaside-image-td91010.... http://forum.world.st/Squeak-periodic-crash-td57392.html#a57393 http://forum.world.st/Debugging-Win64-Cog-Spur-td4948194.html#a4948339
I believe many of the methods invoked from the VM Simulator can be called as functions from gdb... https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/ http://forum.world.st/Simulator-tutorial-td4888841.html#a4895708 http://forum.world.st/Exploring-the-simulator-was-Re-REPL-image-for-simulati...
cheers -ben
Hi Ben,
On Thu, 13 Sep 2018 at 18:29, Ben Coman btc@openinworld.com wrote:
On Fri, 14 Sep 2018 at 00:02, Alistair Grant akgrant0710@gmail.com wrote:
Hi Eliot and Everyone,
Is it possible to print out a smalltalk stack dump from within gdb (while debugging a plugin)?
The latest changes I'm making to fix UTF8 support in FileAttributesPlugin are causing a segmentation fault, but I can only trigger it during image startup and the fault occurs after returning from the primitive. I assume I'm corrupting memory somewhere, but haven't been able to track it down yet.
Wishing I was at ESUG, Alistair
I've only dabbled with the VM, but I believe calling printcallStack() from gdb might be what you need.
Until a more authoritative answer arrives, the following might get you started... http://forum.world.st/HIGH-CPU-not-frozen-but-s-l-o-w-seaside-image-td91010.... http://forum.world.st/Squeak-periodic-crash-td57392.html#a57393 http://forum.world.st/Debugging-Win64-Cog-Spur-td4948194.html#a4948339
I believe many of the methods invoked from the VM Simulator can be called as functions from gdb... https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/ http://forum.world.st/Simulator-tutorial-td4888841.html#a4895708 http://forum.world.st/Exploring-the-simulator-was-Re-REPL-image-for-simulati...
cheers -ben
Thanks! printCallStack() is what I was looking for. I'll also be sure to read the links you supplied.
Thanks again, Alistair
vm-dev@lists.squeakfoundation.org