From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Tom Z <tomz30@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] address spaces of real-time task and standard linux process
Date: Wed, 26 Oct 2011 16:54:00 +0200 [thread overview]
Message-ID: <4EA81F08.4040509@domain.hid> (raw)
In-Reply-To: <1319638430.4857.YahooMailNeo@domain.hid>
On 10/26/2011 04:13 PM, Tom Z wrote:
>
>
> Thanks. I increased the stack size and the problem was gone. This
> problem was hard to find for me, as when I step into the functions in
> gdb, the locations where the problem occurs are different.
>
>
> BTW, in your previous reply you mentioned debugging techniques such
> as examining the registers and disassembling, can you suggesting some
> readings that elaborate such techniques. I have a few questions
> regarding such techniques, e.g., how do I interpret the meaning of
> each register? By disassembling, do you mean looking at the assembly
> codes?
The best I could find is this:
http://www.urbanmyth.org/linux/oops/slides.html
Which explains how to debug a kernel oops. The method transpose easily
to user-space.
In case of stack overflow, the stack pointer register should show an
address not mapped, or mapped read-only. You can see a process mappings
in /proc/pid/maps (if you want this file to exist in case of a segfault,
install a signal for SIGSEGV which calls the pause() function).
But if gdb does not modify the program behaviour, debugging with gdb is
much easier.
--
Gilles.
next prev parent reply other threads:[~2011-10-26 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-24 21:04 [Xenomai-help] address spaces of real-time task and standard linux process Tom Z
2011-10-25 8:06 ` Gilles Chanteperdrix
2011-10-25 10:50 ` Gilles Chanteperdrix
2011-10-26 14:13 ` Tom Z
2011-10-26 14:54 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-23 20:25 haitaozhumail-disc
2011-10-24 16:25 ` Thomas Lockhart
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=4EA81F08.4040509@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=tomz30@domain.hid \
--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.