Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22258
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.090 |
| X-Spam-Evidence | '*H*': 0.82; '*S*': 0.00; 'python': 0.11; 'subject:python': 0.12; '2.7.2': 0.16; 'limit.': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'stack': 0.18; 'header:In-Reply-To:1': 0.22; 'header:User-Agent:1': 0.23; 'least': 0.27; 'code': 0.29; 'usually': 0.32; 'hi,': 0.33; 'url:python': 0.34; 'two': 0.35; 'why': 0.36; 'header:X -Complaints-To:1': 0.36; 'url:library': 0.36; 'url:org': 0.36; 'too.': 0.37; 'michael': 0.38; 'received:org': 0.38; 'to:addr :python-list': 0.39; 'to:addr:python.org': 0.40; 'levels': 0.79; 'size.': 0.79; '4000': 0.84; 'recursion': 0.84; 'recursion.': 0.84; 'warning,': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Christian Heimes <lists@cheimes.de> |
| Subject | Re: python segfault |
| Date | Wed, 28 Mar 2012 00:45:54 +0200 |
| References | <20120327222757.GA22125@terra.cms.at> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | f048145149.adsl.alicedsl.de |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 |
| In-Reply-To | <20120327222757.GA22125@terra.cms.at> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1055.1332888367.3037.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1332888367 news.xs4all.nl 6900 [2001:888:2000:d::a6]:45897 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:22258 |
Show key headers only | View raw
Am 28.03.2012 00:27, schrieb Michael Poeltl: > hi, > > can anybody tell why this 'little stupid *thing* of code' let's python-3.2.2, 2.6.X or python 2.7.2 segfault? The code segfaults because you have increased the recursion limit. The amount of recursions is limited by the stack size. A C program with a usually stack size can have about 4000 recursions. Python takes at least two stack levels for each recursion. The documentation http://docs.python.org/library/sys.html#sys.setrecursionlimit contains a warning, too. Christian
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python segfault Christian Heimes <lists@cheimes.de> - 2012-03-28 00:45 +0200
csiph-web