Stack overflow when repeat Mongoose OS + Google IoT Core example

Without a core dump or some clear indication on what is going on it is really hard to pinpoint the issue unless one really knows the code.

Please reduce to a bare minimum to reproduce the issue and post the error.
In the meantime you can tie your app to 2.18.0 in your mos.yml Revert to older mos version