All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Morris <john@zultron.com>
To: xenomai@xenomai.org
Subject: [Xenomai] mmap() segfaults
Date: Thu, 17 Jan 2013 21:51:50 -0600	[thread overview]
Message-ID: <50F8C6D6.8070209@zultron.com> (raw)

Hi list,

The linux 3.5.7/i-ipipe ipipe-gch for-core-3.5.7/xenomai master packages
haven't been tested much yet, but both el6 and deb packages seem to be
working great.  Those will be available in the next day or so.

For the use of others, I prefer the linux 3.5.3/xenomai 2.6.2
combination, since it has undergone more testing.  There's a problem
mixing the 3.5.3 kernel with xenomai-2.6.git master.  The mprotect
regression is failing again, but in a different way.

Details follow, but the thing I've lost track of is which version of
Xenomai the kernel was prepared with, 2.6.2 (/proc/xenomai/version says
2.6.2) or git master.  Is it a rule that the kernel must be prepared
from the same Xenomai source tree as the installed runtime tools?  In
that case, the packages must be modified with the proper dependency
information.  Otherwise, here's the report:

First run:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
memory write after exec enable
memory write after write enable
memory read/write after access enable
FAILURE main:102: read zero returned 255 instead of 0

Second and subsequent runs slightly different:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE main:69: read mem returned 255 instead of 0

Then curiously, some non-xenomai applications that work fine before the
regression test begin to segfault in mmap() when run after the test; a
simple example is 'git fetch'.  Nothing funny in dmesg; kernel .config
and strace linked below.

After a reboot, everything is normal again until the regression test is
rerun.

The released 2.6.2 tools work fine with the same kernel, and the i-pipe

    John



http://www.zultron.com/static/2013/01/xenomai/3.5.3-mmap-segfault/kernel.config.txt

http://www.zultron.com/static/2013/01/xenomai/3.5.3-mmap-segfault/strace.log



             reply	other threads:[~2013-01-18  3:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18  3:51 John Morris [this message]
2013-01-18  4:30 ` [Xenomai] mmap() segfaults 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=50F8C6D6.8070209@zultron.com \
    --to=john@zultron.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.