Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'subject:Windows': 0.02; 'subject:code': 0.07; 'python': 0.11; 'question.': 0.14; 'windows': 0.15; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'hardware.': 0.16; 'reboot': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'drawing': 0.19; 'creating': 0.23; 'header:User-Agent:1': 0.23; 'certainly': 0.24; "haven't": 0.24; 'possibly': 0.26; 'post': 0.26; 'asking': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'errors': 0.30; 'code': 0.31; 'lines': 0.31; 'usually': 0.31; 'crash': 0.31; 'probably': 0.32; 'checked': 0.32; 'run': 0.32; 'url:python': 0.33; 'could': 0.34; 'problem': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'operating': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'bad': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'even': 0.60; 'hardware': 0.61; 'simple': 0.61; 'real': 0.63; 'here': 0.66; 'now:': 0.74; 'repeat': 0.74; 'ram,': 0.84; 'surprised,': 0.84; 'url:lang': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Fri, 23 May 2014 16:54:26 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Windows automatic rebooting due to faulty code References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400885673 news.xs4all.nl 2962 [2001:888:2000:d::a6]:33260 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71946 On 05/23/2014 09:26 AM, Ronak Dhakan wrote: > Even I am surprised, python errors should stay in python. But I am > sure that the reboot is triggered exactly when I run some faulty > code. And usually I change the code after reboot, so I haven't > checked whether the same code is able to repeat the reboot. This > happens even in simple code of 10-15 lines for drawing a polygon. > > There was a problem while creating the post asking the question. Here > it is now: > https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ Almost certainly you are experiencing a hardware fault. Possibly bad RAM. Windows will not let user-space code crash the operating system. Though user-space code could trigger something in the kernel that then faults. This is likely what's happening here. But the real cause is probably hardware. If it's not RAM, then it might be video hardware failing.