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


Groups > comp.lang.python > #105312

Re: script exits prematurely with no stderr output, but with system errors

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Subject Re: script exits prematurely with no stderr output, but with system errors
Date Sun, 20 Mar 2016 17:02:11 -0400
Lines 57
Message-ID <mailman.412.1458508179.12893.python-list@python.org> (permalink)
References <CACwCsY4T5fJmPjuE7wDxJ+kzLtuxRZaw+zxW7Oo_KwjK+xAq2Q@mail.gmail.com> <CAPM-O+wykRfwe77oMG==pLvXdNCub5zBjU-9k7vqQBJx7xn6ug@mail.gmail.com> <CACwCsY4r=L9bia-Zid3OH=1ZgZXFufkJPAkcCr7NQX0FXBjNTg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de XMamnpLn22tKKHSTDHPKCghBeoNNhtcm6rr8XG2kAhUw==
Return-Path <joel.goldstick@gmail.com>
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; 'exception.': 0.07; 'executable': 0.07; 'stops': 0.07; 'cc:addr:python-list': 0.09; 'before.': 0.09; 'exited': 0.09; 'failure.': 0.09; 'stdout': 0.09; 'subject:script': 0.09; 'unhandled': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'exception': 0.13; 'files.': 0.13; 'output': 0.13; "skip:' 30": 0.15; '2016': 0.16; 'cause.': 0.16; 'googling': 0.16; 'kernel.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'stderr.': 0.16; 'traceback.': 0.16; 'wrote:': 0.16; 'looked': 0.16; 'memory': 0.17; '&gt;': 0.18; 'email addr:gmail.com&gt;': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; "skip:' 40": 0.22; 'trying': 0.22; 'seems': 0.23; 'this:': 0.23; 'header:In-Reply- To:1': 0.24; '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; 'larry': 0.29; "skip:' 50": 0.29; 'skip:/ 40': 0.29; 'url:mailman': 0.30; 'guess': 0.31; 'anyone': 0.32; "can't": 0.32; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'usually': 0.33; 'belong': 0.33; 'errors,': 0.33; 'url:listinfo': 0.34; 'know.': 0.34; 'running': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'saved': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'release': 0.37; 'creation': 0.38; 'received:209': 0.38; 'delete': 0.38; 'anything': 0.38; 'log': 0.38; 'google': 0.39; 'why': 0.39; 'area': 0.39; 'url:mail': 0.40; 'subject:with': 0.40; 'some': 0.40; 'show': 0.62; 'day.': 0.63; 'mar': 0.65; 'today': 0.65; '20,': 0.66; 'url:info': 0.71; 'saw': 0.77; '4:55': 0.84; 'expertise.': 0.84; 'to:none': 0.91; 'joel': 0.91; '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:in-reply-to:references:date:message-id:subject:from:cc; bh=qzaoDOEhVj2kBwH8uq9wauSRtO4UYuEwpVQ9so2vNkM=; b=nqwTyoBUuBqgdAZ2y9QU5Oa/5ug++Y2SmId1R/ER1lQWMWtPQTygUqVroDFMV6LT6m eo7JkB76/HYXb/OkB9h3ZI4Px2/o2Gupa6RhRPqxPtjzS7fe+brf0tBdketokITo/B5q mbsGZGHDMkTfN8xDdEd9AHu6neB7gw4Gh1aT6IURUJHqhtBP2FZT57AeXWqzdkbFSBvr oSy4ezrlvkHSe1D1+Bscq6pQz9W8BHesz5AusB3kae9sg+RX3vuPxmcXQEECjQ7lvMFL I/tt1m1yIBWi+p08mtDb3/2SFBK+Gezd0NKL8DNCf3dUC9J1KE9cCN88vJBqNUBe8HBO qQtQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=qzaoDOEhVj2kBwH8uq9wauSRtO4UYuEwpVQ9so2vNkM=; b=DkoGtOWAEsm4lZ09oxjYAyUAivdV5WNNKgIiodL7PUvVbF8Jsi2vWRZfzxeG5HFqjF 49kC87PUJ9Wo8DVCGK5rJ0EyXQoOSoxJuxsAs7z4kRCpbtJBVdI+KXDfJ0/4RxbC580H Z9Jkkd9uF0tOCfFAFbQveyrvERw1pIec95eNKZO9BGDoaPoocVRA3QdyeEr43VEOJr2h tziWKsl0ozSI1t423iLynw5IJNrEZY5sFjvGIe+hBEbeQKOtk+6V02a9C0irQuOLzHC3 /jHcARdq98FDo+dJ04/ReSljI0KcqJSj3Xh26q0qtVoCnH6hiazJj+4BbQ48qcP14aVY rPlQ==
X-Gm-Message-State AD7BkJIJtC4eb+Yr1TahCCYM5IrIA3S5SU4qrLs6oYlg2/hfX20iOyr/hJeATZQAuMSI/sjfC39tg7K8RTmqUg==
X-Received by 10.202.206.205 with SMTP id e196mr15191479oig.88.1458507731668; Sun, 20 Mar 2016 14:02:11 -0700 (PDT)
In-Reply-To <CACwCsY4r=L9bia-Zid3OH=1ZgZXFufkJPAkcCr7NQX0FXBjNTg@mail.gmail.com>
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
Xref csiph.com comp.lang.python:105312

Show key headers only | View raw


On Sun, Mar 20, 2016 at 4:55 PM, Larry Martell <larry.martell@gmail.com>
wrote:

> On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick
> <joel.goldstick@gmail.com> wrote:
> > On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell <larry.martell@gmail.com>
> > wrote:
> >
> >> 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).
> >
> > Googling I found this:
> >
> http://stackoverflow.com/questions/2628901/interpreting-kernel-message-page-allocation-failure-order1
> >
> > It seems that the kernel can't allocate memory is a likely cause.
>
> Yes, I was thinking that as well about the "page allocation failure"
> message, but it's almost like there were 2 errors, the first being the
> unhandled exception. But why would it not output something to stderr?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Others may know.  Not my area of expertise.  I gleaned that it couldn't
create 2 pages of memory for the kernel.  Some of the google links show
ways to look at log files.  It was over my head!

-- 
Joel Goldstick
http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays>
http://cc-baseballstats.info/

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


Thread

Re: script exits prematurely with no stderr output, but with system errors Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-20 17:02 -0400

csiph-web