From: bugzilla-daemon@freedesktop.org Subject: [Bug 90194] Fix Valgrind error in drmPrimeHandleToFD Date: Mon, 27 Apr 2015 13:48:14 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0699634156==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C6D96E383 for ; Mon, 27 Apr 2015 06:48:14 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0699634156== Content-Type: multipart/alternative; boundary="1430142494.4F6C7e0.18087"; charset="UTF-8" --1430142494.4F6C7e0.18087 Date: Mon, 27 Apr 2015 13:48:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=90194 Bug ID: 90194 Summary: Fix Valgrind error in drmPrimeHandleToFD Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: libdrm Assignee: dri-devel@lists.freedesktop.org Reporter: guillaume.desmottes@collabora.co.uk args.fd is left uninitialized making Valgrind angry. ==14518== Syscall param ioctl(generic) points to uninitialised byte(s) ==14518== at 0x3EB84F6407: ioctl (syscall-template.S:81) ==14518== by 0x3B01803B17: drmIoctl (xf86drm.c:175) ==14518== by 0x3B01806A7B: drmPrimeHandleToFD (xf86drm.c:2701) ==14518== by 0xDF0866D: drm_intel_bo_gem_export_to_prime (intel_bufmgr_gem.c:2729) ==14518== by 0xDA92DF7: intel_query_image (intel_screen.c:563) ==14518== by 0x32E484E64D: dri3_alloc_render_buffer (dri3_glx.c:926) ==14518== by 0x32E484E64D: dri3_get_buffer.isra.10 (dri3_glx.c:1307) ==14518== by 0x32E484F499: dri3_get_buffers (dri3_glx.c:1466) ==14518== by 0xDAB0486: intel_update_image_buffers (brw_context.c:1475) ==14518== by 0xDAB0486: intel_update_renderbuffers (brw_context.c:1167) ==14518== by 0xDAB07B4: intel_prepare_render (brw_context.c:1188) ==14518== by 0xDAB0906: intelMakeCurrent (brw_context.c:1031) ==14518== by 0xDA51495: driBindContext (dri_util.c:538) ==14518== by 0x32E484DAA9: dri3_bind_context (dri3_glx.c:145) ==14518== by 0x32E481E5E6: MakeContextCurrent (glxcurrent.c:243) ==14518== by 0x8052F3C: gst_gl_context_glx_activate (gstglcontext_glx.c:401) ==14518== by 0x8036D51: gst_gl_context_activate (gstglcontext.c:632) ==14518== by 0x803882C: gst_gl_context_create_thread (gstglcontext.c:1282) ==14518== by 0x3EBB0703D4: g_thread_proxy (gthread.c:764) ==14518== by 0x3EB8807529: start_thread (pthread_create.c:310) ==14518== by 0x3EB850022C: clone (clone.S:109) ==14518== Address 0xd793a18 is on thread 9's stack ==14518== in frame #2, created by drmPrimeHandleToFD (xf86drm.c:2695) -- You are receiving this mail because: You are the assignee for the bug. --1430142494.4F6C7e0.18087 Date: Mon, 27 Apr 2015 13:48:14 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 90194
Summary Fix Valgrind error in drmPrimeHandleToFD
Product DRI
Version XOrg git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component libdrm
Assignee dri-devel@lists.freedesktop.org
Reporter guillaume.desmottes@collabora.co.uk

args.fd is left uninitialized making Valgrind angry.

==14518== Syscall param ioctl(generic) points to uninitialised byte(s)
==14518==    at 0x3EB84F6407: ioctl (syscall-template.S:81)
==14518==    by 0x3B01803B17: drmIoctl (xf86drm.c:175)
==14518==    by 0x3B01806A7B: drmPrimeHandleToFD (xf86drm.c:2701)
==14518==    by 0xDF0866D: drm_intel_bo_gem_export_to_prime
(intel_bufmgr_gem.c:2729)
==14518==    by 0xDA92DF7: intel_query_image (intel_screen.c:563)
==14518==    by 0x32E484E64D: dri3_alloc_render_buffer (dri3_glx.c:926)
==14518==    by 0x32E484E64D: dri3_get_buffer.isra.10 (dri3_glx.c:1307)
==14518==    by 0x32E484F499: dri3_get_buffers (dri3_glx.c:1466)
==14518==    by 0xDAB0486: intel_update_image_buffers (brw_context.c:1475)
==14518==    by 0xDAB0486: intel_update_renderbuffers (brw_context.c:1167)
==14518==    by 0xDAB07B4: intel_prepare_render (brw_context.c:1188)
==14518==    by 0xDAB0906: intelMakeCurrent (brw_context.c:1031)
==14518==    by 0xDA51495: driBindContext (dri_util.c:538)
==14518==    by 0x32E484DAA9: dri3_bind_context (dri3_glx.c:145)
==14518==    by 0x32E481E5E6: MakeContextCurrent (glxcurrent.c:243)
==14518==    by 0x8052F3C: gst_gl_context_glx_activate (gstglcontext_glx.c:401)
==14518==    by 0x8036D51: gst_gl_context_activate (gstglcontext.c:632)
==14518==    by 0x803882C: gst_gl_context_create_thread (gstglcontext.c:1282)
==14518==    by 0x3EBB0703D4: g_thread_proxy (gthread.c:764)
==14518==    by 0x3EB8807529: start_thread (pthread_create.c:310)
==14518==    by 0x3EB850022C: clone (clone.S:109)
==14518==  Address 0xd793a18 is on thread 9's stack
==14518==  in frame #2, created by drmPrimeHandleToFD (xf86drm.c:2695)


You are receiving this mail because:
  • You are the assignee for the bug.
--1430142494.4F6C7e0.18087-- --===============0699634156== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0699634156==--