valgrind errors in X server

Michal Suchanek hramrach at centrum.cz
Tue Oct 11 02:52:44 PDT 2011


Hello,

While valgrinding the X server to track a double free in one of my
patches I found the errors below.

I run Xorg +extension GLX +extension RANDR +extension RENDER -logfile
/scratch/xdummy.log -config ~hramrach/xdummy.conf :1


==3355== Conditional jump or move depends on uninitialised value(s)
==3355==    at 0x6DCE290: inflateReset2 (in /usr/lib/libz.so.1.2.3.4)
==3355==    by 0x6DCE37F: inflateInit2_ (in /usr/lib/libz.so.1.2.3.4)
==3355==    by 0x5B65E95: BufFilePushZIP (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B61698: FontFileOpen (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B729A9: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B630FC: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B64CAC: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x43A29F: doOpenFont (dixfonts.c:279)
==3355==    by 0x43A7A4: OpenFont (dixfonts.c:452)
==3355==    by 0x43A855: SetDefaultFont (dixfonts.c:129)
==3355==    by 0x427146: main (main.c:230)
==3355==  Uninitialised value was created by a heap allocation
==3355==    at 0x4C2779D: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3355==    by 0x6DCE35B: inflateInit2_ (in /usr/lib/libz.so.1.2.3.4)
==3355==    by 0x5B65E95: BufFilePushZIP (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B61698: FontFileOpen (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B729A9: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B630FC: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x5B64CAC: ??? (in /usr/lib/libXfont.so.1.4.1)
==3355==    by 0x43A29F: doOpenFont (dixfonts.c:279)
==3355==    by 0x43A7A4: OpenFont (dixfonts.c:452)
==3355==    by 0x43A855: SetDefaultFont (dixfonts.c:129)
==3355==    by 0x427146: main (main.c:230)
==3355==
==3355== Syscall param socketcall.setsockopt(optval) points to
uninitialised byte(s)
==3355==    at 0x691344A: setsockopt (syscall-template.S:82)
==3355==    by 0x4E362FC: udev_monitor_filter_update (in /lib/libudev.so.0.9.3)
==3355==    by 0x4E36414: udev_monitor_enable_receiving (in
/lib/libudev.so.0.9.3)
==3355==    by 0x492C45: config_udev_init (udev.c:293)
==3355==    by 0x491728: config_init (config.c:39)
==3355==    by 0x472944: InitInput (xf86Init.c:927)
==3355==    by 0x4271F5: main (main.c:258)
==3355==  Address 0x7ff000212 is on thread 1's stack
==3355==  Uninitialised value was created by a stack allocation
==3355==    at 0x4E2FA58: ??? (in /lib/libudev.so.0.9.3)
==3355==
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdummy.conf
Type: application/octet-stream
Size: 2756 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111011/0c8f8b21/attachment-0001.obj>


More information about the xorg-devel mailing list