All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Z <tomz30@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
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 07:13:50 -0700 (PDT)	[thread overview]
Message-ID: <1319638430.4857.YahooMailNeo@domain.hid> (raw)
In-Reply-To: <4EA69486.4030106@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]



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?


Thanks,
Tom



________________________________
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.orgmai.org>
To: Tom Z <tomz30@domain.hid>
Cc: Thomas Lockhart <Thomas.Lockhart@domain.hid>; "xenomai@xenomai.org" <xenomai@xenomai.org>
Sent: Tuesday, 25 October 2011 5:50 AM
Subject: Re: [Xenomai-help] address spaces of real-time task and standard linux process

On 10/24/2011 11:04 PM, Tom Z wrote:
>  8)     rt_task_create(&task_desc, "RealTimeImageProcessing", 4096, 99, T_FPU|T_CPU(0));

4096 bytes is a really small stack size, are you sure that the
segmentation fault is simply not a stack overflow?

-- 
                        Gilles.

[-- Attachment #2: Type: text/html, Size: 2068 bytes --]

  reply	other threads:[~2011-10-26 14:13 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 [this message]
2011-10-26 14:54     ` Gilles Chanteperdrix
  -- 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=1319638430.4857.YahooMailNeo@domain.hid \
    --to=tomz30@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.