[PATCH] dmx segfault at startup in dmxSync (xorg-server 1.19.3)
Submitted by Nicolas Porcel
Assigned to dmx..@..op.org
Link to original bug (#101413)
Description
Created attachment 131936 Avoid segfault when dmxSyncTimer is NULL
I setup 3 display with Xephyr and created a single display with dmx but I got a segfault. Here is the stack:
#0 0x000000000054e500 in TimerForce ()
#1 0x000000000042e461 in dmxSync ()
#2 0x00000000004207e3 in dmxDPMSInit ()
#3 0x000000000042d3fa in dmxBEScreenInit ()
#4 0x000000000042d85b in dmxScreenInit ()
#5 0x000000000051ab87 in AddScreen ()
#6 0x0000000000428396 in InitOutput ()
#7 0x000000000051e706 in dix_main ()
#8 0x00007ffff58b11e0 in __libc_start_main () from /lib64/libc.so.6
#9 0x000000000041c2fa in _start ()
With gdb, I found that the parameter passed to TimerForce (dmxSyncTimer) was NULL. I attached a quick fix to avoid calling TimerForce with a NULL pointer.
Patch 131936, "Avoid segfault when dmxSyncTimer is NULL":
dmx_segfault.patch