Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* recursion limit exceeded in Python API, but there's only one function in traceback
@ 2014-10-16 10:46 Ömer Sinan Ağacan
  2014-10-16 12:45 ` Phil Muldoon
  0 siblings, 1 reply; 18+ messages in thread
From: Ömer Sinan Ağacan @ 2014-10-16 10:46 UTC (permalink / raw)
  To: gdb

Hi all,

I'm putting some breakpoints and then running some actions when
program reaches that points, using Python API.

After a few breaks, GDB is starting to print these lines:

Traceback (most recent call last):
  File "/home/omer/gdb_script/script.py", line 71, in handle_breakpoint
    self.breakpoint_jump_addrs[bp.location].add(addr)
RuntimeError: maximum recursion depth exceeded

Weird thing about this is that it says "maximum recursion depth
exceeded" but there's only one function in the traceback. This doesn't
make sense. I think something else is going wrong.

One detail about this script is that it's doing lots of bookkeeping,
like collecting some information when GDB stops at a breakpoint. These
information are held in-memory, as Python data structures. I'm
wondering if this may be the cause of this error. i.e. maybe memory
allocated by GDB for Python interpreter is full or something like
that.

Any ideas about this?

Thanks.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-10-17 17:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 10:46 recursion limit exceeded in Python API, but there's only one function in traceback Ömer Sinan Ağacan
2014-10-16 12:45 ` Phil Muldoon
2014-10-16 14:28   ` Paul_Koning
     [not found]     ` <CAMQQO3=GxjGzF-9RXQsJ_9=Du3rS-UoYFA_0-friPp1nMa8yAA@mail.gmail.com>
2014-10-16 15:04       ` Paul_Koning
2014-10-16 15:15         ` Ömer Sinan Ağacan
2014-10-16 15:18         ` Ömer Sinan Ağacan
2014-10-17  9:31           ` Ömer Sinan Ağacan
2014-10-17 10:11             ` Phil Muldoon
2014-10-17 10:53               ` Ömer Sinan Ağacan
2014-10-17 14:20                 ` Phil Muldoon
2014-10-17 14:27                   ` Ömer Sinan Ağacan
2014-10-17 15:02                     ` Phil Muldoon
2014-10-17 15:04               ` Paul_Koning
2014-10-17 17:31                 ` Phil Muldoon
2014-10-17 16:41             ` Doug Evans
2014-10-17 17:35               ` Phil Muldoon
2014-10-17 16:45           ` Doug Evans
     [not found]     ` <543FE072.6040507@redhat.com>
2014-10-16 15:16       ` Ömer Sinan Ağacan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox