<div dir="ltr"><div>Sebastian,<br><br>> then the system is broken.  This can be a general memory corruption 
(heap, stack, global > variables) or a bug in the exception processing.<br><br></div>Do you know where the rtems executive tests for and detects a return from a thread so i can investigate further ?<br><br><br><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 April 2013 10:39, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 04/03/2013 11:11 AM, Matthew J Fletcher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sebastian,<br>
<br>
The example from my previous post will drop into any of the samples, all you<br>
need is a time tick to test it.<br>
</blockquote>
<br></div><div class="im">
In another email you write:<br>
<br>
"A simple case as shown bellow does NOT fail, but a more complex example with 30+ tasks, 40+ timers etc does seem to reproducibly fail."<br>
<br></div>
I need a self contained test case that reproduces the problem to help you.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 > In which context do you look at executing->Start->entry_point?<br>
<br>
I have a breakpoint in _Internal_error_occurred() i then go up the callstack<br>
into _Thread_Handler.<br>
</blockquote>
<br></div>
Ok, if you end up here with the following task<div class="im"><br>
<br>
<br>
rtems_task test_wake_after(rtems_task_<u></u>argument ignored)<br>
{<br>
    for(;;)<br>
    {<br>
        rtems_task_wake_after(10);<br>
<br>
        /* application code happening on interval here */<br>
    }<br>
}<br>
<br></div>
then the system is broken.  This can be a general memory corruption (heap, stack, global variables) or a bug in the exception processing.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116" target="_blank">+49 89 189 47 41-16</a><br>
Fax     : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109" target="_blank">+49 89 189 47 41-09</a><br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br>
</div>