I expected that, but the issue is that there will be problems if the size is not provided by -m and the shm_mem_size is set after a config directive that needs shared memory, because the size is 0 at that moment. Probably the init of the size should be done inside the function initializing the shared memory, if it is 0.