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


Groups > linux.debian.maint.python > #12289

Re: pytest and core dump

Path csiph.com!news.mixmin.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pytest and core dump
Date Sun, 09 Feb 2020 21:00:01 +0100
Message-ID <zy0Uh-2lV-5@gated-at.bofh.it> (permalink)
References <zxX0m-8uS-13@gated-at.bofh.it>
X-Original-To PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Feb 9 19:54:57 2020
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-11.249 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lj1-f180.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1G9Z/YL4ZPdOb7XiZaPdimtPyt0xIywmohyjuZUbdwA=; b=McaR1XQE13cS1mnOkgiiIEEwCMo0h9ydc//GJ4D6xV6sJpRMwHfuoSdNbyMAi7E8ys sOHs3OioEEtQnb1wQYFvQY7wCqvSZSYyS0uJcq3XN5f9tM4jyHOCTWS+XV4uL2UEPDXL 8Z2IiMVdvVwYn8Ap+xMar6vAPsn6xQFUtTYlVnRq9VKUEw/lJdG27ZR4u+9LGyuPfL+p rVW/sOGLVQmJGRwzlBXladwl3Sn3A8695NBsoUYkg9j0Wj0oo1XfFAvyjNtsfRvznmVc fc8rAMyGl0RKGDkrGCm6cibEwj6jT7cLMhGPTgsTf7YTxHBbdeq335/k+AVZn5G9rcEo LO5Q==
X-Gm-Message-State APjAAAVlstdhXg37++cs9jyIJnygxp8cBKemSj1Ia2cs+BMzZOV7Jwqz yYwSkaHVDT818zuezasFgeE=
X-Google-SMTP-Source APXvYqyuexMToJXCmkGH2id5s04O7I/sADsnDxtYn2VP5Hfl+HuDDQavOMlksRnyrtgX8ZhxVhKlUA==
X-Received by 2002:a2e:a402:: with SMTP id p2mr5989488ljn.143.1581278083398; Sun, 09 Feb 2020 11:54:43 -0800 (PST)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17913
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20200209195439.GA614783@mitya57.me
Approved robomod@news.nic.it
Lines 55
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python <debian-python@lists.debian.org>
X-Original-Date Sun, 9 Feb 2020 22:54:39 +0300
X-Original-Message-ID <20200209195439.GA614783@mitya57.me>
X-Original-References <A2A20EC3B8560D408356CAC2FC148E53018BDD33A0@SUN-DAG3.synchrotron-soleil.fr>
Xref csiph.com linux.debian.maint.python:12289

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

On Sun, Feb 09, 2020 at 03:31:39PM +0000, PICCA Frederic-Emmanuel wrote:
> Hello, I am working on the vitables package.
>
> during the build I get this error message [1]
>
> ============================= test session starts ==============================
> 1567 platform linux -- Python 3.7.6, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
> 1568 rootdir: /builds/science-team/vitables/debian/output/vitables-3.0.2
> 1569 collected 54 items
> 1570 tests/test_filenode.py Aborted (core dumped)
> 1571 E: pybuild pybuild:341: test: plugin distutils failed with: e
>
> This core dump is generated in the salsa-ci runners.
>
> I would like a backtrace of this core dump.
>
> so my question is how can we instrument the d/rules in order to print a
> stack trace during the build in case of core dump.

To get the Python traceback, you can export PYTHONFAULTHANDLER=1.

To get the C stack trace, you need to run the Python interpreter in a debugger
like gdb. Better to do this locally of course, not in the CI.

--
Dmitry Shachnev

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

pytest and core dump PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2020-02-09 16:50 +0100
  Re: pytest and core dump Dmitry Shachnev <mitya57@debian.org> - 2020-02-09 21:00 +0100

csiph-web