<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 23, 2020 at 11:54 AM Richi Dubey <<a href="mailto:richidubey@gmail.com">richidubey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the advice.<div><br></div><div>I feel something is going wrong when we're trying to delete a suspended task because maybe I'm not handling the suspension/deletion of tasks properly in my code. Do you think this might be true for my <a href="https://github.com/richidubey/rtems/blob/Release-Strong-APA/cpukit/score/src/schedulerstrongapa.c" target="_blank">code</a>?  </div></div></blockquote><div><br></div><div>That's a specific scheduler action and combination of object states. It is quite possible something is not processed correctly by your scheduler.  Deleting a suspended thread would not require any actions on the Ready set of threads, for example. </div><div><br></div><div>--joel</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 23, 2020 at 12:41 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This isn't a proper solution but a debug technique. When stepping </div><div>and running result in different behavior, it is sometimes useful to</div><div>run to a specific point and look at data structures for anomalies.</div><div><br></div><div>Since TA1 never prints, I wonder if something went wrong with the</div><div>data structures before INIT deletes itself at the bottom.</div><div><br></div><div>--joel</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 22, 2020 at 12:40 PM Richi Dubey <<a href="mailto:richidubey@gmail.com" target="_blank">richidubey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I've been trying to debug why sp02 keeps failing on Strong APA scheduler and it's hard for me to debug because there are different points at which the same program breaks on gdb even though this is a single processor test. I have attached the different error logs. In error.txt, we can see that the execution fails somewhere in _Context_Switch while it is not the case when I step inside in case II, and other random things like these keep happening. I'd appreciate it if you direct my thoughts.</div><div><br></div><div>I'm testing the source over <a href="https://lists.rtems.org/pipermail/devel/2020-August/061661.html" target="_blank">this</a> and <a href="https://lists.rtems.org/pipermail/devel/2020-September/061832.html" target="_blank">this</a> patch.</div><div><br></div><div>Thanks,</div><div>Richi.</div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>
</blockquote></div>
</blockquote></div></div>