From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11395 invoked by alias); 16 Oct 2014 10:46:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 11382 invoked by uid 89); 16 Oct 2014 10:46:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 16 Oct 2014 10:46:36 +0000 Received: by mail-wi0-f179.google.com with SMTP id d1so4330608wiv.12 for ; Thu, 16 Oct 2014 03:46:33 -0700 (PDT) X-Received: by 10.194.108.104 with SMTP id hj8mr945297wjb.28.1413456393066; Thu, 16 Oct 2014 03:46:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.106.68 with HTTP; Thu, 16 Oct 2014 03:45:52 -0700 (PDT) From: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Date: Thu, 16 Oct 2014 10:46:00 -0000 Message-ID: Subject: recursion limit exceeded in Python API, but there's only one function in traceback To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00033.txt.bz2 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.