From: "George Pontis" <GPontis@z9.com>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] ARM, exception #0 ?
Date: Sun, 1 Jul 2012 21:27:21 -0700 [thread overview]
Message-ID: <03de01cd580a$f9016d70$eb044850$@com> (raw)
In-Reply-To: <4FF057F2.7040109@xenomai.org>
> ....
>
> 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.
Gilles, that is very helpful. I looked at the code from the app guys and was not able to decipher the fairly complicated C++ task logic, but passed this info to them. I will keep track of their efforts and make sure that we close on it. As far as trying the other examples, I need to do some catch-up. The embedded target does not have gdb running on it as they haltingly make do with gdbsever and gdb/Eclipse on the host. And I _still_ have not been able to coax any detailed output from the kernel with CONFIG_DEBUG_USER and user_debug=29. I know that this is declared because an added printk shows that it is executing the function user_debug_setup in arch/arm/kernel/traps.c which is dependent on CONFIG_DEBUG_USER. But no additional info shows after the fault, including the fault from your test application.
George
next prev parent reply other threads:[~2012-07-02 4:27 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
2012-07-02 4:27 ` George Pontis [this message]
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='03de01cd580a$f9016d70$eb044850$@com' \
--to=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.