Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Larry Martell Newsgroups: comp.lang.python Subject: script exits prematurely with no stderr output, but with system errors Date: Sun, 20 Mar 2016 16:32:06 -0400 Lines: 27 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de bv1A1Mbhc64X0cvzgV/G7Qf1NiEKMlnobkqowWdLKMcQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'debug': 0.04; 'handler': 0.04; 'executable': 0.07; 'stops': 0.07; 'before.': 0.09; 'exited': 0.09; 'failure.': 0.09; 'stdout': 0.09; 'subject:script': 0.09; 'unhandled': 0.09; 'python': 0.10; 'exception': 0.13; 'output': 0.13; "skip:' 30": 0.15; 'received:io': 0.16; 'received:psf.io': 0.16; 'stderr.': 0.16; 'traceback.': 0.16; 'looked': 0.16; 'to:name:python- list@python.org': 0.20; "skip:' 40": 0.22; 'trying': 0.22; 'this:': 0.23; 'script': 0.25; "i've": 0.25; "doesn't": 0.26; 'linux': 0.26; 'least': 0.27; 'message-id:@mail.gmail.com': 0.27; 'idea': 0.28; "skip:' 10": 0.28; 'crash': 0.29; 'received:209.85.213.174': 0.29; "skip:' 50": 0.29; 'skip:/ 40': 0.29; 'guess': 0.31; 'anyone': 0.32; 'run': 0.33; 'problem': 0.33; 'usually': 0.33; 'belong': 0.33; 'running': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'saved': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'received:209.85.213': 0.37; 'release': 0.37; 'creation': 0.38; 'received:209': 0.38; 'delete': 0.38; 'anything': 0.38; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'day.': 0.63; 'today': 0.65; 'saw': 0.77; 'on?': 0.91; 'subject:system': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=JHA4EpDOtrrRA80vc/Iu0YrcL8Us+MBipC2Kgmigrwk=; b=wRVAxXP4bLhud0v2rIM+88A32Y/5R93HwGAAIdgskN3KVaOuxBbB5vifPX2vWLHKkT usLK+A110WU1pzNnzS6U2Id9MJWZhkgoNKPqC6aXLViqEdJ3EirHX5oCnZeKOE/03+LD Kucq1a0gdmOCnTGUyAPOLEaGuOwJpjafwhQ6F01lGvxDJD6XYFLi0KkAYrug1mcZptvg mnBeH/EZp9EW109eqvr8XMioBykRb8R1qduWQzLMGW/HP4XPaVG0VEIkUKWT3R9VjOtQ qgxFaKyvkD6VIiGNAEO1kQ9EsRXNqZIzdbnbVTL3mdUopa6btiyywtHUO9qse2efcsV8 GLsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JHA4EpDOtrrRA80vc/Iu0YrcL8Us+MBipC2Kgmigrwk=; b=LloDNOkLRSC4jWQgZ6Y8UBNUzkxkETk+DMAgymyIxA/Oo0ywd/bqb6Hx6qD8WEOzEc JnSUm+xqWK7T3hmYiPAhIxD2UwtX4vS0N6UDOaUR5rrOx+Wut1CQblrkGIu1Kltj9vsd DlolootOMFgKE+skN9fpc7rPZPQnyHFvNZqf/CaT7ieUrJXQyqsriUDw8hKNuBt9CEIB hwo4+/C2THTzcHo/qRVzrRKK/caGC7FgVQtEbknjmpTDV4MvsUUK3cD1g0ZVR9QxNTLH bVVG+iWnSFFahSDOHsbTZV7bvpdOxz7E6czl+obkVm1H0WhtotluOUEJGiTh5t0cOzzd thEQ== X-Gm-Message-State: AD7BkJKgNoSU83qOHbintH5PcSpWwqtsevwqH1UkxiAAoQxVuow6iejaywMait9UCJ/uYc8JiUds5Q3vGzIKqg== X-Received: by 10.50.79.135 with SMTP id j7mr9596949igx.84.1458505965990; Sun, 20 Mar 2016 13:32:45 -0700 (PDT) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105309 I have a script that I run a lot - at least 10 time every day. Usually it works fine. But sometime it just stops running with nothing output to stdout or stderr. I've been trying to debug this for a while, and today I looked in the system logs and saw this: abrt: detected unhandled Python exception in '/home/prod_user/python/make_workitem_list.py' abrtd: Directory 'pyhook-2016-03-19-22:20:43-26461' creation detected abrt-server[3688]: Saved Python crash dump of pid 26461 to /var/spool/abrt/pyhook-2016-03-19-22:20:43-26461 abrtd: Executable '/home/prod_user/python/make_workitem_list.py' doesn't belong to any package and ProcessUnpackaged is set to 'no' abrtd: 'post-create' on '/var/spool/abrt/pyhook-2016-03-19-22:20:43-26461' exited with 1 abrtd: Deleting problem directory '/var/spool/abrt/pyhook-2016-03-19-22:20:43-26461' abrtd: make_workitem_list: page allocation failure. order:1, mode:0x20 abrtd: Pid: 31870, comm: make_workitem_list Not tainted 2.6.32-573.12.1.el6.x86_64 #1 I have never seen anything like this before. Usually, if there is an unhandled exception something is dumped to stderr. Anyone have any idea what is going on? How can I get it to not delete this crash dump it mentioned? I guess I can put a big exception handler around the enter script with a traceback. This is on Red Hat Enterprise Linux Server release 6.7 (Santiago).