All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Re: Re: Antwort: Re: [Xenomai-help] pSOS skin questions
@ 2006-09-20 13:21 Thomas Necker
  2006-09-20 13:54 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Necker @ 2006-09-20 13:21 UTC (permalink / raw)
  To: xenomai

>> 1) The program segfaults sometimes. It's not predictable whether
>>    it'll happen or not. Starting the same program 10 times may
>>    result in some segfaults and some complete runs. Adding a printf
>>    for error checking can massively alter the crash likelyhood. When
>>    it crashes, its always the same picture: A pSOS event is sent
>>    from one task to another. The receiveing task is released from its
>>    blocking ev_receive and continues. However, if this now running task
>>    calls psos_current_task() it gets the id of the task the event has
>>    been sent from! Somehow something seems to be completely mixed up
>>    in the nucleus. After two days of search I'm running out of ideas
>>    what to look for.
>
>Try raising the size of the task stacks. If printf() increases the
>occurences of faults, then it's likely related to a stack overflow.
>
>>  I'd be thankful for some ideas where to place
>>    some hooks to identify the problem. Things get complicated because
>>    program changes (I tried to reduce the problem to a simple example)
>>    ususally make the problem go away and debugging hardly works, see 2)

I raised the stack to 40k each task, which is ten times as much as under
original pSOS - still segfaults. Also, printfs rather *reduce* the 
likelyhood
of a crash - maybe because of timing changes. I don't think, I'm going to 
make
progress without understanding some of the Xenomai internals. Where is the
best place when I want to trace the "firing" of an event?

>The UVM has some known issues when traced over GDB, which do not exist
>when running over a direct call interface, like POSIX, VxWorks or the
>native skin. Ok, this is not going to help you since such interface is
>not available yet for the pSOS skin, but that's a known issue. I'll try
>to have a look when time allows.

I already wondered that UVM support is "deprecated" according to the 
config file.
What are the plans here: have a pSOS direct call interface, get rid of 
pSOS
support or keep the UVM but unmaintained?

Thomas



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

end of thread, other threads:[~2006-09-24 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 13:21 Re: Re: Antwort: Re: [Xenomai-help] pSOS skin questions Thomas Necker
2006-09-20 13:54 ` Philippe Gerum
2006-09-20 13:58   ` Philippe Gerum
2006-09-24 18:28   ` Philippe Gerum

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.