Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'overflow': 0.07; '++i)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.11; 'stack': 0.15; 'argcount;': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'violation?': 0.16; 'windows?': 0.16; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.28; 'writes:': 0.29; 'skip:_ 10': 0.29; "i'm": 0.29; 'error': 0.30; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'charset:us- ascii': 0.36; 'skip:p 20': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'received:217': 0.68; 'distinguish': 0.84; 'maybe,': 0.84; 'subject:skip:S 10': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dieter Maurer Subject: Re: Stack_overflow error Date: Tue, 20 Nov 2012 19:40:09 +0100 References: <1fd7672d-000b-4cbc-bd87-a9f37320c9e8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e08e4d.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:lFkKUdkSLRgyo5x+60jOSUCkmv4= 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353436828 news.xs4all.nl 6916 [2001:888:2000:d::a6]:36242 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33645 Aung Thet Naing writes: > 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 Really a stack overflow or a general segmentation violation? Under *nix, both are not easy to distinguish -- but maybe, you are working with Windows?