public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Florian Weimer <fweimer@redhat.com>,
	Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH 1/6] nptl: Fix tst-cancel7 and tst-cancelx7 race condition (BZ #14232)
Date: Fri, 11 Jun 2021 12:08:00 -0300	[thread overview]
Message-ID: <1bcee05d-d043-3393-f040-49a3e0825da9@linaro.org> (raw)
In-Reply-To: <87a6nwsave.fsf@oldenburg.str.redhat.com>



On 11/06/2021 12:02, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
> 
>> +static const char sem_name[] = "/tst-cancel7-sem";
> 
> I don't think this is valid, it will break with concurrent execution of
> the test suite from different build trees.
> 
> Maybe you could use support_shared_allocate and sem_init with a
> process-shared semaphore?

Indeed I did not take this in consideration.  But support_shared_allocate is
similar to the unnamed semaphore and the test will use a system() to spawn
the test process. So support_shared_allocate does not really help here.

Maybe a better option would be to move to test-container.

  reply	other threads:[~2021-06-11 15:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10 19:36 [PATCH 0/6] More NPTL fixes Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 1/6] nptl: Fix tst-cancel7 and tst-cancelx7 race condition (BZ #14232) Adhemerval Zanella
2021-06-11 15:02   ` Florian Weimer
2021-06-11 15:08     ` Adhemerval Zanella [this message]
2021-06-11 15:10       ` Florian Weimer
2021-06-11 17:24         ` [PATCH v2 " Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 2/6] nptl: Set cancellation type and state on pthread_exit Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 3/6] nptl: Handle robust PI mutexes for !__ASSUME_SET_ROBUST_LIST Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 4/6] nptl: Do not use pthread set_tid_address as state synchronization (BZ #19951) Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 5/6] nptl: Move setxid flag out of cancelhandling Adhemerval Zanella
2021-06-10 19:36 ` [PATCH 6/6] nptl: Replace struct thread cancelhandling field Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bcee05d-d043-3393-f040-49a3e0825da9@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).