Re: Bluetooth mesh_demo crashes


Johan Hedberg
 

On Mon, Oct 09, 2017, Steve Brown wrote:
Yes, it looks indeed like there's a missing initialization of this
queue. I think this is a regression that slipped in at some point in
the recent past, and got uncovered now when the local network
interface is always enabled (instead of being behind a Kconfig
option).

Instead of calling k_fifo_init however, I think it's more efficient
to use a static initializer for this like I've done in the attached
patch. Can you confirm that this also fixes the issue for you? I'll
then create a pull request out of it.
It did fix the problem.
Thanks for testing! The PR is here:

https://github.com/zephyrproject-rtos/zephyr/pull/4238

Johan

Join devel@lists.zephyrproject.org to automatically receive all group messages.