All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Ronny Meeus <ronny.meeus@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Xenomai-forge: SEGFAULT is pSOS skin
Date: Mon, 26 Sep 2011 12:49:53 +0200	[thread overview]
Message-ID: <1317034193.2174.9.camel@domain.hid> (raw)
In-Reply-To: <CAMJ=MEeOYUsNXMOUwLyxTo5kDcTTER90bXUpPiwao0YGZMpTeQ@mail.gmail.com>

On Thu, 2011-09-22 at 22:15 +0200, Ronny Meeus wrote:
> Hello
> 
> I have created some time ago a test application for the PSOS interface
> of Xenomai.
> This is a extensive test that stresses most of the PSOS services we
> use in our application. You can find it as an attachment.
> It is running fine on Xenomai 2-5-6.

Nope, actually it does not, at all. It can't work in any 2.x series by
design actually, and we have the very same synchronization issue which
has just been fixed in -forge. We just happen to be lucky with timings,
likely due to the additional interactions we have with the dual kernel.

> Note that in the test application there is also a benchmarking part.
> This is currently disabled, I will fix that later.
> 
> Now I'm investigating a switch to xenomai-forge so I tried to run the
> same test on this platform.
> 
> This is the version I'm using (downloaded today):
> 
> meeusr@domain.hid$ git log | head
> commit 04b776ed9ff18e197ae43ee552b8e77f42c5e5cb
> Author: Philippe Gerum <rpm@xenomai.org>
> Date:   Wed Sep 21 21:08:42 2011 +0200
> 
>     psos: fix t_ident() with NULL name
> 
> 
> The configuration I did:
> ./configure --prefix=/home/meeusr/repo/xenomai-forge-install
> --enable-debug --with-core=mercury
> 
> After adding the test to the makefile of the lib/psos/testsuite and
> compiling it, I start it by giving the command:
> sudo LD_LIBRARY_PATH=/home/meeusr/repo/xenomai-forge-install/lib/ gdb ./rtprint
> 
> After some time I observe a crash:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xa7b5d870 (LWP 14707)]
> 0x00140749 in dtpvh (holder=0x80cfc7c) at
> ../../include/copperplate/private-list.h:59
> 59			holder->prev->next = holder->next;
> (gdb) bt
> #0  0x00140749 in dtpvh (holder=0x80cfc7c) at
> ../../include/copperplate/private-list.h:59
> #1  0x0014079c in pvlist_remove_init (holder=0x80cfc7c) at
> ../../include/copperplate/private-list.h:120
> #2  0x00140e89 in notifier_destroy (nf=0x80cfc48) at notifier.c:195
> #3  0x0013fb68 in threadobj_finalize (p=0x80cfbb0) at threadobj-mercury.c:161
> #4  0x0014a3ef in __nptl_deallocate_tsd () at pthread_create.c:155
> #5  0x0014a97c in start_thread (arg=0xa7b5d870) at pthread_create.c:307
> #6  0x00234a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
> (gdb) print *holder
> $1 = {next = 0x2, prev = 0x200}
> 
> It looks like the holder structure is getting corrupted and this
> results in a crash while destroying a task. Please note that this is
> not the case all the time, e.g. there are already tasks destroyed
> before.
> Does anybody has a clue about the problem or how I have to proceed
> with the investigation?
> 
> Thanks.
> Ronny
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




  parent reply	other threads:[~2011-09-26 10:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 20:15 [Xenomai-help] Xenomai-forge: SEGFAULT is pSOS skin Ronny Meeus
2011-09-23 13:00 ` Philippe Gerum
2011-09-23 20:21   ` Ronny Meeus
2011-09-23 20:23     ` Philippe Gerum
2011-09-26 10:46       ` Philippe Gerum
2011-09-26 20:01         ` Ronny Meeus
2011-09-26 21:11           ` Philippe Gerum
2011-11-01 11:52             ` Philippe Gerum
2011-11-18 10:57               ` Thomas De Schampheleire
2011-10-04 15:41           ` Philippe Gerum
2011-10-12 17:16             ` Ronny Meeus
2011-10-12 17:19               ` Philippe Gerum
2011-09-23 13:56 ` Gilles Chanteperdrix
2011-09-23 17:05   ` Ronny Meeus
2011-09-23 17:20     ` Gilles Chanteperdrix
2011-09-23 19:58       ` Ronny Meeus
2011-09-26 10:49 ` Philippe Gerum [this message]
2011-09-26 20:02   ` Ronny Meeus
2011-09-26 20:57     ` Philippe Gerum

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=1317034193.2174.9.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=ronny.meeus@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.