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.
On Fri, 14 Sep 2018 at 00:02, Alistair Grant <[hidden email]> 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...