All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] rt_task crash kernel
@ 2007-10-03 13:18 Patrick
  2007-10-03 13:42 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 18+ messages in thread
From: Patrick @ 2007-10-03 13:18 UTC (permalink / raw)
  To: xenomai

Ok, some messages occur on the console with latency.

For information I have successfully installed and used Xenomai 2.3.1 with
2.6.15 kernel on the same board. 

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mercredi, 3. octobre 2007 14:19
À : Patrick
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] rt_task crash kernel

On 10/3/07, Patrick <kpa_info@domain.hid> wrote:
> It's not possible to test this case because adding printk in tick handler
> saturates the console with messages and it's impossible to work and the
> target boot very, very slow.

You can do something like:

static int ticks;

if (!(++ticks % 1000))
    printk("%d ticks\n", ticks);

Which will only print something once every 1000 ticks.

>
> -----Message d'origine-----
> De: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
> Envoyé: mercredi, 3. octobre 2007 10:45
> À: Patrick
> Cc: xenomai@xenomai.org
> Objet: Re: [Xenomai-help] rt_task crash kernel
>
> On 10/3/07, Patrick <kpa_info@domain.hid> wrote:
> > Yes, the timer work !
>
> Even when the system seems to be locked up when running latency ?
>
> --
>                                                Gilles Chanteperdrix
>
>


-- 
                                               Gilles Chanteperdrix



^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [Xenomai-help] rt_task crash kernel
@ 2007-10-02 11:23 Patrick
  0 siblings, 0 replies; 18+ messages in thread
From: Patrick @ 2007-10-02 11:23 UTC (permalink / raw)
  To: xenomai



-----Message d'origine-----
De : Patrick [mailto:kpa_info@domain.hid
Envoyé : mardi, 2. octobre 2007 12:46
À : 'Gilles Chanteperdrix'
Objet : RE: [Xenomai-help] rt_task crash kernel

Yes, I have tried with latency -p 1000 and the issues is the same.

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mardi, 2. octobre 2007 11:46
À : Patrick
Cc : xenomai-core
Objet : Re: [Xenomai-help] rt_task crash kernel

On 10/2/07, Patrick <kpa_info@domain.hid> wrote:
>
>
>
>
> Yes, I have tried with bin/latency user space application and the system
> crashes.

latency appears to crash on ARM when launched with the default 100us
period, the system is just too busy. Do you observe the crash with a 1
ms period ?

-- 
                                               Gilles Chanteperdrix



^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [Xenomai-core] crashing 2.6.22
@ 2007-10-01 13:32 Labozzetta, Saverio
  2007-10-02  9:04 ` [Xenomai-help] rt_task crash kernel Patrick
  0 siblings, 1 reply; 18+ messages in thread
From: Labozzetta, Saverio @ 2007-10-01 13:32 UTC (permalink / raw)
  To: Labozzetta, Saverio, Jan Kiszka, Gilles Chanteperdrix; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 5824 bytes --]





-----Original Message-----
From: xenomai-core-bounces@domain.hid on behalf of Labozzetta, Saverio
Sent: Mon 2007-10-01 2:42 PM
To: Jan Kiszka; Gilles Chanteperdrix
Cc: xenomai-core
Subject: Re: [Xenomai-core] crashing 2.6.22
 




>>-----Original Message-----
>>From: xenomai-core-bounces@domain.hid on behalf of Jan Kiszka
>>Sent: Mon 2007-10-01 11:32 AM
>>To: Gilles Chanteperdrix
>>Cc: xenomai-core
>Subject: Re: [Xenomai-core] crashing 2.6.22
>> 
>>Gilles Chanteperdrix wrote:
>>> On 10/1/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>>>> Gilles Chanteperdrix wrote:
>>>>> On 9/30/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>>>>>> Philippe Gerum wrote:
>>>>>>> On Sun, 2007-09-30 at 13:42 +0200, Jan Kiszka wrote:
>>>>>>>> Jan Kiszka wrote:
>>>>>>>>> Philippe Gerum wrote:
>>>>>>>>>> On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:
>>>>>>>> ...
>>>>>>>>>>>  And a third
>>>>>>>>>>> one only gives me "Detected illicit call from domain Xenomai" before the
>>>>>>>>>>> box reboots. :(
>>>>>>>>>> Grmff... Do you run with your smp_processor_id() instrumentation in?
>>>>>>>>> Yes, but I suspect this is just a symptom of some severe memory
>>>>>>>>> corruption that (also?) hits I-pipe data structures. I just put in some
>>>>>>>>> different instrumentation, and that warning is gone, the box just hangs
>>>>>>>>> hard at a different point. Very unfriendly.
>>>>>>>> Hah! Got some crash log by hacking a raw printk-to-uart:
>>>>>>>>
>>>>>>>> [...]
>>>>>>>> <6>Xenomai: starting RTDM services.
>>>>>>>> <6>NET: Registered protocol family 10
>>>>>>>> <6>lo: Disabled Privacy Extensions
>>>>>>>> <6>ADDRCONF(NETDEV_UP): eth0: link is not ready
>>>>>>>> <3>I-pipe: Detected illicit call from domain 'Xenomai'
>>>>>>>> <3>        into a service reserved for domain 'Linux' and below.
>>>>>>>>        f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
>>>>>>>>        00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
>>>>>>>>        c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
>>>>>>>> Call Trace:
>>>>>>>>  [<c010520f>] show_trace_log_lvl+0x1f/0x40
>>>>>>>>  [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
>>>>>>>>  [<c0105fc3>] show_stack+0x33/0x40
>>>>>>>>  [<c01479cb>] ipipe_check_context+0x7b/0x90
>>>>>>>>  [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
>>>>>>>>  [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
>>>>>>>>  [<c0131e02>] notify_die+0x32/0x40
>>>>>>>>  [<c0105d29>] do_invalid_op+0x59/0xa0
>>>>>>>>  [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
>>>>>>>>  [<c02dfaeb>] error_code+0x6f/0x7c
>>>>>>> Wow. Why that?
>>>>>>>
>>>>>>>>  [<c0111d13>] __ipipe_handle_exception+0x83/0x144
>>>>>>>>  [<c02dfaeb>] error_code+0x6f/0x7c
>>>>>>> And this? We should not get any exception over an IPI3 handler. I guess
>>>>>>> the double fault may be explained by this root cause.
>>>>>>>
>>>>>>>>  [<c01117df>] __ipipe_handle_irq+0x4f/0x140
>>>>>>>>  [<c0104c5e>] ipipe_ipi3+0x26/0x40
>>>>>>> Our LAPIC timer vector. Are you running full modular or statically btw?
>>>>>> Fully modular. Compiling the nucleus in makes the lock-up move to
>>>>>> another, once again invisible spot.
>>>>>
>>>>>> I nailed down the fault address in the scenario above. It's in the
>>>>>> nucleus module, at the first byte of xntimer_tick_aperiodic. Are we
>>>>>> loosing module text pages over the time? This functions must have been
>>>>>> executed before as the timer was armed while I collected the
>>>>>> /proc/modules and then triggered the crash.
>>>>> There is a pending issue about vmalloced areas, which I completely forgot:
>>>>> https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html
>>>>>
>>>> Would this explain my problems which are already visible without any
>>>> Xenomai application running (and also without unloading the modules
>>>> again, to answer Philippe's question)? Hell, I would love to find the
>>>> reason here, debugging this stuff stopped being fun a long time ago...
>>> 
>>> It would explain bugs involving a race between task creation and
>>> vmalloc/ioremap. But the bug would only happen with Xenomai tasks
>>> running,
>>
>>I don't need to start any Xenomai task to trigger the problem.
>>
>>> otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.
>>
>>I guess module text pages are not mapped lazily, otherwise quite a lot 
>>of things would have fallen apart much earlier, right?
>
> AFAIK Once inserted module text pages are part of the kernel, so have
>to be reliably ready as long as the servicies offered are registred,
>is the insertion function which allocates memory, access it to write 
>the text of the module and make it part of the kernel, so is keep in 
>main memory.
>

I've been silly: the pages are directly allocated in kernel space (GFP_KERNEL),
and some of their addresses are pointed by the function offered in some
kernel tables...

BTW: sorry about the following nasty copiright abuse patch, is automatically
attached to any mail I send outside, an sorry also for the filthy email client
I use, but I've not found other ways since they put exchange on... 

>  Saverio
>
>>
>>Jan
>>
>>-- 
>>Siemens AG, Corporate Technology, CT SE 2
>>Corporate Competence Center Embedded Linux
>>




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.

[-- Attachment #2: Type: text/html, Size: 8834 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-10-05  8:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2ff1a98a0710020529y44e79653id63ad9cf0419ceb9@domain.hid>
2007-10-03  6:58 ` [Xenomai-help] rt_task crash kernel Patrick
2007-10-03  7:22   ` Gilles Chanteperdrix
     [not found]     ` <200710030752.l937qGqj004222@domain.hid>
2007-10-03  8:14       ` Gilles Chanteperdrix
2007-10-03  8:33     ` Patrick
2007-10-03  8:44       ` Gilles Chanteperdrix
2007-10-03 11:19         ` Patrick
2007-10-03 12:18           ` Gilles Chanteperdrix
2007-10-03 13:18 Patrick
2007-10-03 13:42 ` Gilles Chanteperdrix
2007-10-03 15:04   ` Patrick
2007-10-03 15:12     ` Gilles Chanteperdrix
2007-10-04  8:56       ` Patrick
2007-10-04 19:23         ` Gilles Chanteperdrix
2007-10-05  7:56           ` Patrick
2007-10-05  8:24             ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-10-02 11:23 Patrick
2007-10-01 13:32 [Xenomai-core] crashing 2.6.22 Labozzetta, Saverio
2007-10-02  9:04 ` [Xenomai-help] rt_task crash kernel Patrick
2007-10-02  9:11   ` Gilles Chanteperdrix

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.