Canceling a thread (see pthread_cancel(3)) while it is executingin the OpenGL driver causes undefined behavior. For applicationsthat wish to use thread cancellation, it is recommended thatthreads disable cancellation using pthread_setcancelstate(3) whileexecuting OpenGL or GLX commands.