All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberto Bielli <roberto.bielli@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] rt_task_delete doesn't work
Date: Thu, 09 Jun 2011 18:43:24 +0200	[thread overview]
Message-ID: <4DF0F82C.1010509@domain.hid> (raw)

Hi,

the function rt_task_delete goes in segmentation fault.

this is the environment:

- kernel 2.6.31.8 arm marvell (test custom porting)
- xenomai 2.5.5.1

- the code:
int main (int argc, char *argv[])
{
     //    Porta di comunicazione
     int s;
     RT_TASK pippo;
     int err;

     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);

     PrintTimeMex( TRUE,RT_VERSION"\n" );

     unlink( LOGEXT_FILE );


     err = rt_task_create( &pippo, "pippo", 0x2000, 20, T_FPU );
     err = rt_task_delete( &pippo );
...
...
...



Can anyone help me ?

Thanks for all


             reply	other threads:[~2011-06-09 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 16:43 Roberto Bielli [this message]
2011-06-09 17:53 ` [Xenomai-core] rt_task_delete doesn't work 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=4DF0F82C.1010509@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.