From: Philippe Gerum <rpm@xenomai.org>
To: Giulio Moro <giulio@bela.io>
Cc: Xenomai <xenomai@lists.linux.dev>
Subject: Re: [libevl][PATCH] latmus: avoid segmentation fault on cleanup when test_ulat is
Date: Sat, 11 Oct 2025 17:29:33 +0200 [thread overview]
Message-ID: <87347ptq1u.fsf@xenomai.org> (raw)
In-Reply-To: <212b2539-8dac-c61e-0bf8-5cbcf4aad365@bela.io> (Giulio Moro's message of "Wed, 8 Oct 2025 17:42:43 -0500")
Giulio Moro <giulio@bela.io> writes:
> From 98a8b8808cfc34e20684b4298f554f353eb1468a Mon Sep 17 00:00:00 2001
> From: Giulio Moro <giuliomoro@yahoo.it>
> Date: Wed, 8 Oct 2025 17:41:03 +0000
> Subject: [PATCH] latmus: avoid segmentation fault on cleanup when test_ulat is
> not set
>
> test case: latmus --sirq -P 90 -T 1s
>
> Signed-off-by: Giulio Moro <giuliomoro@yahoo.it>
> ---
> latmus/timer.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/latmus/timer.c b/latmus/timer.c
> index e496d0f..ce44ffe 100644
> --- a/latmus/timer.c
> +++ b/latmus/timer.c
> @@ -159,8 +159,10 @@ void run_timer_test(size_t histogram_cells)
> sigwait(&sigmask, &sig);
> pthread_cancel(sitter);
> pthread_join(sitter, NULL);
> - pthread_cancel(responder);
> - pthread_join(responder, NULL);
> + if (test_ulat) {
> + pthread_cancel(responder);
> + pthread_join(responder, NULL);
> + }
> pthread_cancel(logger);
> pthread_join(logger, NULL);
Merged, thanks (short log slightly amended for brevity).
--
Philippe.
prev parent reply other threads:[~2025-10-11 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 22:42 [libevl][PATCH] latmus: avoid segmentation fault on cleanup when test_ulat is Giulio Moro
2025-10-11 15:29 ` Philippe Gerum [this message]
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=87347ptq1u.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=giulio@bela.io \
--cc=xenomai@lists.linux.dev \
/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