Some platforms provide getcontext() but it does not work