Skip to contentSkip to conversation

2.4-rc1: modular nucleus cannot be unloaded

Xenomai-core Jan Kiszka 2 participants 12 messages Jul 31, 2007 – Aug 1, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Jan Kiszka

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.

Quoted 10 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 7 lines · Philippe Gerum
Quoted 6 lines · Jan Kiszka

Already a plain command sequence causes this problem:

# modprobe xeno_nucleus
# rmmod xeno_nucleus
rmmod: xeno_nucleus: Resource temporarily unavailable
Quoted 5 lines
Quoted 1 line

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

#3 lore raw
Quoted 4 lines · Jan Kiszka
Quoted 3 lines · Philippe Gerum
Quoted 2 lines · Jan Kiszka

Already a plain command sequence causes this problem:

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
# 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.

Quoted 5 lines
Quoted 1 line

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>

Quoted 2 lines

Jan

Signature · 1 line
Philippe.
#4 lore raw
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Philippe Gerum
Quoted 6 lines · Jan Kiszka

Already a plain command sequence causes this problem:

# modprobe xeno_nucleus
# rmmod xeno_nucleus
rmmod: xeno_nucleus: Resource temporarily unavailable
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Signature · 1 line
Philippe.
author
#5 lore raw
Quoted 13 lines · Philippe Gerum
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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

Quoted 8 lines
Quoted 4 lines

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

#6 lore raw
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Philippe Gerum
Quoted 16 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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.

Quoted 7 lines
Quoted 3 lines

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.

Quoted 3 lines

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

Nope.

Quoted 2 lines

Jan

Signature · 1 line
Philippe.
author
#11 lore raw
In reply to Philippe Gerum
Quoted 7 lines · Philippe Gerum
Quoted 6 lines · Jan Kiszka

Already a plain command sequence causes this problem:

# modprobe xeno_nucleus
# rmmod xeno_nucleus
rmmod: xeno_nucleus: Resource temporarily unavailable
Quoted 5 lines
Quoted 1 line

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

author
#7 lore raw
In reply to Philippe Gerum
Quoted 26 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Philippe Gerum
Quoted 16 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 7 lines

This was implied.

Quoted 3 lines

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

#8 lore raw
Quoted 33 lines · Jan Kiszka
Quoted 32 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Philippe Gerum
Quoted 16 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 3 lines

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

Quoted 6 lines
Quoted 1 line

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.

Quoted 3 lines

Jan

Signature · 1 line
Philippe.
author
#9 lore raw
Quoted 32 lines · Philippe Gerum
Quoted 31 lines · Jan Kiszka
Quoted 30 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Philippe Gerum
Quoted 16 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 3 lines

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

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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

#10 lore raw
Quoted 34 lines · Jan Kiszka
Quoted 33 lines · Philippe Gerum
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Philippe Gerum
Quoted 16 lines · Philippe Gerum
Quoted 11 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 3 lines

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

Nope.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

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.

Quoted 2 lines

Jan

Signature · 1 line
Philippe.