All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Oliver Clugnet <oliver.clugnet@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Segmentation fault
Date: Mon, 12 Jul 2010 11:31:30 +0200	[thread overview]
Message-ID: <4C3AE0F2.3070908@domain.hid> (raw)
In-Reply-To: <4C3ADF54.1080507@domain.hid>

Oliver Clugnet wrote:
> Hello,
> 
> I am trying to get the xenomai user-space programs to work on an x86 
> embedded system with a uClibc Buildroot root filesystem.
> I have patched a kernel, activated the Xenomai sub-system, and 
> cross-compiled it with the Buildroot uClibc toolchain as well as the 
> userspace programs. The system boots alright with the Xenomai nucleus 
> and everything ("dmesg | grep Xenomai" shows that Xenomai is initialised).
> But everytime I try to launch a program (cyclictest, clocktest, ...), I 
> get a segmentation fault with a kernel error message such as: 
> "clocktest[149] general protection ip:804cc22 sp:bfa29594 error:0 in 
> clocktest[8048000+7000]".
> A possibility I've been looking at is that maybe the programs try to 
> access the High Memory, even though /proc/meminfo shows that there is 
> none on this system ("HighTotal 0k"), thus the segmentation fault. I 
> might add that the system has a 500Mb memory.
> Could the High Memory be the problem? Is there a way of getting around it?
> Or could the problem be elsewhere?

No. There is little chance. Chances are higher that the problem comes in
fact from uclibc (on x86, few people use uclibc). Could you try a glibc
rootfs to confirm this hypothesis?

-- 
					    Gilles.


  reply	other threads:[~2010-07-12  9:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-12  9:24 [Xenomai-help] Segmentation fault Oliver Clugnet
2010-07-12  9:31 ` Gilles Chanteperdrix [this message]
     [not found]   ` <4C3AE2EE.9050701@domain.hid>
2010-07-12  9:46     ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2009-03-03 18:55 [Xenomai-help] Segmentation Fault Wayne Call
2009-03-03 19:07 ` Gilles Chanteperdrix
2008-09-26 13:10 Dehann Fourie
2008-09-26 15:55 ` Gilles Chanteperdrix
2008-09-30 20:26   ` Dehann Fourie
2008-10-04 20:10     ` 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=4C3AE0F2.3070908@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=oliver.clugnet@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.