π Bug Report
This bug gets shown with logs but probably it's a race condition related to threading, specially in destruction of TypeScript loader. This has to be reviewed carefully because the behavior is not deterministic. I have achieved to remove all the logs, making a no-op the log_write macro, and then the error happened in a different place, but I do not have those logs right now.
I am leaving here ./docker-compose.sh test logs in order to provide basic info about the bug. This should be reviewed with either helgrind or thread sanitizer.
docker-compose.sh.test.output.txt