[Xenomai] init_memory_pool error

Philippe Gerum rpm at xenomai.org
Sun Jan 29 16:04:28 CET 2017


On 01/25/2017 05:58 PM, Stéphane Ancelot wrote:
> Hi,
> 
> I am stuck with the next branch of xenomai, when using tune variables .
> 
> when launching the program without any parameters , I have the next
> error message :
> 
> init_memory_pool(): invalid pool
>    0"006.881| BUG in heapobj_pkg_init_private(): [main] cannot
> initialize TLSF memory manager
> 
> however, if I launch it with --mem-pool-size option, it runs ....
> 
> here is what I setted up in tunables variables :
> 
> static int foo_tune(void)
> {
> 
>              set_config_tunable(session_label, "toot");
>             set_config_tunable(mem_pool_size,8000000);
>             printf("mem pool size=%ld\n",
> get_config_tunable(mem_pool_size));
>             return 0; /* Success, otherwise -errno */
> }
> 

A TLSF issue revealed by a recent commit. Fixed by this one:
http://git.xenomai.org/xenomai-3.git/commit/?h=stable-3.0.x&id=00e3d016519efc54cb2b2b33437814ff6725cf33

-- 
Philippe.



More information about the Xenomai mailing list