> On 01/17/2016 05:48 PM, Philippe Gerum wrote: > > On 01/15/2016 05:34 PM, Thomas Axelsson wrote: > >> Hi, > >> > >> We are trying to use Alchemy RT Message Queues between two different > >> processes in Xenomai 3.0.1. However, our receiving process segfaults > >> when it receives a message. Using gdb, we see that the SIGSEGV occurs > >> in > >> rt_queue_receive_timed() when doing "ret = (ssize_t)msg->size;" > >> (queue.c:851). Can you help us solve the problem? > > > > The alchemy code is wrong, it should use offset-based references in > > this case since the message crosses address spaces. I will have a look > > and suggest a patch for testing. Thanks for reporting. > > > > Please pull from the stable-3.0.x branch, the commits below should fix the > issue: > > c23b72e alchemy/queue: disable buffer-to-buffer transfer in broadcast > mode > fef8ca3 alchemy/queue: care for messages crossing address spaces fa4cdcc > boilerplate/scope: add helpers for nullable reference > > -- > Philippe.
We can confirm that the new code fixes the issue. Thanks! //Thomas _______________________________________________ Xenomai mailing list Xenomai@xenomai.org http://xenomai.org/mailman/listinfo/xenomai