void bad_func(void) { static char bad_var = 0x23; } int vertex_main( int thread ) { void (*func_ptr)(void); func_ptr = bad_func; (*func_ptr)(); }