Crystal 1.0.0 release build of kemal app failing with following error

I am running a Kemal web application which was running quite well up 0.36. Recently decided to update to 1.0.0 but when i build the release of the app or when i try to run it. It fails with the following error.

dl-call-libc-early-init.c:37: _dl_call_libc_early_init: Assertion sym != NULL’ failed.`

I tried it in my ubuntu 20.10 and docker image of crystal

FROM crystallang/crystal

It fails when the first request reaches the app.

Does it work in debug mode? Does it use any C library directly?