All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
@ 2007-07-31 16:11 Jan Kiszka
  2007-07-31 16:26 ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2007-07-31 16:11 UTC (permalink / raw)
  To: xenomai-core

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

Already a plain command sequence causes this problem:

# modprobe xeno_nucleus
# rmmod xeno_nucleus
rmmod: xeno_nucleus: Resource temporarily unavailable

Can anyone confirm? This is unfortunately only a secondary issue that I
came across while hunting more severe problems of my colleagues, ie. I
don't have the time to look into detail ATM.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:11 [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded Jan Kiszka
@ 2007-07-31 16:26 ` Philippe Gerum
  2007-07-31 16:31   ` Jan Kiszka
  2007-07-31 18:51   ` Jan Kiszka
  0 siblings, 2 replies; 12+ messages in thread
From: Philippe Gerum @ 2007-07-31 16:26 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> Already a plain command sequence causes this problem:
> 
> # modprobe xeno_nucleus
> # rmmod xeno_nucleus
> rmmod: xeno_nucleus: Resource temporarily unavailable
> 
> Can anyone confirm?

Cannot reproduce it here. However, I got another report saying that
/proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
either, though, but it does happen on the other site.

>  This is unfortunately only a secondary issue that I
> came across while hunting more severe problems of my colleagues, ie. I
> don't have the time to look into detail ATM.
> 
> Jan
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
-- 
Philippe.




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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:26 ` Philippe Gerum
@ 2007-07-31 16:31   ` Jan Kiszka
  2007-07-31 16:47     ` Philippe Gerum
  2007-07-31 18:51   ` Jan Kiszka
  1 sibling, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2007-07-31 16:31 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

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

Philippe Gerum wrote:
> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
>> Already a plain command sequence causes this problem:
>>
>> # modprobe xeno_nucleus
>> # rmmod xeno_nucleus
>> rmmod: xeno_nucleus: Resource temporarily unavailable
>>
>> Can anyone confirm?
> 
> Cannot reproduce it here. However, I got another report saying that
> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> either, though, but it does happen on the other site.

OK, will look into it again once I found what breaks
xnintr_edge_shirq_handler() here (2.4 and 2.3). Damn it.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:31   ` Jan Kiszka
@ 2007-07-31 16:47     ` Philippe Gerum
  2007-07-31 16:51       ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Philippe Gerum @ 2007-07-31 16:47 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> >> Already a plain command sequence causes this problem:
> >>
> >> # modprobe xeno_nucleus
> >> # rmmod xeno_nucleus
> >> rmmod: xeno_nucleus: Resource temporarily unavailable
> >>
> >> Can anyone confirm?
> > 
> > Cannot reproduce it here. However, I got another report saying that
> > /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here

Correction: it would return -EAGAIN, so maybe the status leaks when a
restart condition has been encountered in the stat loop. Seems minor,
compared to ENOMEM.

> > either, though, but it does happen on the other site.
> 
> OK, will look into it again once I found what breaks
> xnintr_edge_shirq_handler() here (2.4 and 2.3). Damn it.
> 

Did somebody tell you about a guy named Sisyphus, already? :o>

> Jan
> 
-- 
Philippe.




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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:47     ` Philippe Gerum
@ 2007-07-31 16:51       ` Philippe Gerum
  2007-07-31 16:56         ` Jan Kiszka
  0 siblings, 1 reply; 12+ messages in thread
From: Philippe Gerum @ 2007-07-31 16:51 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> > Philippe Gerum wrote:
> > > On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> > >> Already a plain command sequence causes this problem:
> > >>
> > >> # modprobe xeno_nucleus
> > >> # rmmod xeno_nucleus
> > >> rmmod: xeno_nucleus: Resource temporarily unavailable
> > >>
> > >> Can anyone confirm?
> > > 
> > > Cannot reproduce it here. However, I got another report saying that
> > > /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> 
> Correction: it would return -EAGAIN, so maybe the status leaks when a
> restart condition has been encountered in the stat loop. Seems minor,
> compared to ENOMEM.
> 

Btw, you will likely need a large number of threads to make this happen
(~40), at least this is the case for the reporting site.
 
-- 
Philippe.




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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:51       ` Philippe Gerum
@ 2007-07-31 16:56         ` Jan Kiszka
  2007-07-31 17:16           ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2007-07-31 16:56 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

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

Philippe Gerum wrote:
> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
>>> Philippe Gerum wrote:
>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
>>>>> Already a plain command sequence causes this problem:
>>>>>
>>>>> # modprobe xeno_nucleus
>>>>> # rmmod xeno_nucleus
>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
>>>>>
>>>>> Can anyone confirm?
>>>> Cannot reproduce it here. However, I got another report saying that
>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
>> Correction: it would return -EAGAIN, so maybe the status leaks when a
>> restart condition has been encountered in the stat loop. Seems minor,
>> compared to ENOMEM.
>>
> 
> Btw, you will likely need a large number of threads to make this happen
> (~40), at least this is the case for the reporting site.
>  

I think you need a large number of _fluctuating_ threads, as EAGAIN
should only be returned if something (thread count, IRQ assignments)
changes while dumping the list. But I would have to re-check this thing
as well. I assume there is no hope for a test case then?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:56         ` Jan Kiszka
@ 2007-07-31 17:16           ` Philippe Gerum
  2007-08-01  9:10             ` Jan Kiszka
  0 siblings, 1 reply; 12+ messages in thread
From: Philippe Gerum @ 2007-07-31 17:16 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
> >> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> >>> Philippe Gerum wrote:
> >>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> >>>>> Already a plain command sequence causes this problem:
> >>>>>
> >>>>> # modprobe xeno_nucleus
> >>>>> # rmmod xeno_nucleus
> >>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
> >>>>>
> >>>>> Can anyone confirm?
> >>>> Cannot reproduce it here. However, I got another report saying that
> >>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> >> Correction: it would return -EAGAIN, so maybe the status leaks when a
> >> restart condition has been encountered in the stat loop. Seems minor,
> >> compared to ENOMEM.
> >>
> > 
> > Btw, you will likely need a large number of threads to make this happen
> > (~40), at least this is the case for the reporting site.
> >  
> 
> I think you need a large number of _fluctuating_ threads, as EAGAIN
> should only be returned if something (thread count, IRQ assignments)
> changes while dumping the list.

This was implied.

>  But I would have to re-check this thing
> as well. I assume there is no hope for a test case then?
> 

Nope.

> Jan
> 
-- 
Philippe.




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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 16:26 ` Philippe Gerum
  2007-07-31 16:31   ` Jan Kiszka
@ 2007-07-31 18:51   ` Jan Kiszka
  1 sibling, 0 replies; 12+ messages in thread
From: Jan Kiszka @ 2007-07-31 18:51 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

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

Philippe Gerum wrote:
> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
>> Already a plain command sequence causes this problem:
>>
>> # modprobe xeno_nucleus
>> # rmmod xeno_nucleus
>> rmmod: xeno_nucleus: Resource temporarily unavailable
>>
>> Can anyone confirm?
> 
> Cannot reproduce it here. However, I got another report saying that
> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> either, though, but it does happen on the other site.

False alarm: Some forgotten Linux program was waiting on /dev/rtp
devices. Everything's unloading fine again after killing it.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-07-31 17:16           ` Philippe Gerum
@ 2007-08-01  9:10             ` Jan Kiszka
  2007-08-01  9:21               ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2007-08-01  9:10 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

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

Philippe Gerum wrote:
> On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
>> Philippe Gerum wrote:
>>> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
>>>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
>>>>> Philippe Gerum wrote:
>>>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
>>>>>>> Already a plain command sequence causes this problem:
>>>>>>>
>>>>>>> # modprobe xeno_nucleus
>>>>>>> # rmmod xeno_nucleus
>>>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
>>>>>>>
>>>>>>> Can anyone confirm?
>>>>>> Cannot reproduce it here. However, I got another report saying that
>>>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
>>>> Correction: it would return -EAGAIN, so maybe the status leaks when a
>>>> restart condition has been encountered in the stat loop. Seems minor,
>>>> compared to ENOMEM.
>>>>
>>> Btw, you will likely need a large number of threads to make this happen
>>> (~40), at least this is the case for the reporting site.
>>>  
>> I think you need a large number of _fluctuating_ threads, as EAGAIN
>> should only be returned if something (thread count, IRQ assignments)
>> changes while dumping the list.
> 
> This was implied.
> 
>>  But I would have to re-check this thing
>> as well. I assume there is no hope for a test case then?
>>
> 
> Nope.

The whole issue remains mysterious: None of the Xenomai handlers
involved in the output of "sched" should be able to return EAGAIN. Only
if seq_open returned such error (which it shouldn't according to the
kernel code), this code would be imaginable.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-08-01  9:10             ` Jan Kiszka
@ 2007-08-01  9:21               ` Philippe Gerum
  2007-08-01  9:26                 ` Jan Kiszka
  0 siblings, 1 reply; 12+ messages in thread
From: Philippe Gerum @ 2007-08-01  9:21 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Wed, 2007-08-01 at 11:10 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
> >> Philippe Gerum wrote:
> >>> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
> >>>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> >>>>> Philippe Gerum wrote:
> >>>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> >>>>>>> Already a plain command sequence causes this problem:
> >>>>>>>
> >>>>>>> # modprobe xeno_nucleus
> >>>>>>> # rmmod xeno_nucleus
> >>>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
> >>>>>>>
> >>>>>>> Can anyone confirm?
> >>>>>> Cannot reproduce it here. However, I got another report saying that
> >>>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> >>>> Correction: it would return -EAGAIN, so maybe the status leaks when a
> >>>> restart condition has been encountered in the stat loop. Seems minor,
> >>>> compared to ENOMEM.
> >>>>
> >>> Btw, you will likely need a large number of threads to make this happen
> >>> (~40), at least this is the case for the reporting site.
> >>>  
> >> I think you need a large number of _fluctuating_ threads, as EAGAIN
> >> should only be returned if something (thread count, IRQ assignments)
> >> changes while dumping the list.
> > 
> > This was implied.
> > 
> >>  But I would have to re-check this thing
> >> as well. I assume there is no hope for a test case then?
> >>
> > 
> > Nope.
> 
> The whole issue remains mysterious: None of the Xenomai handlers
> involved in the output of "sched" should be able to return EAGAIN. Only
> if seq_open returned such error (which it shouldn't according to the
> kernel code), this code would be imaginable.

/proc/xenomai/stat is involved, not /sched.

> 
> Jan
> 
-- 
Philippe.




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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-08-01  9:21               ` Philippe Gerum
@ 2007-08-01  9:26                 ` Jan Kiszka
  2007-08-01  9:48                   ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2007-08-01  9:26 UTC (permalink / raw)
  To: rpm; +Cc: xenomai-core

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

Philippe Gerum wrote:
> On Wed, 2007-08-01 at 11:10 +0200, Jan Kiszka wrote:
>> Philippe Gerum wrote:
>>> On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
>>>> Philippe Gerum wrote:
>>>>> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
>>>>>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
>>>>>>> Philippe Gerum wrote:
>>>>>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
>>>>>>>>> Already a plain command sequence causes this problem:
>>>>>>>>>
>>>>>>>>> # modprobe xeno_nucleus
>>>>>>>>> # rmmod xeno_nucleus
>>>>>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
>>>>>>>>>
>>>>>>>>> Can anyone confirm?
>>>>>>>> Cannot reproduce it here. However, I got another report saying that
>>>>>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
>>>>>> Correction: it would return -EAGAIN, so maybe the status leaks when a
>>>>>> restart condition has been encountered in the stat loop. Seems minor,
>>>>>> compared to ENOMEM.
>>>>>>
>>>>> Btw, you will likely need a large number of threads to make this happen
>>>>> (~40), at least this is the case for the reporting site.
>>>>>  
>>>> I think you need a large number of _fluctuating_ threads, as EAGAIN
>>>> should only be returned if something (thread count, IRQ assignments)
>>>> changes while dumping the list.
>>> This was implied.
>>>
>>>>  But I would have to re-check this thing
>>>> as well. I assume there is no hope for a test case then?
>>>>
>>> Nope.
>> The whole issue remains mysterious: None of the Xenomai handlers
>> involved in the output of "sched" should be able to return EAGAIN. Only
>> if seq_open returned such error (which it shouldn't according to the
>> kernel code), this code would be imaginable.
> 
> /proc/xenomai/stat is involved, not /sched.

That doesn't matter, the code pattern is the same.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded
  2007-08-01  9:26                 ` Jan Kiszka
@ 2007-08-01  9:48                   ` Philippe Gerum
  0 siblings, 0 replies; 12+ messages in thread
From: Philippe Gerum @ 2007-08-01  9:48 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Wed, 2007-08-01 at 11:26 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Wed, 2007-08-01 at 11:10 +0200, Jan Kiszka wrote:
> >> Philippe Gerum wrote:
> >>> On Tue, 2007-07-31 at 18:56 +0200, Jan Kiszka wrote:
> >>>> Philippe Gerum wrote:
> >>>>> On Tue, 2007-07-31 at 18:47 +0200, Philippe Gerum wrote:
> >>>>>> On Tue, 2007-07-31 at 18:31 +0200, Jan Kiszka wrote:
> >>>>>>> Philippe Gerum wrote:
> >>>>>>>> On Tue, 2007-07-31 at 18:11 +0200, Jan Kiszka wrote:
> >>>>>>>>> Already a plain command sequence causes this problem:
> >>>>>>>>>
> >>>>>>>>> # modprobe xeno_nucleus
> >>>>>>>>> # rmmod xeno_nucleus
> >>>>>>>>> rmmod: xeno_nucleus: Resource temporarily unavailable
> >>>>>>>>>
> >>>>>>>>> Can anyone confirm?
> >>>>>>>> Cannot reproduce it here. However, I got another report saying that
> >>>>>>>> /proc/xenomai/stat would return -ENOMEM. Cannot reproduce it here
> >>>>>> Correction: it would return -EAGAIN, so maybe the status leaks when a
> >>>>>> restart condition has been encountered in the stat loop. Seems minor,
> >>>>>> compared to ENOMEM.
> >>>>>>
> >>>>> Btw, you will likely need a large number of threads to make this happen
> >>>>> (~40), at least this is the case for the reporting site.
> >>>>>  
> >>>> I think you need a large number of _fluctuating_ threads, as EAGAIN
> >>>> should only be returned if something (thread count, IRQ assignments)
> >>>> changes while dumping the list.
> >>> This was implied.
> >>>
> >>>>  But I would have to re-check this thing
> >>>> as well. I assume there is no hope for a test case then?
> >>>>
> >>> Nope.
> >> The whole issue remains mysterious: None of the Xenomai handlers
> >> involved in the output of "sched" should be able to return EAGAIN. Only
> >> if seq_open returned such error (which it shouldn't according to the
> >> kernel code), this code would be imaginable.
> > 
> > /proc/xenomai/stat is involved, not /sched.
> 
> That doesn't matter, the code pattern is the same.
> 

Bad news, at some point, it does return ENOMEM too. Maybe it's actually
a transient condition on the target. I'll handle this one, since it does
not seem to be reproducible elsewhere.

> Jan
> 
-- 
Philippe.




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

end of thread, other threads:[~2007-08-01  9:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 16:11 [Xenomai-core] [BUG] 2.4-rc1: modular nucleus cannot be unloaded Jan Kiszka
2007-07-31 16:26 ` Philippe Gerum
2007-07-31 16:31   ` Jan Kiszka
2007-07-31 16:47     ` Philippe Gerum
2007-07-31 16:51       ` Philippe Gerum
2007-07-31 16:56         ` Jan Kiszka
2007-07-31 17:16           ` Philippe Gerum
2007-08-01  9:10             ` Jan Kiszka
2007-08-01  9:21               ` Philippe Gerum
2007-08-01  9:26                 ` Jan Kiszka
2007-08-01  9:48                   ` Philippe Gerum
2007-07-31 18:51   ` Jan Kiszka

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.