From: Stephan Zimmermann <s.zimmermann@domain.hid>
To: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Meassage Queue c++
Date: Fri, 20 Jan 2006 09:48:09 +0100 [thread overview]
Message-ID: <200601200948.09127.s.zimmermann@domain.hid> (raw)
In-Reply-To: <43D0A13C.10603@domain.hid>
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.
Stephan
next prev parent reply other threads:[~2006-01-20 8:48 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 [this message]
2006-01-20 9:30 ` Jan Kiszka
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=200601200948.09127.s.zimmermann@domain.hid \
--to=s.zimmermann@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.