Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Truth has always been found to promote the best interests of mankind... -- Percy Bysshe Shelley


devel / comp.lang.python / Re: pytest segfault, not with -v

SubjectAuthor
o Re: pytest segfault, not with -vDan Stromberg

1
Re: pytest segfault, not with -v

<mailman.69.1637425415.19479.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16094&group=comp.lang.python#16094

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsali...@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: Re: pytest segfault, not with -v
Date: Sat, 20 Nov 2021 08:23:21 -0800
Lines: 20
Message-ID: <mailman.69.1637425415.19479.python-list@python.org>
References: <CABbU2U_cTjL031iQ3S7BtAQM4Yc=rhRF6NzK=_C1kOoe+JwjPA@mail.gmail.com>
<CAGGBd_onbD8jTSSh3X3c8D64uA=1wcGM9MkhzCuXqJTq6LWqWg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de aUZltDeCLMwVsFfoEe6O2A94pLCunCLysh+rTr2NnTfA==
Return-Path: <drsalists@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=OCbmgzFp;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'pytest':
0.05; 'modules': 0.07; 'tests': 0.07; 'cc:addr:python-list': 0.09;
"shouldn't": 0.09; 'subject:not': 0.09; 'subject:pytest': 0.09;
'applies': 0.16; 'can.\xc2\xa0': 0.16; 'cc:name:python list':
0.16; 'from:addr:drsalists': 0.16; 'from:name:dan stromberg':
0.16; 'happen.': 0.16; 'modules,': 0.16; 'subject: -': 0.16;
'wrote:': 0.16; 'python': 0.16; 'uses': 0.19;
'cc:addr:python.org': 0.20; 'fri,': 0.22; 'code': 0.23; 'run':
0.23; 'extension': 0.25; 'cc:2**0': 0.25; "isn't": 0.27; 'else':
0.27; 'done': 0.28; "doesn't": 0.32; 'point,': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'unless': 0.32; 'but': 0.32; 'someone':
0.34; 'same': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
'necessarily': 0.37; 'using': 0.37; 'received:209.85': 0.37;
'could': 0.38; 'received:209': 0.39; 'this,': 0.39; 'break': 0.39;
'received:209.85.222': 0.39; 'similar': 0.65; 'url-ip:lookup
error': 0.70; 'too.': 0.70; '2021': 0.71; 'sulla': 0.84;
'battery': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=2Sd2QjWjRxD81TDAht7DTSyf+mBl+WOgmUppSUIqrfU=;
b=OCbmgzFpN0DxMBqMQf5N/kIuMCB+cRaN9IDULcU4sNwX4iFtd+BmFAlzuGLmyfAMsw
lNi8qAkcCAUGBVFmcK08LPqMRgHdeSLsrqKxnfKw3Sd6HsDBXH5Htu2sFpuJdiB3kCRe
3/6yMLesK0SnkBvLrsGvMEEsdV51+kaWDPcz9uYm1Tz3G9mEocadbZYuAr6ZSchV4OA5
Pf1KmGtDXw0/0pqOz6Czi76VjelfdFEen8SfoG5tf+3qD7MS34iwBk//g3ER+Q/iRqkF
FcP3RyfAJQcKrl3cyRVlst2YLJCKEF0qVtCXU7VK8eBjuemTfXUY0kVpSexf2MTLcou0
X6YA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=2Sd2QjWjRxD81TDAht7DTSyf+mBl+WOgmUppSUIqrfU=;
b=wNMdS0lUQ7NEgicv9nuUmTIqPJWTmmoaSI2y4GId2NpXeSemPh8YluZJ0r5Ti0iZDS
h7F9uuEPqV6e0wtF2eOa7hR3SQ4vezGWZ4RDPh6a9ZKqDhm2aIc1CFfC+GrTH5CMNQGT
BtQCuxkYHcYDoqyixOd3lweyDjo4OnB4MwfyAjRCcogTnOrXTIsQ5UWc8XYWmVp+eJIU
efQauCV597Eat+Tzm11Z7iyPdGk359+CSc2tvxNWVacgZOnnl6fv+g5+8yXcv91I/Bm2
nkPdbxtMYC8QgucG6+azhbH5RnO0DKM1g/Inr3svB4P/huTjgRcYATz2aApz44DvXSCw
uhdQ==
X-Gm-Message-State: AOAM532AJATi5GP92yOSaNgF7lbcQfLusBJmsoFZBWz0egdJvMqTvfuW
6OtGi55+1Jfcsv6QZ1woz1U9YS531d+dV4wnXzs=
X-Google-Smtp-Source: ABdhPJx+WAMbr0/QM6mX51xpEKMJgtQD6hwD8tysQaa2u96oplXq9tXvjjxXjoz09VepLDKLosyUs7Q2OxmY592HpyM=
X-Received: by 2002:a67:e18e:: with SMTP id e14mr106826717vsl.49.1637425412812;
Sat, 20 Nov 2021 08:23:32 -0800 (PST)
In-Reply-To: <CABbU2U_cTjL031iQ3S7BtAQM4Yc=rhRF6NzK=_C1kOoe+JwjPA@mail.gmail.com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.37
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.37
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: <https://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>
X-Mailman-Original-Message-ID: <CAGGBd_onbD8jTSSh3X3c8D64uA=1wcGM9MkhzCuXqJTq6LWqWg@mail.gmail.com>
X-Mailman-Original-References: <CABbU2U_cTjL031iQ3S7BtAQM4Yc=rhRF6NzK=_C1kOoe+JwjPA@mail.gmail.com>
 by: Dan Stromberg - Sat, 20 Nov 2021 16:23 UTC

On Fri, Nov 19, 2021 at 9:49 AM Marco Sulla <Marco.Sulla.Python@gmail.com>
wrote:

> I have a battery of tests done with pytest. My tests break with a
> segfault if I run them normally. If I run them using pytest -v, the
> segfault does not happen.
>
> What could cause this quantical phenomenon?
>

Pure python code shouldn't do this, unless you're using ctypes or similar
(which arguably isn't pure python).

But C extension modules sure can. See:
https://stromberg.dnsalias.org/~strombrg/checking-early.html . It uses
Fortran to make its point, but the same thing very much applies to C.

BTW, if you're using C extension modules, the troublesome one doesn't
necessarily have to be one you wrote. It could be a dependency created by
someone else too.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor