Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Fine day for friends. So-so day for you.


comp / comp.lang.python / Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

SubjectAuthor
o Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environmentLeft Right

1
Subject: Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment
From: Left Right
Newsgroups: comp.lang.python
Date: Thu, 24 Oct 2024 20:08 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: olegsivokon@gmail.com (Left Right)
Newsgroups: comp.lang.python
Subject: Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment
Date: Thu, 24 Oct 2024 22:08:31 +0200
Lines: 11
Message-ID: <mailman.41.1729802022.4695.python-list@python.org>
References: <4a13731716200669342338ae409e73ca@posteo.de>
<CAJQBtg=kCr0VMGXvkBcj4U6CwatC2_G2dstO5pS56_koAXJurA@mail.gmail.com>
<0c080a7d-92de-4518-ac44-78d97fc9e3bb@mrabarnett.plus.com>
<CAJQBtg=ButLwvoA2USBEV8-q=taRhuC+t6D1HkJMbG9VzTvxnQ@mail.gmail.com>
<69934a74-6d04-40a0-a75f-b8024bd0af43@mrabarnett.plus.com>
<CAJQBtgm6Re8tj5hKAZ7Zz6+NC-0iqcBH-MKo8gaOMm8A4prZfA@mail.gmail.com>
<db1bf48a-01a8-4f7e-8d13-33da26af7613@mrabarnett.plus.com>
<CAJQBtgk1req+G1km=BEzbkvPA73vnO=5anAqELtBCDxKdZnhBQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de rdtIohTIm1UE9XHCijzsjA59KEmDQLVCcd4GQZH2zPbQ==
Cancel-Lock: sha1:sXJt2fZo9dNLl7l6his5aSsmSQw= sha256:5fMQYwmlnj96/JTzP52tjC7L7rtQmGeps/boSuhbviw=
Return-Path: <olegsivokon@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=UFMfJx0E;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.022
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'thread': 0.05;
'subject:when': 0.07; 'cc:addr:python-list': 0.09; '"import':
0.16; "it'd": 0.16; 'subject:() ': 0.16; 'subject:Fedora': 0.16;
'subject:fails': 0.16; 'subject:used': 0.16; 'thead': 0.16;
'cc:addr:python.org': 0.20; 'skip:_ 10': 0.22; 'way.': 0.22;
"what's": 0.22; "i'd": 0.24; 'cc:2**0': 0.25; 'again,': 0.26;
'message-id:@mail.gmail.com': 0.31; 'modified': 0.32; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.34; "it's": 0.37; 'could': 0.37;
'reference': 0.60; 'best': 0.61; 'probability': 0.64; 'right':
0.68; 'further,': 0.84; 'replacing': 0.91; 'time?': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1729800522; x=1730405322; darn=python.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=MCDz+hiQAD3LmaxOob6ELCfx5EDO9R7R+nyrOZQgEBk=;
b=UFMfJx0EHiGnyOdfv/w5qz7ZMEj+k8JHfx6PWeo2d3iaMmsPVkz9jBDfE7T6O6QSnV
2CJcTxxmJ6DRW+oXL3cdbML/uzXLBjurRvVNm+WLKvhG6fa+HjQZfZ902OJ8nhKdblWj
BTpHU5+qK2aJpCOFlika6GdOeDqOEeVYLF9xjhrSrtWhIqedD98APN0ou08kyKoneRfx
Zuj6YnQVnytorDxhrnhmXl1m1tTh3xXQFctK5rITD9gtVdhij2MDhxUQHC6yz1I5QwnJ
telzfmHiDJ8frwlIuLFhKtpwf1snWr1VLWAiMv9EqeMH9dUsVSZztH4hUdoG0OkuBV5z
99+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1729800522; x=1730405322;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=MCDz+hiQAD3LmaxOob6ELCfx5EDO9R7R+nyrOZQgEBk=;
b=aEKmsA3pxOz+sKv5NkKhVWbUwkjy9qb++pPGc4qUkHZclx8NWx31MTbpM2F7EJ1lP/
hb8/bCN5dR11FF4VBOkc+yzBuhMA5wNpQXlC1Jc9gdvA5cSTu48aE30QA+tHvvdYl55P
wiXX18wbyEJrLZ/00/+VDjGxqrMmgAJ1Zvdxbp830ei6AoErtHEimWDQLa9/VFuqlxle
ffrSCbv0iVSVAurHM0dMpAGPNzzoBa/TystqiY3ZWKbuX7ypgnCiOYN0IfwW2VMBbY6H
egumpkQKJq0FUDG3P88jwnzoqgzyINJ3pU3lnHLsASMw81DrbnTRRjARf1Krv/dl/uj1
s7GQ==
X-Gm-Message-State: AOJu0YyIaP3SKCoiFZems9tJySEH2KVdAifnLc6AGEn8NUKgxsGaQdKi
Luxynkrps9vjSwfeVhZlqQ4MaB6+EeuuAA8Nz7AAufLTnuVjk6rLbJc2uC+mMINfpep+y7bgodf
HatnJdRW1edBh961XYOJhtxm3xwmXGJS8
X-Google-Smtp-Source: AGHT+IFM+15IkyxDNPHOq+JAuJ3xZBYaQNSjYLcQHZHfKpbgQXfl6SmBVYWLCbMDXfsiS0TIwqv/mJYGWMN+E/+eAlY=
X-Received: by 2002:a05:622a:1487:b0:461:dbd:e4da with SMTP id
d75a77b69052e-4611473daa2mr86217551cf.49.1729800522520; Thu, 24 Oct 2024
13:08:42 -0700 (PDT)
In-Reply-To: <db1bf48a-01a8-4f7e-8d13-33da26af7613@mrabarnett.plus.com>
X-Mailman-Approved-At: Thu, 24 Oct 2024 16:33:42 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <CAJQBtgk1req+G1km=BEzbkvPA73vnO=5anAqELtBCDxKdZnhBQ@mail.gmail.com>
X-Mailman-Original-References: <4a13731716200669342338ae409e73ca@posteo.de>
<CAJQBtg=kCr0VMGXvkBcj4U6CwatC2_G2dstO5pS56_koAXJurA@mail.gmail.com>
<0c080a7d-92de-4518-ac44-78d97fc9e3bb@mrabarnett.plus.com>
<CAJQBtg=ButLwvoA2USBEV8-q=taRhuC+t6D1HkJMbG9VzTvxnQ@mail.gmail.com>
<69934a74-6d04-40a0-a75f-b8024bd0af43@mrabarnett.plus.com>
<CAJQBtgm6Re8tj5hKAZ7Zz6+NC-0iqcBH-MKo8gaOMm8A4prZfA@mail.gmail.com>
<db1bf48a-01a8-4f7e-8d13-33da26af7613@mrabarnett.plus.com>
View all headers

> What is the probability of replacing os.lstat, os.close or os.rmdir from
> another thread at just the right time?

If the thead does "import os", and its start is logically connected to
calling _rmtree_safe_fd(), I'd say it's a very good chance! That is,
again, granted that the reference to os.lstat *can* be modified in
this way.

But, before we keep guessing any further, it'd be best if OP could get
us the info on what's stored in "func" and "os.lstat" at the time the
assertion fails.

1

rocksolid light 0.9.8
clearnet tor