From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: George Pontis <GPontis@z9.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] ARM, exception #0 ?
Date: Sun, 01 Jul 2012 16:00:18 +0200 [thread overview]
Message-ID: <4FF057F2.7040109@xenomai.org> (raw)
In-Reply-To: <009c01cd539e$e9f81420$bde83c60$@com>
On 06/26/2012 03:23 PM, George Pontis wrote:
> Running Xenomai 2.6.0 on an ARM at91sam9g45. I recently updated from Adeos
> patch adeos-ipipe-3.0.13-arm-1.18-05 to adeos-ipipe-3.0.13-arm-1.18-09. Then
> built a new kernel and gave it to the application developers for a test.
> There were other changes in the root FS and a few tweaks in the kernel, but
> none that looked (to me) like they would affect Xenomai. They report this
> new error:
>
>> Xenomai: Switching ADC Task to secondary mode after exception #0 from
>> user-space at 0xffff0fbc (pid 723)
>
> And then nothing about the app works any more. What does this mean ?
Ok. I was able to reproduce the same message with the following test
application:
#include <sys/mman.h>
#include <native/task.h>
#include <native/mutex.h>
RT_MUTEX mx;
int main(void)
{
RT_TASK t;
mlockall(MCL_CURRENT | MCL_FUTURE);
rt_task_shadow(&t, "test_fault", 1, 0);
rt_mutex_acquire(&mx, TM_INFINITE);
}
Namely: trying to acquire a mutex which is not initialized. The address
0xffff0fbc is off-by 4, the real fault address is 0xffff0fc0, the kernel
helper used by the mutex implementation for the
atomic-compare-and-exchange operation.
--
Gilles.
next prev parent reply other threads:[~2012-07-01 14:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 13:23 [Xenomai] ARM, exception #0 ? George Pontis
2012-06-26 13:48 ` Gilles Chanteperdrix
2012-06-27 15:34 ` George Pontis
2012-06-27 16:20 ` Gilles Chanteperdrix
2012-07-01 13:10 ` Gilles Chanteperdrix
2012-07-01 14:00 ` Gilles Chanteperdrix [this message]
2012-07-02 4:27 ` George Pontis
2012-07-02 8:49 ` Gilles Chanteperdrix
2012-07-02 15:03 ` George Pontis
2012-07-02 17:44 ` 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=4FF057F2.7040109@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=GPontis@z9.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.