OpenAADL / polyorb-hi-ada

PolyORB-HI/Ada runtime for Ocarina
http://www.openaadl.org
Other
9 stars 4 forks source link

Use of the secondary stack #8

Open maxime-esa opened 7 years ago

maxime-esa commented 7 years ago

It's impossible to use the current POHI-Ada mechanism to add drivers for the STM32F4 platform (building with GNAT2017).

One issue is that there are exceptions raised by the pragma Debug statements in polyorb_hi-thread_interrogators.adb. In particular the "+" operator redefined for String types, and used in such statements:

         pragma Debug (Put_Line
                       (Verbose,
                        CE
                        + ": Wait_Event: oldest unread event port = "
                        + Thread_Port_Images (P)));

But even in Release mode, stack overflows occur and crash the application.

yoogx commented 6 years ago

The issue openaadl/ocarina#133 addresses the case where we built a string in all cases, including when there is nothing to print