rt_task_create fails
I ported Xenomai 3.0.5 to Petalinux 2017.1. The supported tests run fine, but my code is failing. rt_task_create always fails with errno set to 17 (EEXIST). Doesn't matter what arguments I give it. Before I dissect this further, does anybody have any insight?
Sent from my iPhone
Quoted 1 line · On 07/25/2017 02:48 PM, [email protected] wrote:
I ported Xenomai 3.0.5 to Petalinux 2017.1. The supported tests run fine, but my code is failing.
rt_task_createalways fails with errno set to 17 (EEXIST).
Do you mean errno as the variable, or the function's return value?
Signature · 1 line
Philippe.
Am Tue, 25 Jul 2017 07:48:46 -0500
schrieb <[email protected]>:
Quoted 4 lines
I ported Xenomai 3.0.5 to Petalinux 2017.1. The supported tests run fine, but my code is failing.
rt_task_createalways fails with errno set to 17 (EEXIST). Doesn't matter what arguments I give it. Before I dissect this further, does anybody have any insight?
Your thread might not have a shadow yet and you might see a case where an EPERM is transformed into an EEXIST.
We did not discuss the transformation bug yet. But your solution might be to just shadow on EPERM and EEXIST, or before calling anything that needs a shadow.
http://www.xenomai.org/pipermail/xenomai/2017-July/037474.html
Henning
Quoted 5 lines
Sent from my iPhone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
Quoted 8 lines · Henning Schild
Am Tue, 25 Jul 2017 07:48:46 -0500
schrieb <[email protected]>:Quoted 4 lines
I ported Xenomai 3.0.5 to Petalinux 2017.1. The supported tests run fine, but my code is failing.
rt_task_createalways fails with errno set to 17 (EEXIST). Doesn't matter what arguments I give it. Before I dissect this further, does anybody have any insight?
Quoted 7 lines
Your thread might not have a shadow yet and you might see a case where an EPERM is transformed into an EEXIST.
We did not discuss the transformation bug yet. But your solution might be to just shadow on EPERM and EEXIST, or before calling anything that needs a shadow.http://www.xenomai.org/pipermail/xenomai/2017-July/037474.html
Testing EPERM is not robust, there are other cases triggering such error. pthread_kill(pthread_self(), 0) is a better way to check whether the current thread is known to Cobalt (__RT(pthread_kill(...)) if symbol wrapping is not in effect).
Signature · 1 line
Philippe.
I didn't create a shadow yet. None of the sample code I found did that. Is that required?
Sent from my iPhone
Quoted 26 lines · Henning Schild
Am Tue, 25 Jul 2017 07:48:46 -0500
schrieb <[email protected]>:Quoted 4 lines
I ported Xenomai 3.0.5 to Petalinux 2017.1. The supported tests run fine, but my code is failing.
rt_task_createalways fails with errno set to 17 (EEXIST). Doesn't matter what arguments I give it. Before I dissect this further, does anybody have any insight?Your thread might not have a shadow yet and you might see a case where an EPERM is transformed into an EEXIST.
We did not discuss the transformation bug yet. But your solution might be to just shadow on EPERM and EEXIST, or before calling anything that needs a shadow.http://www.xenomai.org/pipermail/xenomai/2017-July/037474.html
Henning
Quoted 5 lines
Sent from my iPhone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai