[PATCH] xf86-video-intel: segfault

Henrik /KaarPoSoft henrik at kaarposoft.dk
Tue Jan 5 12:12:17 PST 2016


On 04-01-2016 17:45, Henrik /KaarPoSoft wrote:
> On 04-01-2016 05:45, Michel Dänzer wrote:
>> On 29.12.2015 01:39, Henrik /KaarPoSoft wrote:
>>> [...]
>>>
>>> I have fixed most of the warnings with this patch:
>>> http://sourceforge.net/p/kaarpux/code/ci/master/tree/master/packages/x/xf86-video-intel.files/kaarpux.patch
>>>
>>
>> The proper fix for this is
>> https://patchwork.freedesktop.org/patch/68368/ .
>>

I have tried the above patch, and now even Xvfb segfaults.

This patch seems to work for Xvfb:

==========

diff -Naur xorg-server-1.18.0.ORIG/include/list.h 
xorg-server-1.18.0/include/list.h
--- xorg-server-1.18.0.ORIG/include/list.h	2015-08-03 16:44:08.000000000 
+0200
+++ xorg-server-1.18.0/include/list.h	2016-01-05 20:13:22.721482012 +0100
@@ -305,7 +305,7 @@
   *
   */
  #define xorg_list_for_each_entry(pos, head, member)				\
-    for (pos = __container_of((head)->next, pos, member);		\
+    for (pos=NULL, pos = __container_of((head)->next, pos, member);		\
  	 &pos->member != (head);					\
  	 pos = __container_of(pos->member.next, pos, member))

===========

Seems to be the same issue which is discussed in the thread
[PATCH xserver v2] Fix uninitialized variable warnings reported by clang

/henrik



More information about the xorg-devel mailing list