Comment 6 for bug 311544

Revision history for this message
knarf (launchpad-ubuntu-f) wrote :

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...