OK, recompiled without optimizations but it still crashes. This time config is initialized incorrectly:
(gdb) p config
$9 = (xf86CrtcConfigPtr) 0x11
(gdb) p *config
Cannot access memory at address 0x11
config is derived from ((xf86CrtcConfigPtr) ((p)->privates[xf86CrtcConfigPrivateIndex].ptr))
The value of xf86CrtcConfigPrivateIndex is... -1:
(gdb) p xf86CrtcConfigPrivateIndex
$27 = -1
This value gets initialized to -1 in xf86Crtc.c:57 and gets updated in xf86Crtc.c:xf86CrtcConfigInit(). This function does not seem to be called before the crash occurs as it crashes before a breakpoint set on this function gets triggered. This leaves xf86CrtcConfigPrivateIndex set to -1 and with that config is undefined...
OK, recompiled without optimizations but it still crashes. This time config is initialized incorrectly:
(gdb) p config
$9 = (xf86CrtcConfigPtr) 0x11
(gdb) p *config
Cannot access memory at address 0x11
config is derived from ((xf86CrtcConfi gPtr) ((p)->privates[ xf86CrtcConfigP rivateIndex] .ptr))
The value of xf86CrtcConfigP rivateIndex is... -1:
(gdb) p xf86CrtcConfigP rivateIndex
$27 = -1
This value gets initialized to -1 in xf86Crtc.c:57 and gets updated in xf86Crtc. c:xf86CrtcConfi gInit() . This function does not seem to be called before the crash occurs as it crashes before a breakpoint set on this function gets triggered. This leaves xf86CrtcConfigP rivateIndex set to -1 and with that config is undefined...