From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Meassage Queue c++
Date: Fri, 20 Jan 2006 10:30:04 +0100 [thread overview]
Message-ID: <43D0AD9C.1030000@domain.hid> (raw)
In-Reply-To: <200601200948.09127.s.zimmermann@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]
Stephan Zimmermann wrote:
> Jan Kiszka wrote:
>
>> Some further things to try before giving C++ up - and maybe stumbling
>> over the same issue with C:
> I tryed out xenomai queues in plain C, works perfekt.
>
>> o Did you mlockall() your program? If not, lazy-mapped pages may cause
>> SEGFAULTS in the RT domain which will kill your program.
> I call "mlockall(MCL_CURRENT | MCL_FUTURE);" as one of the first things in
> main();
>> o Does your kernel log contain any hints of Xenomai about what's going
>> on?
> No, ist does not contain anything
>
>> o Try running your program inside a debugger to catch the fault and its
>> location. When your system is head-less, use gdbserver.
> I tryed debugging, I singlestepped through it and learned that it crashes when
> calling rt_queue_recv(), but I can not tell why.
>
> maybe it is because I do the "bind-thing" in the constructor, resulting in
> multiple objects of RT_QUEUE referring to the same queue.
But this is the idea of a queue: two users are referring to the same
object in order to communicate with each other!?
Would you mind to break out a demonstration code of your problem? Just
to check if there is some subtle Xenomai issue hidden or if it's an ugly
pitfall when using C++ in hard-RT context.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-01-20 9:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <43CFC6B5.8080308@domain.hid>
2006-01-20 8:14 ` [Xenomai-help] Meassage Queue c++ Stephan Zimmermann
2006-01-20 8:37 ` Jan Kiszka
2006-01-20 8:48 ` Stephan Zimmermann
2006-01-20 9:30 ` Jan Kiszka [this message]
2006-01-20 12:13 ` Stephan Zimmermann
2006-01-24 16:42 ` Stephan Zimmermann
2006-01-18 13:44 Stephan Zimmermann
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=43D0AD9C.1030000@domain.hid \
--to=jan.kiszka@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.