Path: csiph.com!news.mixmin.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod From: Dmitry Shachnev Newsgroups: linux.debian.maint.python Subject: Re: pytest and core dump Date: Sun, 09 Feb 2020 21:00:01 +0100 Message-ID: References: X-Original-To: PICCA Frederic-Emmanuel X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Feb 9 19:54:57 2020 Old-Return-Path: 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: archive/latest/17913 List-ID: List-URL: 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 X-Original-Date: Sun, 9 Feb 2020 22:54:39 +0300 X-Original-Message-ID: <20200209195439.GA614783@mitya57.me> X-Original-References: Xref: csiph.com linux.debian.maint.python:12289 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5688gqe4PSusUZcLZkYmW1hrg8sFAl5AY3oACgkQZkYmW1hr g8t2URAApxZ7iRmjw7fcpwEXdljrxh7GeIJv11YwEp2oAEMwXyApCBVaEgE1zCcz R8mue1rkNEk0sEKZ2mocoIGipH4yzY4QqCgNr6qju/66pgI5rvSp+mN5fUrbF1Bx zmrZPgDjjQaTNvLRrn/pBCL52QHcnmg01cxjv/DiHllduZspIk1aawqLPDkpaQyK shfxUJmhR8FOfmrw2vcrc/XCgFJZvZyGLseJGFni8cYVDen0JjL7kaGNY3E73u2i n3fefIZfVJrGiSkXYzsFukE4JZV1Iga9NaDWI+sizrlaPTR+OSJ0a6TIHgtivLy6 S+Bpr98saWAds7KWI/11nbsrPX+h01FWIPsr+gxut/8s4BrxSIeO5llUhNDTLJLV OaJw/wm0ppxO/9Ea+rguLhRGYl4n+/DDqbwNOziFUc4fW2KPmzhKZpAcB2PKpqlF JfJZ4yyZy025R4LC8kNT7GpzRpTSgn7NwFUjwFbdNQ4a+JrZPNs7og0nF+UqTYlN esIgTiiYjRuvBbmRiaA6wpz05Ep9oolfz3GQ5zzt1iE9s82Ytac/pkfxmRw4w1NM JTzDRSEOwjK9ibpWd1yn0bhJwoS7nMYzEtaaIU8c/cMr3sSpvxF+AVcI1OCM9VN+ 0G+apR7Nvgw5NglKbMlwK6dm0yd+ZPSTQwwfDOLvKH+B02k8VcQ= =0xTi -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--