[Xenomai] bad alloc in rt_queue_create with qlimit != Q_UNLIMITED; broken warning message in heapobj-pshared.c

Philippe Gerum rpm at xenomai.org
Wed Feb 22 18:36:13 CET 2017

On 02/21/2017 01:52 AM, Josh Bowman wrote:
> Hi Philippe,
> (Xenomai/mercury, stable-3.0.x branch.)
> If we pass anything but Q_UNLIMITED as the qlimit param to
> rt_queue_create(), the library miscalculates the total pool size when it
> adds in the message overhead. (The 3rd param is going to be multiplied by
> qlimit again inside heapobj_init_array.)
> Also, the 'len' parameter is missing in the warning message generated by
> heapobj_init() if the pool can't be allocated.

Merged, just in time for 3.0.4. Thanks.


More information about the Xenomai mailing list