Menu ▾ ▴

#78 Undeflow of uxPendedTicks

v1.0 (example)
closed-rejected
nobody
None
5
2014-01-08
2014-01-08
No

Discovered a situation where the value, uxPendedTicks in tasks.c, can underflow and hang the task switching.
Was running version 7.6.0 and using the STM M3 core port.
Added a patch at around line 1413 (following the decrement of uxPendedTicks) as follows:

if (0 != (uxPendedTicks & 0x10000000))
{
uxPendedTicks = 0; // MAD: THIS SHOULD NOT HAVE HAPPENED!!!!!
}

To be honest, I don't know what induced the conditions that could cause this underflow, but the above covered it up if nothing else.

Cheers,
KagnewKid.

Discussion

  • Richard Barry

    Richard Barry - 2014-01-08
    • status: open --> closed-rejected
     
  • Richard Barry

    Richard Barry - 2014-01-08

    Somehow my comment prior to closing this seems to have gone missing. Basically it said - thanks for reporting this, but please discuss the issue in the support forum before opening a bug report so we can talk through the scenario that led to the issue, and hopefully find the resolution. If the resolution turns out to be that a bug needs fixing, then we can re-open this ticket.

     

Log in to post a comment.