Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72282

Re: Script suddenly stops

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'output': 0.05; 'debug': 0.07; 'debugging': 0.07; 'suddenly': 0.07; 'debugger': 0.09; 'happens.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'way:': 0.09; 'python': 0.11; '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; 'symbols': 0.16; 'trying': 0.19; 'starts': 0.20; '(the': 0.22; 'header:User-Agent:1': 0.23; '(or': 0.24; 'script': 0.25; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'unter': 0.29; "i'm": 0.30; 'lines': 0.31; 'usually': 0.31; 'writes:': 0.31; 'run': 0.32; 'running': 0.33; 'level.': 0.33; 'maybe': 0.34; 'but': 0.35; 'there': 0.35; 'processed': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'level': 0.37; 'starting': 0.37; 'to:addr:python-list': 0.38; '(from': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'commands': 0.60; 'deleting': 0.60; 'manually': 0.60; 'received:217': 0.63; 'information': 0.63; 'special': 0.74; 'analysis': 0.75; 'lack': 0.78; 'again?': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From dieter <dieter@handshake.de>
Subject Re: Script suddenly stops
Date Fri, 30 May 2014 09:04:17 +0200
References <5387F12E.101@arcor.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e0a7ec.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:a90zgppEQwXZF1fltnIFzq09koE=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10476.1401433473.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401433473 news.xs4all.nl 2906 [2001:888:2000:d::a6]:50622
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72282

Show key headers only | View raw


Chris <ch2009@arcor.de> writes:
> I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database
> (Linux, ext4). The script output is suddenly stopping, while the Python
> process is still running (or should I say sleeping?). It's not in top,
> but in ps visible.
>
> Why is it stopping? Is there a way to make it continue, without calling
> "kill -9", deleting the processed lines and starting it again?

This is difficult to say (from the distance).

I would approach an analysis in the following way:

  *  use a Python with debug symbols (OS provided Python installations
     usually lack debugging symbols; a manually generated
     Python usually has those symbols)

  *  run your script unter "gdb" control (the C level debugger)

  *  when you see that your script starts "sleeping",
     hit "CTRL-C" in the "gdb" session

  *  use "gdb" commands - maybe combined with the special
     python commands for "gdb" to learn where the "sleeping"
     happens.

     These special Python commands allow you to use
     the C level debugger "gdb" to get information about
     the Python level.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Script suddenly stops dieter <dieter@handshake.de> - 2014-05-30 09:04 +0200

csiph-web