Does anybody know whether it OK to create a t_struct ref from a NULL pointer ? pattern_paint_prepare() creates such a ref but do_execstack() applies gs_struct_type_name_string() to the reference which SEGV when the ref->value is NULL.