From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4511 invoked by alias); 16 Oct 2014 12:45:59 -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 4459 invoked by uid 89); 16 Oct 2014 12:45:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 16 Oct 2014 12:45:56 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9GCjrIm014347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 16 Oct 2014 08:45:53 -0400 Received: from localhost.localdomain (ovpn-112-31.ams2.redhat.com [10.36.112.31]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9GCjpFC020227; Thu, 16 Oct 2014 08:45:52 -0400 Message-ID: <543FBDFF.3050709@redhat.com> Date: Thu, 16 Oct 2014 12:45:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: =?UTF-8?B?w5ZtZXIgU2luYW4gQcSfYWNhbg==?= , gdb@sourceware.org Subject: Re: recursion limit exceeded in Python API, but there's only one function in traceback References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00035.txt.bz2 On 16/10/14 11:45, Ömer Sinan Ağacan wrote: > 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 That's an error from Python. It tells me something in script.py is not quite right. Impossible to tell without seeing script.py in general. You can increase the recursion depth by doing something like import sys sys.setrecursionlimit(9000) Where '9000' is a limit you can set and vary. However, this might indeed be papering over the cracks, and not fixing the fault. Cheers Phil