comp.lang.ada
 help / color / mirror / Atom feed
From: Fernando Oleo Blanco <irvise_ml@irvise.xyz>
Subject: Re: Help: Ada in NetBSD
Date: Fri, 17 Sep 2021 19:36:01 +0200	[thread overview]
Message-ID: <si2jm1$1i9p$1@gioia.aioe.org> (raw)
In-Reply-To: sgo4f7$lri$1@gioia.aioe.org

Another update on my side, this time with a bit more content.

Following the help provided by Arnaud, I modified the flags with which 
the ACATS's tests get compiled.

To the gnatmake command I added the -f -a -g -j0 flags.

-f to force the recompilation of all files needed with the exception of 
the runtime and library files.
-a is to also force the recompilation of the library & runtime files. 
Whatever is needed.
-g debugging.
-j0 ignored by the ACATS suite provided by Simon (or so says the 
documentation in the shell file).

This flags make the compilation much slower, obviously, since nearly for 
every test the entire Ada library needs to be recompiled. However, this 
started to give me a much better insight on what was going on. Specially 
since now I could debug the failing tests.

I noticed that the first test I started debugging was stuck in a loop 
related to task management. This would explain why I was getting so many 
tests failing with timeouts. Great, but I could only get so much insight.

Arnaud, once again came to the rescue and indicated that I should add 
the -gnata flag.

-gnata is to enable assertions.

And yes, now the tests were finally failing in a meaningful manner. I 
have written the assertions I have found that failed. Remember, I am 
using GCC 10.3 with the patch set that is available in my website. You 
can find it in one of the messages I have sent in this thread.

So, what do we get?

System.Assertions. Assert_Failure in s-tassta.adb:1643 (very common 
everywhere), s-tpopmo.adb:213 (fairly common) and s-taprop.adb:463 
(common in the c9 section).

Storage_Error in s-intman.adb:136

Stack overflow or erroneous memory access in a few tests. I got no 
pointer on where it was happening.

And still some timeouts, but I think they are related to the first 
assertion mentioned.

The "strange" (not that much) is that I have not touched any of these 
files. I will see where they are used in the compiler, how they are used 
and if the issues are related with how NetBSD handles some 
functions/standards... The s-tassta.adb problem I know is 100% related 
to POSIX Threads. Maybe the issue is in the POSIX Threads handling or 
maybe not.


I will keep on digging. Regards,
-- 
Fernando Oleo Blanco
https://irvise.xyz

  reply	other threads:[~2021-09-17 17:36 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 [this message]
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
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