[Vm-dev] Can't gdb VM crash

Mariano Martinez Peck marianopeck at gmail.com
Sat Jan 16 14:27:45 UTC 2016


On Sat, Jan 16, 2016 at 11:12 AM, Jan Vrany <jan.vrany at fit.cvut.cz> wrote:

> Well,
>
> > [Inferior 1 (process 1358) exited with code 01]
>
> when no inferior is running, obviously you cannot let it
> to execute arbitrary code.
>
> I suggest you put a breakpoint to exit() to see why the
> inferior exited.
>

You rock!

Doing a `break _exit` did work.
Thanks. I can even now understand the crash.
Time to see how to fix it.

Thanks!!!!


>
> Another thing is that - I assume - spawn new processes out
> of the VM. In that case, you may want to read GDB documentation
> on debugging multiple inferiors at time.
>
> HTH, Jan
>
> On Sat, 2016-01-16 at 11:05 -0300, Mariano Martinez Peck wrote:
> >
> > Hi guys,
> >
> > I build a Spur VM for debug, I tried to run an image that is crashing
> > me on startup but all I get from gdb is:
> >
> > [Inferior 1 (process 1358) exited with code 01]
> > (gdb) call printAllStacks()
> > You can't do that without a process to debug.
> >
> > mmm I was always able to see stack traces. No I cannot do anything.
> >
> > Any ideas what could be wrong? I have no clue why it is failing at
> > startup and I need to know it.
> >
> > Thanks in advance,
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160116/0af07c12/attachment.htm


More information about the Vm-dev mailing list