[Xenomai] Stack Overflow when changing Affinity

2018-01-09 Thread Henry Bausley
We have an application that gets run repeatedly that causes a stack overflow.  
The source is at the end of this mail.
We have tracked it down to changing the affinity.

We have used xenomai 2.6.5 and 2.6.4 and kernels 3.14.28 and 4.1.18 and seen 
identical results.  Our platform is an LS1021A NXP/Freescale ARM processor.  Is 
this a bug or are we incorrectly using affinity


ubuntu login: root
Password:
Last login: Thu Jan  1 00:01:45 UTC 1970 on ttyS0
Linux ubuntu 3.14.28-ipipe #37 SMP Mon Apr 18 14:06:56 PDT 2016 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@10.150.168.227:/opt/ppmac# cd 
testgpascii/
root@10.150.168.227:/opt/ppmac/testgpascii#
 ./testgpascii
testlib counter: 1
testlib counter: 2
testlib counter: 3
.
.
.
testlib counter: 502
testlib counter: 503
testlib counter: 504
Unable to handle kernel NULL pointer dereference at virtual address 02e0
pgd = bd3cdc00, hw pgd = bd3cdc00
[02e0] *pgd=a6b3e003, *pmd=a8176003, *pte=
Internal error: Oops: 207 [#1] SMP ARM
Modules linked in: rtpmac(O) atemsys(O) libppmac(O) libmath(O) ppmachw(O) r8169s
CPU: 0 PID: 4339 Comm: testlib Tainted: G   O 3.14.28-ipipe #37
task: bd1b8400 ti: a6b5 task.ti: a6b5
PC is at __lock_task_sighand+0x20/0x84
LR is at __lock_task_sighand+0x18/0x84
pc : [<8002c1d8>]lr : [<8002c1d0>]psr: 8013
sp : a6b51d10  ip : 0001  fp : a6b51d2c
r10:   r9 : 0002  r8 : 001c
r7 :   r6 : a6b51d34  r5 : a6b51d68  r4 : 
r3 : 806e6860  r2 : 3f8f  r1 : 8013  r0 : 0080
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 30c53c7d  Table: bd3cdc00  DAC: fffd
Process testlib (pid: 4339, stack limit = 0xa6b50240)
Stack: (0xa6b51d10 to 0xa6b52000)
1d00:  a6b51d68 001c 
1d20: a6b51d54 a6b51d30 8002c368 8002c1c4 a6b51d5c 0080 8077aabc 80778348
1d40:  000c a6b51d64 a6b51d58 8002c5f4 8002c348 a6b51e14 a6b51d68
1d60: 80093144 8002c5e4 001c     0002
1d80:        
1da0:        
1dc0:        
1de0:   0006 807669c0 80766a00  8076732c 807669c0
1e00: 807460c0 0024 a6b51e3c a6b51e18 8007a188 80093048 8007a0a8 807460c0
1e20: 80746080 806fb47c 040f 807564c0 a6b51e74 a6b51e40 8007798c 8007a0b4
1e40: a6b51e6c 806e8ba0 80077b4c 806e6860 807215c0 806f474c 807460c0 80746080
1e60:   a6b51e9c a6b51e78 80077a84 8007779c 1198 806e6860
1e80: bffd7a00 0088  898521ae a6b51eb4 a6b51ea0 80077e9c 80077a24
1ea0: 806fb790  a6b51f04 a6b51eb8 800c66c4 80077de0 a6b51ee4 
1ec0:   898521ae  000a  806fb790 a6b51fb0
1ee0: a6b5 7ecbfd28  8077a894 807460c0  a6b51f34 a6b51f08
1f00: 800f5fe0 800c6178 76dd8000 be41d340   0021 
1f20: a6b51fb0 0010 a6b51f5c a6b51f38 800952a0 800f5f50 bffd6860 807215c0
1f40: 806f474c 806e6860 807460c0 119c a6b51f6c a6b51f60 800795a0 800951ec
1f60: a6b51fac a6b51f70 80078390 80079550 4000 807460c0 806e8ba0 a6b51fb0
1f80: 800418a4 7ecbfd28 7ecbfd2c 76f0f000 000f0042 8000e6e8 a6b5 
1fa0:  a6b51fb0 8000e640 800782c8 0202022b 76dd8000  7ecbfd58
1fc0: 7ecbfd28 7ecbfd2c 76f0f000 000f0042 76dd8000  7ecbfd58 
1fe0: 76efe0c8 7ecbfd28 76ef3387 76f02fe4 2030 0202022b  
Backtrace:
[<8002c1b8>] (__lock_task_sighand) from [<8002c368>] (do_send_sig_info+0x2c/0x7)
 r7: r6:001c r5:a6b51d68 r4:
[<8002c33c>] (do_send_sig_info) from [<8002c5f4>] (send_sig_info+0x1c/0x28)
 r7:000c r6: r5:80778348 r4:8077aabc
[<8002c5d8>] (send_sig_info) from [<80093144>] (lostage_handler+0x108/0x154)
[<8009303c>] (lostage_handler) from [<8007a188>] (rthal_apc_handler+0xe0/0x160)
 r10:0024 r9:807460c0 r8:807669c0 r7:8076732c r6: r5:80766a00
 r4:807669c0
[<8007a0a8>] (rthal_apc_handler) from [<8007798c>] (__ipipe_do_sync_stage+0x1fc)
 r8:807564c0 r7:040f r6:806fb47c r5:80746080 r4:807460c0 r3:8007a0a8
[<80077790>] (__ipipe_do_sync_stage) from [<80077a84>] (__ipipe_do_sync_pipelin)
 r10: r9: r8:80746080 r7:807460c0 r6:806f474c r5:807215c0
 r4:806e6860
[<80077a18>] (__ipipe_do_sync_pipeline) from [<80077e9c>] (__ipipe_restore_head)
 r8:898521ae r7: r6:0088 r5:bffd7a00 r4:806e6860 r3:1198
[<80077dd4>] (__ipipe_restore_head) from [<800c66c4>

Re: [Xenomai] Xenomai community meeting 02.02.18

2018-01-09 Thread Greg Gallagher

I'll definitely attend via TelCo.

  Original Message  
From: henning.sch...@siemens.com
Sent: January 9, 2018 6:22 AM
To: r...@xenomai.org; jan.kis...@siemens.com; sance...@numalliance.com; 
j...@xenomai.org; s...@hilscher.com; g.m...@qmul.ac.uk; steven.see...@nasa.gov; 
l...@alaxarxa.net; g...@embeddedgreg.com; nolang...@gmail.com; 
dmit...@oss-tech.org; kendall.a...@3dsystems.com; w...@denx.de; 
lsore...@csclub.uwaterloo.ca; ggallaghe...@gmail.com; Xenomai@xenomai.org
Subject: Xenomai community meeting 02.02.18

Hi,

we have already talked about the "elephant in the room" and in that
thread we also talked about a face-to-face meeting of current and
future maintainers, contributers and users.

We have now agreed on a time and place for this meeting, and i want to
announce it and invite the whole community to it.

Where: somewhere in Brussels (details will follow)
   and remotely, TelCo link will be published
When: 02.02.18 13:00-18:00 (CET)
What: we do not have a clear agenda yet, but there is probably enough
  material to fill the timeslot
Attendees: Philippe Gerum, Jan Kiszka and myself will be there, you as
   well?

That meeting is colocated with https://fosdem.org/2018/ if you are
planning to attend in person, keep that in mind and maybe stay the
weekend. Jan and me will be around until Sunday afternoon, Phillippe
will leave Brussels on Saturday.

Sorry for the short notice, i still hope more people will attend in
person or at least in the TelCo. We will rent a coworking space for the
meeting, so the location depends on the number of participants.
If you want to participate please answer this mail before 01/24/18.

Looking forward to the meeting!
Henning
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] Xenomai community meeting 02.02.18

2018-01-09 Thread Henning Schild
Hi,

we have already talked about the "elephant in the room" and in that
thread we also talked about a face-to-face meeting of current and
future maintainers, contributers and users.

We have now agreed on a time and place for this meeting, and i want to
announce it and invite the whole community to it.

Where: somewhere in Brussels (details will follow)
   and remotely, TelCo link will be published
When: 02.02.18 13:00-18:00 (CET)
What: we do not have a clear agenda yet, but there is probably enough
  material to fill the timeslot
Attendees: Philippe Gerum, Jan Kiszka and myself will be there, you as
   well?

That meeting is colocated with https://fosdem.org/2018/ if you are
planning to attend in person, keep that in mind and maybe stay the
weekend. Jan and me will be around until Sunday afternoon, Phillippe
will leave Brussels on Saturday.

Sorry for the short notice, i still hope more people will attend in
person or at least in the TelCo. We will rent a coworking space for the
meeting, so the location depends on the number of participants.
If you want to participate please answer this mail before 01/24/18.

Looking forward to the meeting!
Henning

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


Re: [Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2018-01-09 Thread Leopold Palomo-Avellaneda
On 09/01/18 09:33, Simone M. Zucchi wrote:
> Hello everybody,
> I've looked up at
> https://xenomai.org/pipermail/xenomai/2017-November/037941.html and got the 
> same
> situation.
> I was wondering if something has moved since November about Debian and 3.0.6.
> Thanks,

Please,

check this repo

https://anonscm.debian.org/gitweb/?p=collab-maint/xenomai.git

that has the patches to solve this issue

Leopold

-- 
--
Linux User 152692 GPG: 05F4A7A949A2D9AA
Catalonia
-
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai


[Xenomai] Xenomai 3.0.6 doesn't build the patched kernel

2018-01-09 Thread Simone M. Zucchi

Hello everybody,
I've looked up at 
https://xenomai.org/pipermail/xenomai/2017-November/037941.html and got 
the same situation.
I was wondering if something has moved since November about Debian and 
3.0.6.

Thanks,

Simone
___
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai