[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stack overflow while using sml-mode.el
From: |
Colin Walters |
Subject: |
Re: stack overflow while using sml-mode.el |
Date: |
24 Oct 2000 01:21:52 -0400 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Eli Zaretskii <eliz@is.elta.co.il> writes:
> If your runtime has a good documentation, you should be able to
> compare the value of the $esp register with the symbol which holds
> the stack limit. Then you will know whether you have a stack
> overflow on your hands. (Finding the symbol(s) which let you
> compute the stack limit is the part where you need the docs---or the
> sources.)
I'm running Emacs on a GNU/Linux system. A bit of digging in the
glibc sources turned up __libc_stack_end, so I tried:
(gdb) p $esp - (void *) __libc_stack_end
$32 = -163724
(gdb)
Because the stack grows down on ia32, this means it wasn't stack
overflow, correct?
Unfortunately, right after I did this, gdb crashed, so I won't be able
to extract more information. I hope I'll be able to reproduce this
bug again later...
Thanks again for all the help.
Re: stack overflow while using sml-mode.el, Dave Love, 2000/10/23
Message not available