From: Fernando Oleo Blanco <irvise_ml@irvise.xyz>
Subject: Re: Help: Ada in NetBSD
Date: Fri, 24 Sep 2021 11:44:56 +0200 [thread overview]
Message-ID: <sik6mo$1l4t$1@gioia.aioe.org> (raw)
In-Reply-To: lybl4iwh0t.fsf@pushface.org
On 24.09.21 09:48, Simon Wright wrote:
> Fernando Oleo Blanco <irvise_ml@irvise.xyz> writes:
>
>> pragma Assert (Result in 0 | EPERM | EINVAL);
>
> EINVAL was added 5 years ago. The others have been there for 20 years
> (when Ada was added to FSF GCC, according to git blame in
> https://github.com/gcc-mirror/gcc).
>
Thank you for your reply Simon. But I think I have understood it now.
It really does not matter what that function "pthread_set..." returns,
even if it is an error.
SCHED_OTHER is the default scheduler FIFO and RR are more RTOS-like and
are generally reserved for root. I would expect that most programs that
spawn threads generally do not care about the priority, since that is
managed by the OS.
That would mean that even if that function fails, once the program is
spawns the actual process, the OS just does it, independently of what
the program tried to do. That would explain why it works in OpenBSD,
FreeBSD etc, and why I was not getting this error before I added
assertions. Because it really does not matter.
I am still very salty about code that knows it fails, but does
nothing/is not cleaned up...
I patched however that function and reran ACATS.
Now, I am no longer getting that assertion failure (s-taprop.adb:659).
And at the very least the test I worked with (a83a02b) is now fully
fixed. However, now, other assertion failures in a couple other places
are taking place, primarily s-tassta.adb:1643, which is related to
pragma Assert (Self_ID.Common.Wait_Count = 0);
Which, from the comments, the master should not have any slaves but it
does somehow (mine is returning a 1). The s-tassta.adb file is shared
among all systems (there are no OS specific files). Another common error
is s-taprop.adb:463 and STORAGE_ERROR : s-intman.adb:136
I will keep on debugging.........
--
Fernando Oleo Blanco
https://irvise.xyz
next prev parent reply other threads:[~2021-09-24 9:44 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-29 11:06 Help: Ada in NetBSD Fernando Oleo Blanco
2021-08-29 13:19 ` Stephane Carrez
2021-08-29 18:08 ` Fernando Oleo Blanco
2021-08-29 18:25 ` Simon Wright
2021-08-29 20:36 ` Fernando Oleo Blanco
2021-08-29 22:08 ` Stephane Carrez
2021-08-30 7:37 ` Simon Wright
2021-08-30 8:14 ` Fernando Oleo Blanco
2021-08-30 10:24 ` Fernando Oleo Blanco
2021-08-30 12:15 ` Fernando Oleo Blanco
2021-08-30 18:49 ` Fernando Oleo Blanco
2021-08-30 19:23 ` Simon Wright
2021-09-01 9:44 ` Fernando Oleo Blanco
2021-09-01 21:41 ` Simon Wright
2021-09-02 22:16 ` Randy Brukardt
2021-09-03 20:18 ` Simon Wright
2021-08-29 17:34 ` Simon Wright
2021-08-29 17:45 ` Fernando Oleo Blanco
2021-09-01 13:28 ` John R. Marino
2021-09-01 14:58 ` Fernando Oleo Blanco
2021-09-17 17:36 ` Fernando Oleo Blanco
2021-09-18 16:39 ` Fernando Oleo Blanco
2021-09-22 20:05 ` Fernando Oleo Blanco
2021-09-22 20:57 ` Simon Wright
2021-09-23 8:04 ` Luke A. Guest
2021-09-23 10:48 ` Kevin Chadwick
2021-09-23 17:01 ` Fernando Oleo Blanco
2021-09-23 17:04 ` Fernando Oleo Blanco
2021-09-23 19:53 ` Fernando Oleo Blanco
2021-09-24 7:48 ` Simon Wright
2021-09-24 9:44 ` Fernando Oleo Blanco [this message]
2021-09-13 18:49 ` Fernando Oleo Blanco
2021-09-13 22:24 ` Dennis Lee Bieber
2021-09-17 17:19 ` Fernando Oleo Blanco
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox