Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-16 Thread Philippe Gerum
On 03/16/2018 10:49 AM, Pintu Kumar wrote: > OK Thank you so much :) > Fixed by this commit from the -stable branch. http://git.xenomai.org/xenomai-3.git/commit/?id=945c7dbf7c5ae19755a26b69d00f714176c87c4a > > > I think this tests works on Xenomai 2.6 (some one else tested long > back. Unfortun

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-16 Thread Pintu Kumar
OK Thank you so much :) I think this tests works on Xenomai 2.6 (some one else tested long back. Unfortunately I don't have 2.6 setup now). I wanted to help you in fixing this bug from Xenomai side and contribute. It will be a tiny help to start contributing to Xenomai kernel. Is it possible to

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-16 Thread Philippe Gerum
On 03/15/2018 05:47 PM, Pintu Kumar wrote: > Hi, > > Please find the complete program below: Thanks. This is a Xenomai bug, most likely in libcopperplate. What your test app tries to do is legit. The bug also triggers in native mode (Mercury), so this is a generic issue. I'll follow up on this.

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
Hi, Please find the complete program below: - $ cat bind_test.c #include #include #include #include #define ONE_SECOND 10ULL #define COND_NAME "MyTestCond" static void bind_task(void *none) { int err;

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Philippe Gerum
On 03/15/2018 12:07 PM, Pintu Kumar wrote: > On Thu, Mar 15, 2018 at 3:29 PM, Philippe Gerum wrote: >> On 03/15/2018 10:51 AM, Pintu Kumar wrote: >>> On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: On 03/15/2018 09:24 AM, Pintu Kumar wrote: > Hi All, > > I am trying to tes

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
On Thu, Mar 15, 2018 at 3:29 PM, Philippe Gerum wrote: > On 03/15/2018 10:51 AM, Pintu Kumar wrote: >> On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: >>> On 03/15/2018 09:24 AM, Pintu Kumar wrote: Hi All, I am trying to test rt_cond_bind() and rt_task_unblock() API with a >

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Philippe Gerum
On 03/15/2018 10:51 AM, Pintu Kumar wrote: > On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: >> On 03/15/2018 09:24 AM, Pintu Kumar wrote: >>> Hi All, >>> >>> I am trying to test rt_cond_bind() and rt_task_unblock() API with a >>> simple thread program using the Xenomai native skin, and wit

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: > On 03/15/2018 09:24 AM, Pintu Kumar wrote: >> Hi All, >> >> I am trying to test rt_cond_bind() and rt_task_unblock() API with a >> simple thread program using the Xenomai native skin, and with xenomai >> 3.0.6. >> >> But, during call to rt_t

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Philippe Gerum
On 03/15/2018 09:24 AM, Pintu Kumar wrote: > Hi All, > > I am trying to test rt_cond_bind() and rt_task_unblock() API with a > simple thread program using the Xenomai native skin, and with xenomai > 3.0.6. > > But, during call to rt_task_unblock(&task1) from the main function, I > get the segment

[Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
Hi All, I am trying to test rt_cond_bind() and rt_task_unblock() API with a simple thread program using the Xenomai native skin, and with xenomai 3.0.6. But, during call to rt_task_unblock(&task1) from the main function, I get the segmentation fault. # ./cond_bin_test PINTU: Inside bind_test tas