* [Xenomai-core] [BUG] kernel oops on registry duplicate names
@ 2006-05-12 10:19 Ignacio García Pérez
2006-05-12 10:57 ` [Xenomai-core] " Philippe Gerum
2006-05-12 11:05 ` Philippe Gerum
0 siblings, 2 replies; 6+ messages in thread
From: Ignacio García Pérez @ 2006-05-12 10:19 UTC (permalink / raw)
To: xenomai-core
The subject pretty much explains it all.
Just try to create a task named "foo" and a queue also named "foo".
Tested in 2.1.1 and svn HEAD.
Nacho.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-core] Re: [BUG] kernel oops on registry duplicate names
2006-05-12 10:19 [Xenomai-core] [BUG] kernel oops on registry duplicate names Ignacio García Pérez
@ 2006-05-12 10:57 ` Philippe Gerum
2006-05-12 11:05 ` Philippe Gerum
1 sibling, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2006-05-12 10:57 UTC (permalink / raw)
To: Ignacio García Pérez; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Ignacio García Pérez wrote:
> The subject pretty much explains it all.
>
> Just try to create a task named "foo" and a queue also named "foo".
>
> Tested in 2.1.1 and svn HEAD.
>
I can't reproduce it with the attached simple test. rt_queue_create()
returns -EEXIST as expected. Do you have any test frag to reproduce it?
--
Philippe.
[-- Attachment #2: dup.c --]
[-- Type: text/x-csrc, Size: 734 bytes --]
#include <sys/types.h>
#include <sys/mman.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <native/task.h>
#include <native/queue.h>
RT_TASK task;
RT_QUEUE q;
void queuer (void *x)
{
int err;
err = rt_queue_create(&q,"foo",16*1024,Q_UNLIMITED,Q_FIFO);
printf("rt_queue_create() = %d, mapaddr=%p, mapsize=%u\n",err,q.mapbase,q.mapsize);
err = rt_queue_delete(&q);
printf("rt_queue_delete() = %d, mapaddr=%p, mapsize=%u\n",err,q.mapbase,q.mapsize);
}
int main (int argc, char **argv)
{
mlockall(MCL_FUTURE|MCL_CURRENT);
rt_task_create(&task,"foo",0,2,T_FPU);
rt_task_start(&task,&queuer,(void *)(argc > 1));
pause();
exit(0);
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Xenomai-core] Re: [BUG] kernel oops on registry duplicate names
2006-05-12 10:19 [Xenomai-core] [BUG] kernel oops on registry duplicate names Ignacio García Pérez
2006-05-12 10:57 ` [Xenomai-core] " Philippe Gerum
@ 2006-05-12 11:05 ` Philippe Gerum
2006-05-12 11:08 ` Jan Kiszka
1 sibling, 1 reply; 6+ messages in thread
From: Philippe Gerum @ 2006-05-12 11:05 UTC (permalink / raw)
To: Ignacio García Pérez; +Cc: xenomai-core
Ignacio García Pérez wrote:
> The subject pretty much explains it all.
>
> Just try to create a task named "foo" and a queue also named "foo".
>
> Tested in 2.1.1 and svn HEAD.
>
Ok, that's the other way around, you first create the queue, then the
task, and the error path of the task creation routine seems to go wild
afterwards when it detects the registry error.
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Re: [BUG] kernel oops on registry duplicate names
2006-05-12 11:05 ` Philippe Gerum
@ 2006-05-12 11:08 ` Jan Kiszka
2006-05-12 13:26 ` Philippe Gerum
2006-05-12 14:10 ` Philippe Gerum
0 siblings, 2 replies; 6+ messages in thread
From: Jan Kiszka @ 2006-05-12 11:08 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
Philippe Gerum wrote:
> Ignacio García Pérez wrote:
>> The subject pretty much explains it all.
>>
>> Just try to create a task named "foo" and a queue also named "foo".
>>
>> Tested in 2.1.1 and svn HEAD.
>>
>
> Ok, that's the other way around, you first create the queue, then the
> task, and the error path of the task creation routine seems to go wild
> afterwards when it detects the registry error.
>
That's obviously the same issue I reported a few days ago about creating
two tasks with identical names.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Re: [BUG] kernel oops on registry duplicate names
2006-05-12 11:08 ` Jan Kiszka
@ 2006-05-12 13:26 ` Philippe Gerum
2006-05-12 14:10 ` Philippe Gerum
1 sibling, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2006-05-12 13:26 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Ignacio García Pérez wrote:
>>
>>>The subject pretty much explains it all.
>>>
>>>Just try to create a task named "foo" and a queue also named "foo".
>>>
>>>Tested in 2.1.1 and svn HEAD.
>>>
>>
>>Ok, that's the other way around, you first create the queue, then the
>>task, and the error path of the task creation routine seems to go wild
>>afterwards when it detects the registry error.
>>
>
>
> That's obviously the same issue I reported a few days ago about creating
> two tasks with identical names.
>
This went unnoticed from me. Could you resend this? TIA,
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-core] Re: [BUG] kernel oops on registry duplicate names
2006-05-12 11:08 ` Jan Kiszka
2006-05-12 13:26 ` Philippe Gerum
@ 2006-05-12 14:10 ` Philippe Gerum
1 sibling, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2006-05-12 14:10 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Ignacio García Pérez wrote:
>>
>>>The subject pretty much explains it all.
>>>
>>>Just try to create a task named "foo" and a queue also named "foo".
>>>
>>>Tested in 2.1.1 and svn HEAD.
>>>
>>
>>Ok, that's the other way around, you first create the queue, then the
>>task, and the error path of the task creation routine seems to go wild
>>afterwards when it detects the registry error.
>>
>
>
> That's obviously the same issue I reported a few days ago about creating
> two tasks with identical names.
>
Fixed by commits #1084 and #1085 in both branches.
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-12 14:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 10:19 [Xenomai-core] [BUG] kernel oops on registry duplicate names Ignacio García Pérez
2006-05-12 10:57 ` [Xenomai-core] " Philippe Gerum
2006-05-12 11:05 ` Philippe Gerum
2006-05-12 11:08 ` Jan Kiszka
2006-05-12 13:26 ` Philippe Gerum
2006-05-12 14:10 ` 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.