Bug 32033 - [r300g] valgrind Syscall param ioctl(generic) points to uninitialised byte(s) ioctl (syscall-template.S:82)
Summary: [r300g] valgrind Syscall param ioctl(generic) points to uninitialised byte(s)...
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 18:38 UTC by Vinson Lee
Modified: 2010-12-04 01:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2010-12-01 18:38:49 UTC
mesa: de3ff5af49369d187d88e5399f388c6e48c5384f (master)

chipset: RV530 71C5 (ATI Radeon X1600)
system architecture: i686
libdrm-dev: 2.4.21-1ubuntu2.1
kernel version: 2.6.35-23-generic
Linux distribution: Ubuntu 10.10 i386

This valgrind error appears with any piglit test.


$ valgrind --track-origins=yes ./bin/crash-cubemap-order -auto
==29125== Memcheck, a memory error detector
==29125== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==29125== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==29125== Command: ./bin/crash-cubemap-order -auto
==29125== 
radeon: Successfully grabbed chipset info from kernel!
radeon: DRM version: 2.5.0 ID: 0x71c5 GB: 1 Z: 2
radeon: GART size: 509 MB VRAM size: 128 MB
radeon: HyperZ: NO
==29125== Syscall param ioctl(generic) points to uninitialised byte(s)
==29125==    at 0x43BEF49: ioctl (syscall-template.S:82)
==29125==    by 0x4478B3A: drmCommandWriteRead (in /lib/libdrm.so.2.4.0)
==29125==    by 0x570BE5D: radeon_cs_manager_gem_ctor (radeon_cs_gem.c:526)
==29125==    by 0x4BE3357: radeon_setup_winsys (radeon_r300.c:271)
==29125==    by 0x4BE296E: r300_drm_winsys_screen_create (radeon_drm.c:203)
==29125==    by 0x4BE1E35: create_screen (target.c:13)
==29125==    by 0x530C06C: dri2_init_screen (dri2.c:524)
==29125==    by 0x4CFE5E2: dri2CreateNewScreen (dri_util.c:875)
==29125==    by 0x407482F: dri2CreateScreen (dri2_glx.c:819)
==29125==    by 0x404F131: __glXInitialize (glxext.c:760)
==29125==    by 0x404C26E: glXGetFBConfigs (glxcmds.c:1530)
==29125==    by 0x404E402: glXChooseFBConfig (glxcmds.c:1490)
==29125==  Address 0xbebdfad4 is on thread 1's stack
==29125==  Uninitialised value was created by a stack allocation
==29125==    at 0x570BDE3: radeon_cs_manager_gem_ctor (radeon_cs_gem.c:532)
Comment 1 Marek Olšák 2010-12-01 19:19:20 UTC
Fixed by libdrm commit 8420743301a36dc1316fadf53bf8e1478068400a.
Comment 2 Vinson Lee 2010-12-04 01:10:58 UTC
libdrm: 8420743301a36dc1316fadf53bf8e1478068400a (master)

Verified fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.