From: Roberto Bielli <roberto.bielli@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] Fwd: Re: rt_task_delete doesn't work
Date: Tue, 14 Jun 2011 13:59:56 +0200 [thread overview]
Message-ID: <4DF74D3C.4020303@domain.hid> (raw)
Here is the example and the command.
RT_TASK pippo;
RT_TASK pluto;
void test1()
{
int err;
err = rt_task_delete(&pippo );
if( err != 0 )
printf("error task delete\n");
}
int main (int argc, char *argv[])
{
// Porta di comunicazione
//int s;
mlockall(MCL_CURRENT|MCL_FUTURE);
// gestione signal handler
//struct sigaction sa;
//sa.sa_sigaction = (void *)sigHandler;
//sigemptyset (&sa.sa_mask);
//sa.sa_flags = SA_SIGINFO;
//sigaction(SIGTERM,&sa, NULL);
//sigaction(SIGINT,&sa, NULL);
//sigaction(SIGPIPE,&sa, NULL);
//sigaction(SIGFPE,&sa, NULL);
//sigaction(SIGSEGV,&sa, NULL);
char * namePippo = "pippo";
char * namePluto = "pluto";
int err;
err = rt_task_create(&pippo, namePippo, 0x2000, 20, T_FPU );
if( err != 0 )
printf("error task create %s\n", namePippo );
err = rt_task_create(&pluto, namePluto, 0x2000, 20, T_FPU );
if( err != 0 )
printf("error task create %s\n", namePluto );
err = rt_task_start(&pluto, (void *)test1, NULL );
if( err != 0 )
printf("error task start %s\n", namePluto );
}
--COMMAND--
# gdb --args ./apgs -D
GNU gdb (GDB) 6.8.50.20080821-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-mv5sft-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) r
`/flash/apgs' has disappeared; keeping its symbols.
Starting program: /flash/apgs -D
[Thread debugging using libthread_db enabled]
[New Thread 0x2acf7490 (LWP 537)]
[New Thread 0x2acfc490 (LWP 538)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2acfc490 (LWP 538)]
0x2aab9d74 in _dl_catch_error () from /lib/ld-linux.so.3
(gdb)
Il 10/06/2011 19:32, Gilles Chanteperdrix ha scritto:
> On 06/10/2011 06:51 PM, Roberto Bielli wrote:
>> The segmentation fault was not on this code line.
>> i upgraded the version to 2.5.6 but the error is the same.
>>
>> The fault is when i try to delete a realtime task from another realtime
>> task.
>>
>> It's possible to do that ?
> Please post a self-contained testcase. A self-contained test case is
> worth a thousand words.
>
-----
Nessun virus nel messaggio.
Controllato da AVG - www.avg.com
Versione: 10.0.1382 / Database dei virus: 1513/3699 - Data di rilascio: 12/06/2011
next reply other threads:[~2011-06-14 11:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 11:59 Roberto Bielli [this message]
2011-06-14 16:27 ` [Xenomai-core] Fwd: Re: rt_task_delete doesn't work Cagnulein
2011-06-15 10:19 ` Roberto Bielli
2011-06-15 11:25 ` Gilles Chanteperdrix
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=4DF74D3C.4020303@domain.hid \
--to=roberto.bielli@domain.hid \
--cc=xenomai@xenomai.org \
/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 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.