From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52337BA2.4080106@xenomai.org> Date: Fri, 13 Sep 2013 22:54:58 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] psos t_delete causing a SIGSEGV in suspended task. List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Daniel Merrill Cc: xenomai@xenomai.org On 09/13/2013 10:48 PM, Daniel Merrill wrote: > void main() > > { > > mlockall(MCL_CURRENT | MCL_FUTURE); > > u_long TID, TID2; > > u_long args[4] = {TID, 0, 0, 0}; TID here is an uninitialized value, and this is what you pass to t_delete. I admit the segmentation does not seem like the best reaction, but the program looks faulty. > (...) > t_start(TID2, T_PREEMPT | T_TSLICE, &deleter, args); -- Gilles.