From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1542 invoked by alias); 17 Oct 2014 09:31:33 -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 1527 invoked by uid 89); 17 Oct 2014 09:31:32 -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-f178.google.com Received: from mail-wi0-f178.google.com (HELO mail-wi0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 17 Oct 2014 09:31:31 +0000 Received: by mail-wi0-f178.google.com with SMTP id h11so804040wiw.5 for ; Fri, 17 Oct 2014 02:31:28 -0700 (PDT) X-Received: by 10.194.108.104 with SMTP id hj8mr9132565wjb.28.1413538288077; Fri, 17 Oct 2014 02:31:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.106.68 with HTTP; Fri, 17 Oct 2014 02:30:47 -0700 (PDT) In-Reply-To: References: <543FBDFF.3050709@redhat.com> <104DEFBD-D686-4290-8E3C-725A51C165E6@dell.com> <7BB30632-15BE-4EF8-B84F-D35A27772F18@dell.com> From: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Date: Fri, 17 Oct 2014 09:31:00 -0000 Message-ID: Subject: Re: recursion limit exceeded in Python API, but there's only one function in traceback To: paul_koning Cc: pmuldoon , gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00057.txt.bz2 I'm still having this problem. I just tried this: def handler(): gdb.execute("continue") print "continue returned" This doesn't print anything, until the script fails with "maximum recursion depth". Then it prints lots of "continue returned" lines. So the problem is `gdb.execute` doesn't immediately return and that's causing Python stack to grow, because GDB is calling this function without returning anything to previous calls. I think I need a version of `gdb.execute` that returns immediately. ie. async version or something like that. Is such a thing possible? Thanks again.