From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Daniel Merrill <daniel.merrill@psware.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] psos t_delete causing a SIGSEGV in suspended task.
Date: Sat, 14 Sep 2013 15:47:49 +0200 [thread overview]
Message-ID: <52346905.1030401@xenomai.org> (raw)
In-Reply-To: <024b1d5a.00001e70.00000015@dmerrill_win764.PERF.PERFORMANCESOFTWARE>
On 09/14/2013 01:23 AM, Daniel Merrill wrote:
> Alright I think you solved it! We are actually calling the t_suspend from
> Ada, which had an exception block around the call. For some reason that is
> trying to catch the cancel signal and causes the SIGSEGV. When I remove that
> exception handling block the delete appears to work. Thanks for pointing me
> in the right direction.
>From what I understand, unwinding on pthread_cancel is a feature which
allows automatic destruction of all the objects created on the thread
stack in C++ (and other languages implementing exceptions apparently)
upon pthread_cancel, this way, pthread_cleanup_push and pthread_cleanup
pop are simply handled as C++ objects constructors/destructors when used
in C++ code.
--
Gilles.
prev parent reply other threads:[~2013-09-14 13:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 20:48 [Xenomai] psos t_delete causing a SIGSEGV in suspended task Daniel Merrill
2013-09-13 20:54 ` Gilles Chanteperdrix
[not found] ` <fcac2f91.00001e70.00000001@dmerrill_win764.PERF.PERFORMANCESOFTWARE>
2013-09-13 21:45 ` Daniel Merrill
2013-09-13 21:47 ` Gilles Chanteperdrix
2013-09-13 23:23 ` Daniel Merrill
2013-09-14 13:47 ` Gilles Chanteperdrix [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=52346905.1030401@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=daniel.merrill@psware.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.