[Rtai] rt_returnx and rt_msgq_delete bug

Paolo Mantegazza mantegazza at aero.polimi.it
Wed Dec 9 17:26:21 CET 2009


Fernando Augusto wrote:
> Hi all,
> 
> This is my first e-mail to this list, although, I've been using rtai since begning 
> of 2009. Great to see the list fully active, different from some oher lists out there. Anyway, I just happen to run into two bugs. 
> 
> The first is on rt_msgq_delete (rt_tbx_delete), which always return error if 
> you never use rt_tbx_broadcast. A call to a rt_sem_delete (which was never 
> created rt_tbx_broadcast isn't called) make the function fail.
> 

OK, agreed.

> The second was a little tricky to find, but it happens when a call to rt_returnx is made and the task that call rt_rpc_whatever is no longer waiting (so rt_rpc_if, rt_rpc_timed and rt_rpc_until are all error prone).

Possible indeed, but the fix is simply adding the forgotten 
CHECK_SENDER_MAGIC, as it is in rt_return already.

paolo
> 
> Anyway I've searched the list and didn't find anything about these bugs, so solved them myself. I'm sending a patch (for rtai 3.7.1) atached that solves both. If there is any interest I can made the patch for head cvs version.
> 
> Best regards,
> Fernando Almeida.
> 
> 
> 
>       ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Rtai mailing list
> Rtai at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai




More information about the Rtai mailing list