* bug, or is it? - SCHED_RR and FPU related
@ 2004-02-12 20:57 Rudo Thomas
2004-02-12 22:58 ` Nick Piggin
2004-02-13 10:13 ` bug, or is it? - SCHED_RR and futex related Rudo Thomas
0 siblings, 2 replies; 7+ messages in thread
From: Rudo Thomas @ 2004-02-12 20:57 UTC (permalink / raw)
To: linux-kernel
Hello.
I have stumbled upon a grave bug, I think. I can reproduce a hard lock-up using
xmms and a buggy plugin - only SysRq-B helps. I managed to narrow it down to
"0.5/NAN"-like operation. It only causes a complete hang when xmms is run with
SCHED_RR priority. Otherwise, only xmms hangs. Unfortunately, I was not able to
create a working proof-of-concept program.
The question is - is this a kernel bug, OR something that cannot be prevented
from happening when using SCHED_RR policy?
Tried with 2.6.3-rc[12] and glibc-2.3.2 (-r9 gentoo) with nptl support (if that
matters).
Have a nice day.
Rudo.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and FPU related
2004-02-12 20:57 bug, or is it? - SCHED_RR and FPU related Rudo Thomas
@ 2004-02-12 22:58 ` Nick Piggin
2004-02-13 0:47 ` Rudo Thomas
2004-02-13 10:13 ` bug, or is it? - SCHED_RR and futex related Rudo Thomas
1 sibling, 1 reply; 7+ messages in thread
From: Nick Piggin @ 2004-02-12 22:58 UTC (permalink / raw)
To: Rudo Thomas; +Cc: linux-kernel
Rudo Thomas wrote:
>Hello.
>
>I have stumbled upon a grave bug, I think. I can reproduce a hard lock-up using
>xmms and a buggy plugin - only SysRq-B helps. I managed to narrow it down to
>"0.5/NAN"-like operation. It only causes a complete hang when xmms is run with
>SCHED_RR priority. Otherwise, only xmms hangs. Unfortunately, I was not able to
>create a working proof-of-concept program.
>
>The question is - is this a kernel bug, OR something that cannot be prevented
>from happening when using SCHED_RR policy?
>
>Tried with 2.6.3-rc[12] and glibc-2.3.2 (-r9 gentoo) with nptl support (if that
>matters).
>
>Have a nice day.
>
>
Hi Rudo,
xmms probably goes into an infinite loop, preventing anything else
from being scheduled, right? If that's the case then this is correct
behaviour.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and FPU related
2004-02-12 22:58 ` Nick Piggin
@ 2004-02-13 0:47 ` Rudo Thomas
2004-02-13 0:57 ` Nick Piggin
0 siblings, 1 reply; 7+ messages in thread
From: Rudo Thomas @ 2004-02-13 0:47 UTC (permalink / raw)
To: Nick Piggin; +Cc: linux-kernel
Hi.
> xmms probably goes into an infinite loop, preventing anything else
> from being scheduled, right?
Nope. When I turn the suid bit off, xmms (does not run with SCHED_RR and) just
hangs consuming no CPU cycles. Strange.
I will look into it tomorrow, the invalid FP division was not the problem, its
results are.
Thanks.
Rudo.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and FPU related
2004-02-13 0:47 ` Rudo Thomas
@ 2004-02-13 0:57 ` Nick Piggin
2004-02-13 10:02 ` Rudo Thomas
0 siblings, 1 reply; 7+ messages in thread
From: Nick Piggin @ 2004-02-13 0:57 UTC (permalink / raw)
To: Rudo Thomas; +Cc: linux-kernel
Rudo Thomas wrote:
>Hi.
>
>
>>xmms probably goes into an infinite loop, preventing anything else
>>from being scheduled, right?
>>
>
>Nope. When I turn the suid bit off, xmms (does not run with SCHED_RR and) just
>hangs consuming no CPU cycles. Strange.
>
>I will look into it tomorrow, the invalid FP division was not the problem, its
>results are.
>
>
I think xmms changes the way it runs depending on whether realtime
scheduling is set or not, but I could be wrong.
Programs using realtime scheduling need to be coded pretty
carefully. Xmms is not something I'd bet my system's stability on.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and FPU related
2004-02-13 0:57 ` Nick Piggin
@ 2004-02-13 10:02 ` Rudo Thomas
0 siblings, 0 replies; 7+ messages in thread
From: Rudo Thomas @ 2004-02-13 10:02 UTC (permalink / raw)
To: linux-kernel
Hello again.
> I think xmms changes the way it runs depending on whether realtime
> scheduling is set or not, but I could be wrong.
Yes, it does, but I am not sure whether this is the case.
Anyway, you were right, it was not the kernel. Nothing more to be seen here 8-)
Have a nice weekend.
Rudo.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and futex related
2004-02-12 20:57 bug, or is it? - SCHED_RR and FPU related Rudo Thomas
2004-02-12 22:58 ` Nick Piggin
@ 2004-02-13 10:13 ` Rudo Thomas
2004-02-13 14:37 ` Jamie Lokier
1 sibling, 1 reply; 7+ messages in thread
From: Rudo Thomas @ 2004-02-13 10:13 UTC (permalink / raw)
To: linux-kernel; +Cc: Nick Piggin
Last question.
I tracked it down to an infinite waiting in futex( ..., FUTEX_WAIT, 2, NULL).
Can THIS hang the machine hard when running with SCHED_RR policy?
Thanks.
Rudo.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: bug, or is it? - SCHED_RR and futex related
2004-02-13 10:13 ` bug, or is it? - SCHED_RR and futex related Rudo Thomas
@ 2004-02-13 14:37 ` Jamie Lokier
0 siblings, 0 replies; 7+ messages in thread
From: Jamie Lokier @ 2004-02-13 14:37 UTC (permalink / raw)
To: linux-kernel, Nick Piggin
Rudo Thomas wrote:
> I tracked it down to an infinite waiting in futex( ..., FUTEX_WAIT, 2, NULL).
> Can THIS hang the machine hard when running with SCHED_RR policy?
Do you mean that a task running with SCHED_RR calls futex( ...,
FUTEX_WAIT, 2, NULL), and there are no other SCHED_RR or SCHED_FIFO
tasks?
That cannot lock the machine hard. When the futex call waits, the task sleeps.
-- Jamie
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-13 14:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12 20:57 bug, or is it? - SCHED_RR and FPU related Rudo Thomas
2004-02-12 22:58 ` Nick Piggin
2004-02-13 0:47 ` Rudo Thomas
2004-02-13 0:57 ` Nick Piggin
2004-02-13 10:02 ` Rudo Thomas
2004-02-13 10:13 ` bug, or is it? - SCHED_RR and futex related Rudo Thomas
2004-02-13 14:37 ` Jamie Lokier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®