[Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
Hello, I found recently that large application uses to segfault before fork() leaves its glibc wrapper. I included here a test suite which can be easily used to verify what goes wrong. It may be necessary to adjust makefile to compile the code. So, the console is missing output from line #89. We

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 14:33 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Hello, I found recently that large application uses to segfault before fork() leaves its glibc wrapper. I included here a test suite which can be easily used to verify what goes wrong

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 14:33 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Hello, I found recently that large application uses to segfault before fork() leaves its glibc wrapper. I included here a test suite which can be easily used to verify what goes wrong

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 14:40 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Tue, 2010-08-17 at 14:33 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Hello, I found recently that large application uses to segfault before fork() leaves its glibc

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 15:06 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Tue, 2010-08-17 at 14:40 +0200, Gilles Chanteperdrix wrote: No. As witnessed by the message: ./xeno-shmem-fork: relocation error: ./xeno-shmem-fork: symbol getpid, version GLIBC_2.0 not defined

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 15:27 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Tue, 2010-08-17 at 15:06 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Tue, 2010-08-17 at 14:40 +0200, Gilles Chanteperdrix wrote: No. As witnessed by the message: ./xeno

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
On Tue, 2010-08-17 at 16:08 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Tue, 2010-08-17 at 15:27 +0200, Gilles Chanteperdrix wrote: What are the contents of this linker script? I did not ask to compare gcc -print-file-name=libc.so with the same file on the target. I

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-17 Thread Krzysztof Błaszkowski
Hi Philippe, On Tue, 2010-08-17 at 16:41 +0200, Philippe Gerum wrote: On Tue, 2010-08-17 at 14:25 +0200, Krzysztof Błaszkowski wrote: Hello, I found recently that large application uses to segfault before fork() leaves its glibc wrapper. I included here a test suite which can

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 00:59 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Hello, I found recently that large application uses to segfault before fork() leaves its glibc wrapper. I included here a test suite which can be easily used to verify what goes wrong

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 13:00 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 00:59 +0200, Gilles Chanteperdrix wrote: - I have not really checked your user-space compilation flags, I am using xeno-config to get the correct ones. xeno-config --skin

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 14:00 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 13:00 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 00:59 +0200, Gilles Chanteperdrix wrote: - I have not really checked your user

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 14:37 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: rather i use native clean x86 environment (on e.g. x86_64) I do this all the time, and never had any problem. i had lots with header files mainly. Well, the glibc and Xenomai header files

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 15:39 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 14:37 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: rather i use native clean x86 environment (on e.g. x86_64) I do this all the time, and never had any

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 16:10 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: yes. i downloaded this config a while ago. need to setup new kernel 2.6.31.1 with xenomai. is 2.5.4 suitable for this test ? should i also use adeos-*.31.1-*2.4-09 patch ? See the versions I

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:10 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: yes. i downloaded this config a while ago. need to setup new kernel 2.6.31.1 with xenomai. is 2.5.4

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:10 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: yes. i downloaded this config a while ago. need to setup new kernel 2.6.31.1 with xenomai. is 2.5.4

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 17:13 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:10 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: yes. i

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 17:43 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 17:13 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 17:43 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 17:13 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-18 Thread Krzysztof Błaszkowski
On Wed, 2010-08-18 at 17:43 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 17:13 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed, 2010-08-18 at 16:30 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: On Wed

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-20 Thread Krzysztof Błaszkowski
Yes, now if you find the culprit option, it would be nice to report here so that we can fix the I-pipe patch. I do know it still. All i have are two configs. One which does not work and one working. I have tried so far breaking working one and also fixing broken. Both attempts have been

Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()

2010-08-20 Thread Krzysztof Błaszkowski
On Fri, 2010-08-20 at 11:54 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Yes, now if you find the culprit option, it would be nice to report here so that we can fix the I-pipe patch. I do know it still. All i have are two configs. One which does not work and one

[Xenomai-core] rt timer jitter

2010-08-20 Thread Krzysztof Błaszkowski
Do you have any idea about reducing rt timer jitter ? I experience annoyingly big jitter in a thread which is supposed to run at 400us (i reckon this is nothing extra demanding from atom @1.6G) the thread's loop looks like: { function1() ..2() ..3() ..4() rt_task_wait_period() } (^yet

Re: [Xenomai-core] rt timer jitter

2010-08-20 Thread Krzysztof Błaszkowski
On Fri, 2010-08-20 at 18:01 +0200, Gilles Chanteperdrix wrote: Krzysztof Błaszkowski wrote: Can i do something with this ? Do you observe the same latencies with the latency test? this test does not produce reliable results except some hints. e.g. min. latency shifts about 1.5usec when i

Re: [Xenomai-core] rt timer jitter

2010-08-20 Thread Krzysztof Błaszkowski
On Fri, 2010-08-20 at 18:06 +0200, Philippe Gerum wrote: On Fri, 2010-08-20 at 17:55 +0200, Krzysztof Błaszkowski wrote: Do you have any idea about reducing rt timer jitter ? I experience annoyingly big jitter in a thread which is supposed to run at 400us (i reckon this is nothing extra