From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <53286AAF.20708@xenomai.org> Date: Tue, 18 Mar 2014 16:47:59 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <531DD795.5050801@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] a question about rt_mutex_acquire() List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ali hagigat , Gilles Chanteperdrix Cc: xenomai On 03/18/2014 04:42 PM, ali hagigat wrote: > On 3/11/14, ali hagigat wrote: >> On 3/10/14, Gilles Chanteperdrix wrote: >>> On 03/10/2014 04:01 PM, ali hagigat wrote: >>>> rt_mutex_acquire() creates a segmentation fault, why? >>> >>> Because rt_mutex_create failed? Otherwise we would see the message >>> "success"? >>> >>> Is this a game? Or are you using Xenomai for a real project? >>> >>> >>> -- >>> Gilles. >>> >> >> I am just testing Xenomai. If i comment rt_mutex_acquire() I see the >> message, "success", and a real time mutex is created correctly. by >> uncommenting "rt_mutex_acquire()" there is a segmentation fault. >> > > Why there is a segmentation fault? > Because rt_mutex_acquire() runs before rt_mutex_create(). Check your code to find out why. -- Philippe.