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

Paul_Koning@Dell.com Paul_Koning@Dell.com
Thu Oct 16 15:04:00 GMT 2014


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...]


More information about the Gdb mailing list