* [GNAT 3.15p] Unexpected exception in Protected_Entry_Call
@ 2006-03-13 14:12 Florian Weimer
2006-03-13 15:57 ` Jean-Pierre Rosen
0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2006-03-13 14:12 UTC (permalink / raw)
I'm seeing a strange exception raised by
System.Tasking.Protected_Objects.Operations.Protected_Entry_Call,
in this code:
if Ceiling_Violation then
-- Failed ceiling check
Initialization.Undefer_Abort (Self_ID);
raise Program_Error;
end if;
The exception is apparently triggered by a simple conditional entry
call which is cancelled. So far, I've only seen this issue on SMP
systems (more precisely: Linux/i386 and Linux/AMD64 (with 32-bit
userland) with NPTL).
The strange thing is that I don't use any fancy priorities, so I'm
surprised that the run-time system detects a ceiling violation.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GNAT 3.15p] Unexpected exception in Protected_Entry_Call
2006-03-13 14:12 [GNAT 3.15p] Unexpected exception in Protected_Entry_Call Florian Weimer
@ 2006-03-13 15:57 ` Jean-Pierre Rosen
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Pierre Rosen @ 2006-03-13 15:57 UTC (permalink / raw)
Florian Weimer a �crit :
> I'm seeing a strange exception raised by
> System.Tasking.Protected_Objects.Operations.Protected_Entry_Call,
> in this code:
>
> if Ceiling_Violation then
>
> -- Failed ceiling check
>
> Initialization.Undefer_Abort (Self_ID);
> raise Program_Error;
> end if;
>
> The exception is apparently triggered by a simple conditional entry
> call which is cancelled. So far, I've only seen this issue on SMP
> systems (more precisely: Linux/i386 and Linux/AMD64 (with 32-bit
> userland) with NPTL).
>
> The strange thing is that I don't use any fancy priorities, so I'm
> surprised that the run-time system detects a ceiling violation.
This rings an old bell...
I think that there was a bug in 3.15 around those lines, due to an
unitialized priority in some data structure. Did you try it with a
recent version of the compiler?
--
---------------------------------------------------------
J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-13 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-13 14:12 [GNAT 3.15p] Unexpected exception in Protected_Entry_Call Florian Weimer
2006-03-13 15:57 ` Jean-Pierre Rosen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox