Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'exception': 0.03; 'python': 0.09; '++i)': 0.09; 'subject:error': 0.11; 'argcount;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'wrote:': 0.17; 'ctypes': 0.22; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'skip:_ 10': 0.29; "i'm": 0.29; 'error': 0.30; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'nov': 0.35; 'received:209.85': 0.35; 'skip:p 20': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'share': 0.61; 'procedure': 0.61; 'more': 0.63; 'offer': 0.65; '20,': 0.65; 'subject:skip:S 10': 0.84; 'us?': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8V0BFAdx9GOrNQwNAp819x34nZpQAzlcNnAXm9V9XKE=; b=WZL4GQ9Rxyl2XAsSK9KAZF+e7MgOTGhydaAMla0tDqY1gl4C4lua4DNavT0DgJo5JX xGSGuKuvlS3/e71WXAKFCkKad+TY2zJnHgFyYwG6CTyJ7I1dau6FXbc60JfEYC7N4QIb et1nJDoQJHVYvrHn0JZDT13/b5wBsvfv5CaRy0FfTklicw+kNR8+rIu3trmcdzPp7ga2 DNSWeJ5JNoIs5gZqmf9z+A19HYAUV5Vyo8KwGfEhZw98S1HkNjDo3tBZmmoF1Ur0hFOE h/hMsqowX/Bsyni6XKpYN7yO6zXo5nhWUmdpy8+TksiXmikySCs3lEPUTBiIFfkm02w9 5W/A== MIME-Version: 1.0 In-Reply-To: <1fd7672d-000b-4cbc-bd87-a9f37320c9e8@googlegroups.com> References: <1fd7672d-000b-4cbc-bd87-a9f37320c9e8@googlegroups.com> Date: Tue, 20 Nov 2012 12:15:55 +1100 Subject: Re: Stack_overflow error From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353374158 news.xs4all.nl 6987 [2001:888:2000:d::a6]:38210 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33573 On Tue, Nov 20, 2012 at 11:49 AM, Aung Thet Naing wrote: > I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the: > > cleanup: > for (i = 0; i < argcount; ++i) > Py_XDECREF(args[i].keep); > > when args[i].keep->ob_refCnt == 1 Can you offer more details? I'm guessing you're using ctypes from a Python script; can you share the script with us? What Python version are you using? What procedure are you calling? ChrisA