[RTEMS Project] #2696: Unpredictable errno value returned by sem_wait() in case of semaphore deletion
RTEMS trac
trac at rtems.org
Tue Apr 19 13:10:50 UTC 2016
#2696: Unpredictable errno value returned by sem_wait() in case of semaphore
deletion
-----------------------------+------------------------------
Reporter: sebastian.huber | Owner: sebastian.huber
Type: defect | Status: new
Priority: normal | Milestone: 4.12
Component: General | Version: 4.10
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by joel.sherrill):
I went back to the 4.8 branch and the translation was a switch in
semaphorewaitsupp.c which covered all cases. Also the error returned was
not -1 but CORE_SEMAPHORE_WAS_DELETED.
Somewhere along the line, the code was changed to a table lookup and range
checking was moved to an ifdef DEBUG.
I have no idea why the status returned is no longer
CORE_SEMAPHORE_WAS_DELETED which would likely not result in an out of
range access.
Did the debug check catch this error? If not, then the debug check is
insufficient.
--
Ticket URL: <http://devel.rtems.org/ticket/2696#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list