All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Ronny Meeus <ronny.meeus@gmail.com>
Cc: "martin.bielik.sk" <martin.bielik.sk@gmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] [xenomai-forge] Task blocked in t_delete
Date: Thu, 30 Apr 2015 15:09:47 +0200	[thread overview]
Message-ID: <5542299B.30409@xenomai.org> (raw)
In-Reply-To: <CAMJ=MEcq-VE-QK021_RigRUVbbXOtKwL4G27bhtP=y+hX3eE6w@mail.gmail.com>

On 04/30/2015 02:39 PM, Ronny Meeus wrote:
> If I run the test I see:
> 
> /tmp # ./task_delete
> Start of test
> Create and start main task:Create task M:
> Create task L:
> Start task M:
> Start task L:
> M: entry
> L: entry
> M: Dead loop starts
> Cleaning ..
> End of test
> 
> Here is the piece of the code that goes wrong:
> 
>   printf("Cleaning ..\r\n");
>   /* Remove tasks */
>   t_delete(L_id);
>   /* Followed code is not executed because t_delete is somehow blocked */
>   printf("Removed L task id = 0x%lx\r\n", L_id);
>   t_delete(M_id);
>   printf("Removed M task id = 0x%lx\r\n", M_id);
> }
> 
> Since the trace "Removed L task id..." is not generated, my assumption
> it that the t_delete(L_id) blocks.
> 
> 

Could you attach GDB to the hung process, then dump a backtrace for all
the remaining threads?

-- 
Philippe.


  reply	other threads:[~2015-04-30 13:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30  8:14 [Xenomai] [xenomai-forge] Task blocked in t_delete Ronny Meeus
2015-04-30 10:01 ` Philippe Gerum
2015-04-30 12:39   ` Ronny Meeus
2015-04-30 13:09     ` Philippe Gerum [this message]
2015-04-30 13:55       ` Ronny Meeus
2015-05-01 16:55         ` Philippe Gerum
2015-05-02 18:48           ` Ronny Meeus
2015-05-05  6:04             ` Ronny Meeus
2015-05-06  9:41               ` Philippe Gerum

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=5542299B.30409@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=martin.bielik.sk@gmail.com \
    --cc=ronny.meeus@gmail.com \
    --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.