From: Jan Kiszka <jan.kiszka@domain.hid>
To: Stephan Zimmermann <s.zimmermann@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Meassage Queue c++
Date: Fri, 20 Jan 2006 09:37:16 +0100 [thread overview]
Message-ID: <43D0A13C.10603@domain.hid> (raw)
In-Reply-To: <200601200914.37506.s.zimmermann@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
Stephan Zimmermann wrote:
> Am Donnerstag, 19. Januar 2006 18:04 schrieb Nathaniel Villaume:
>> Hi Stephan,
>>
>> I don't know if it is related, but I wouldn't return a pointer to a
>> local variable:
>>
>> void *data;
>> ...
>> return data;
>>
>> Maybe something is happening where when the queue is empty the size is 0
>> --so malloc returns who-knows-what?
>
> Hi,
> thanks for the hint, but I don't think this is the Problem, because the
> Program crashes befor the read function returns. I think it is related with
> the way I create/bind the queue in the constructor, but I am not sure.
>
> Please don't think too much about it, I decided to stop my c++
> realtime-experiments anyway, will code plain c instead.
Some further things to try before giving C++ up - and maybe stumbling
over the same issue with C:
o Did you mlockall() your program? If not, lazy-mapped pages may cause
SEGFAULTS in the RT domain which will kill your program.
o Does your kernel log contain any hints of Xenomai about what's going
on?
o Try running your program inside a debugger to catch the fault and its
location. When your system is head-less, use gdbserver.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-01-20 8:37 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 [this message]
2006-01-20 8:48 ` Stephan Zimmermann
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=43D0A13C.10603@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=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.