Re: recursion limit exceeded in Python API, but there's only one function in traceback

Paul_Koning
2014-10-16T15:04:07Z

Is that the handler for a breakpoint? Does the completion of the “si” command invoke the breakpoint handler? If yes, that’s your answer.

paul

On Oct 16, 2014, at 10:55 AM, Ömer Sinan Ağacan <omeragacan@gmail.com> wrote:

> Thanks for tips. I managed to blow the stack using a minimal script.
> Here's the code:
>
> import gdb
> import traceback
>
> def handler(ev):
> try:
> print "handling a stop"
> gdb.execute("si")
> gdb.execute("c")
> except:
> traceback.print_stack()
>
> gdb.events.stop.connect(handler)
>
> Output:
>
> [...snip...]