This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SYS/BIOS 6.41.00.26 Bug report and Question for workaround

Guru 10570 points
Other Parts Discussed in Thread: SYSBIOS

Hello,

I found the Bug in Event_pend() API.

Question)
Is my above workaround correct?
If something wrong, could you advise me the correct workaround?

Background)

Since "elem" is local variable, function must not return before release of pointer.
However, return path exactly exist in the source code.
It might overwrites memory in other area.

C:\ti\bios_6_41_00_26\packages\ti\sysbios\knl\Event.c

I also checked Semaphore_pend(), Hwi_disable() and Task_disable().
They must be correct operation, because elem pointer to be set NULL before function returning.

In default source code, I could see sometimes RTOS goes to unexpected operation in Task.c Task_Delet() --> Task_Instance_finalize().
After my workarround, I could see it can operate expectedly.


Best regards, RY