From: Steven Rostedt <rostedt@goodmis.org>
To: Nedko Arnaudov <nedko@arnaudov.name>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: Re: sched.c:659 dec_rt_tasks BUG with patch-2.6.15-rt1 (realtime-preempt)
Date: Fri, 06 Jan 2006 21:10:18 -0500 [thread overview]
Message-ID: <1136599818.12468.172.camel@localhost.localdomain> (raw)
In-Reply-To: <1136595936.12468.168.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
On Fri, 2006-01-06 at 20:05 -0500, Steven Rostedt wrote:
> On Thu, 2006-01-05 at 17:15 +0200, Nedko Arnaudov wrote:
> > Will try to crash SMP ASAP, I'm not able to do tests now.
> >
> > I do erase/burn of 210 MiB rw disk. Erase is done without crash.
> > I use version 2.01.01a03 of cdrecord.
> > It crashes when burning:
> >
> > http://nedko.arnaudov.name/tmp/rt-cdrecord-crash.jpg
> >
> > Same crash occurs when I run oss2jack with -d option.
> > It does not occur when running without -d option (daemonize).
> >
>
> Nedko,
>
> Could you try either the patch below, or the link
> http://home.stny.rr.com/rostedt/patches/patch-2.6.15-rt2-sr2
> which has the patch included, to see if this fixes your problem.
OK, I think this is it. Without the patch, the attached program crashes
the system. With the patch, it runs fine. I believe that cdrecord and
friends were forking processes with RT priorities. Which would crash the
system.
-- Steve
[-- Attachment #2: forkme.c --]
[-- Type: text/x-csrc, Size: 373 bytes --]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
int main(int argc, char **argv)
{
int pid;
struct sched_param sp = { .sched_priority = 5 };
sched_setscheduler(getpid(), SCHED_FIFO, &sp);
if ((pid = fork()) < 0) {
perror("fork");
exit(0);
} else if (!pid) {
printf("child!\n");
exit(0);
}
printf("parent\n");
exit(0);
}
prev parent reply other threads:[~2006-01-07 2:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87ek3ug314.fsf@arnaudov.name>
2006-01-02 21:35 ` patch-2.6.15-rc7-rt2 (realtime-preempt) report Nedko Arnaudov
2006-01-02 21:45 ` Ingo Molnar
2006-01-02 23:10 ` Michal Piotrowski
2006-01-02 23:15 ` Florian Schmidt
2006-01-02 23:21 ` patch-2.6.15-rc7-rt3 " Nedko Arnaudov
2006-01-02 23:56 ` Nedko Arnaudov
2006-01-05 2:37 ` sched.c:659 dec_rt_tasks BUG with patch-2.6.15-rt1 (realtime-preempt) Nedko Arnaudov
2006-01-05 4:44 ` Steven Rostedt
2006-01-05 10:03 ` Nedko Arnaudov
2006-01-05 12:19 ` Steven Rostedt
2006-01-05 14:32 ` Nedko Arnaudov
2006-01-05 14:39 ` Steven Rostedt
2006-01-05 15:15 ` Nedko Arnaudov
2006-01-07 1:05 ` Steven Rostedt
2006-01-07 2:10 ` Steven Rostedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1136599818.12468.172.camel@localhost.localdomain \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nedko@arnaudov.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome