I am doing work with the training graphics library mlx. While testing the library, I ran into the problem that this code is causing my imac mojave to freeze. Only reboot helps.