From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Paolo Minazzi <Paolo.Minazzi@mitrol.it>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Sporadic problem : rt_task_sleep locked after debugging
Date: Thu, 07 Mar 2013 13:57:22 +0100 [thread overview]
Message-ID: <51388EB2.6000206@xenomai.org> (raw)
In-Reply-To: <51388DD2.2020805@mitrol.it>
On 03/07/2013 01:53 PM, Paolo Minazzi wrote:
> Il 07/03/2013 13.38, Gilles Chanteperdrix ha scritto:
>> On 03/07/2013 10:08 AM, Paolo Minazzi wrote:
>>
>>> Il 06/03/2013 13.36, Gilles Chanteperdrix ha scritto:
>>>> On 03/06/2013 01:31 PM, Paolo Minazzi wrote:
>>>>
>>>>> Il 06/03/2013 13.06, Gilles Chanteperdrix ha scritto:
>>>>>> On 03/06/2013 12:40 PM, Paolo Minazzi wrote:
>>>>>>
>>>>>>> I can generate the problem only debugging with gdb, otherwise there is
>>>>>>> no problem.
>>>>>>>
>>>>>>> Can you help me to undertand what happen ?
>>>>>>> Have you got an idea ? do you need other information ?
>>>>>> In case it is something which was fixed since Xenomai 2.5.6, could you
>>>>>> try Xenomai 2.6.2.1?
>>>>>>
>>>>> I have not done the port.
>>>>> This work is done by an external firm.
>>>>> I know well enough the linux kernel, but very very little the xenomai
>>>>> internals.
>>>> You can use Xenomai 2.6.2.1 with the same version of the I-pipe kernel,
>>>> and the I-pipe kernel is the only thing which needs to be ported.
>>>>
>>>>> I could try ... but it is not easy ....
>>>> It should be as easy as:
>>>> - keep your kernel patched with the I-pipe patch
>>>> - download the newest version of Xenomai, that is 2.6.2.1
>>>> - follow the installation instructions, here:
>>>> http://www.xenomai.org/documentation/xenomai-2.6/html/README.INSTALL/
>>>>
>>>>> The problem appear only using gdb .... any ideas ?
>>>> Could be the timer programmed for a too short delay, could be something
>>>> we already fixed, could be a new bug... Really, testing rapidly the last
>>>> version will make us win a lot of time if this is an issue already fixed.
>>>>
>>>>
>>> I Gilles,
>>> I have ported to 2.6.1 without problems.
>>> To 2.6.2 and 2.6.2.1 I need to add a gcc built-in. My compiler is
>>
>> pass --with-atomic-ops=ad-hoc to configure script, this will avoid the
>> builtins.
>>
>>> gcc-4.3.2 and does not have some built-in atomic function.
>>> After this I need to change the switch.S because my assembler cannot
>>
>> switch.S has been compiling for ages, way before gcc 4.4. Could you show
>> me the warning you get?
>>
>>> compile it. Maybe a newer compiler (gcc>= 4.4) could solve all these
>>> problems, but for me this is not a valid solution because other
>>> developers of us use a cygwin compiler. We should built a new cygwin
>>> compiler ... the libs will be different and so I will have problem with
>>> shared libraries .... too complex to solve a sporadic bug using gdb ....
>>> I can try to see the 2.6.1.
>>
>> The idea of asking you to try 2.6.2.1 is not to ask you to switch to it,
>> but simply to do a quick test to see if you can reproduce the issue.
>>
>>
>
> CC drivers/xenomai/testing/switchtest.o
> CC drivers/xenomai/testing/timerbench.o
> LD drivers/xenomai/testing/xeno_timerbench.o
> LD drivers/xenomai/testing/xeno_switchtest.o
> LD drivers/xenomai/testing/built-in.o
> LD drivers/xenomai/built-in.o
> LD drivers/built-in.o
> CC arch/arm/xenomai/hal.o
> AS arch/arm/xenomai/switch.o
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:
> Assembler messages:
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:156:
> Error: bad instruction `arm( stmia ip!,{r4-sl,fp,sp,lr})'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:157:
> Error: bad instruction `thumb( stmia ip!,{r4-sl,fp})'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:158:
> Error: bad instruction `thumb( str sp,[ip],#4)'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:159:
> Error: bad instruction `thumb( str lr,[ip],#4)'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:170:
> Error: bad instruction `arm( add r4,r2,#28)'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:171:
> Error: bad instruction `arm( ldmia r4,{r4-sl,fp,sp,pc})'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:172:
> Error: bad instruction `thumb( add ip,r2,#28)'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:173:
> Error: bad instruction `thumb( ldmia ip!,{r4-sl,fp})'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:174:
> Error: bad instruction `thumb( ldr sp,[ip],#4)'
> /home/axel/MarvellEnv/BuildLinux/linux-2.6.31.8/arch/arm/xenomai/switch.S:175:
> Error: bad instruction `thumb( ldr pc,[ip])'
> make[2]: *** [arch/arm/xenomai/switch.o] Error 1
> make[1]: *** [arch/arm/xenomai] Error 2
> make: *** [sub-make] Error 2
The issue is not the compiler, the issue is with the linux kernel you
use. Could you put me a source tarball on some ftp site?
Please try adding:
#define ARM(x...) x
#define THUMB(x...)
At the top of switch.S
--
Gilles.
next prev parent reply other threads:[~2013-03-07 12:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-06 11:40 [Xenomai] Sporadic problem : rt_task_sleep locked after debugging Paolo Minazzi
2013-03-06 12:06 ` Gilles Chanteperdrix
[not found] ` <5137370B.2050402@mitrol.it>
[not found] ` <51373841.70704@xenomai.org>
[not found] ` <51385910.80203@mitrol.it>
[not found] ` <51388A3A.2090004@xenomai.org>
2013-03-07 12:53 ` Paolo Minazzi
2013-03-07 12:57 ` Gilles Chanteperdrix [this message]
[not found] ` <51389940.1090100@mitrol.it>
2013-03-08 6:17 ` Gilles Chanteperdrix
2013-03-08 6:24 ` Gilles Chanteperdrix
2013-03-08 12:50 ` Paolo Minazzi
2013-03-08 20:03 ` Gilles Chanteperdrix
2013-03-08 20:13 ` Gilles Chanteperdrix
[not found] ` <513D9A17.7020204@mitrol.it>
2013-03-11 13:07 ` Gilles Chanteperdrix
2013-03-11 13:46 ` Paolo Minazzi
2013-03-11 20:26 ` Gilles Chanteperdrix
2013-03-12 10:19 ` Paolo Minazzi
2013-03-12 12:19 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51388EB2.6000206@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Paolo.Minazzi@mitrol.it \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.