The crash occurs on this line of code:
g_warning ("Failed to set CRTC mode %s: %m", crtc->current_mode->name);
As crtc is not NULL it must be current_mode or name that has an invalid value.
The crash occurs on this line of code:
g_warning ("Failed to set CRTC mode %s: %m", crtc->current_ mode->name) ;
As crtc is not NULL it must be current_mode or name that has an invalid value.