There are some variables common. So when two threads try to use wrt transform then program will crash with SIGSEV.