shared_malloc returns NULL on failure