|
From: Patrick M. <un...@pa...> - 2003-10-16 19:16:00
|
The simple answer to this is that you cant valgrind something that interacts with hardware, and due to the way mesa is setup, it loads dri modules direc= tly, and interacts with hardware. Basically, you cant valgrind with hardware acceleration enabled. However, t= here is a neat trick to turn it off, though it gets way slow. At your command prompt, before running valgrind, run... export LIBGL_ALWAYS_INDIRECT=3Dyes =2E.. and it should work fine. I usually do that, in addition to... export LIBGL_DEBUG=3Dyes export MESA_DEBUG=3Dyes =2E.. to enable more debugging output. On 16-Oct-2003, aho...@es... wrote: > I get the following log and segfault when running glxgears (or any other > GL program it seems) with valgrind. My machine config is: >=20 > AMD XP 1900 > Radeon 9000 > RH 9 with DRI from cvs >=20 > Any suggestions where to start? Is there a convenient way to run gdb on= =20 > valgrind while still using the 'valgrind' wrapper script? >=20 > cheers, > aaron >=20 > wilder:~$ valgrind -v glxgears > =3D=3D10543=3D=3D Memcheck, a.k.a. Valgrind, a memory error detector for = x86-linux. > =3D=3D10543=3D=3D Copyright (C) 2002-2003, and GNU GPL'd, by Julian Sewar= d. > =3D=3D10543=3D=3D Using valgrind-20031012, a program supervision framewor= k for x86-linux. > =3D=3D10543=3D=3D Copyright (C) 2000-2003, and GNU GPL'd, by Julian Sewar= d. > =3D=3D10543=3D=3D Command line: > =3D=3D10543=3D=3D glxgears > =3D=3D10543=3D=3D Startup, with flags: > =3D=3D10543=3D=3D --suppressions=3D/home/aholtzma/lib/valgrind/default= =2Esupp > =3D=3D10543=3D=3D -v > =3D=3D10543=3D=3D Reading syms from /usr/X11R6/bin/glxgears > =3D=3D10543=3D=3D object doesn't have a symbol table > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /lib/ld-2.3.2.so > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /home/aholtzma/lib/valgrind/vgskin_me= mcheck.so > =3D=3D10543=3D=3D Reading syms from /home/aholtzma/lib/valgrind/valgrind.= so > =3D=3D10543=3D=3D Reading syms from /usr/X11R6/lib/libGL.so.1.2 > =3D=3D10543=3D=3D Reading syms from /usr/X11R6/lib/libXext.so.6.4 > =3D=3D10543=3D=3D object doesn't have a symbol table > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /usr/X11R6/lib/libX11.so.6.2 > =3D=3D10543=3D=3D object doesn't have a symbol table > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /home/aholtzma/lib/valgrind/libpthrea= d.so > =3D=3D10543=3D=3D Reading syms from /lib/libm-2.3.2.so > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /lib/libc-2.3.2.so > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading syms from /lib/libdl-2.3.2.so > =3D=3D10543=3D=3D object doesn't have any debug info > =3D=3D10543=3D=3D Reading suppressions file: /home/aholtzma/lib/valgrind/= default.supp > =3D=3D10543=3D=3D Estimated CPU clock rate is 1601 MHz > =3D=3D10543=3D=3D REPLACING libc(__GI___errno_location) with libpthread(_= _errno_location) > =3D=3D10543=3D=3D REPLACING libc(__GI___h_errno_location) with libpthread= (__h_errno_location) > =3D=3D10543=3D=3D REPLACING libc(__GI___res_state) with libpthread(__res_= state) > =3D=3D10543=3D=3D=20 > =3D=3D10543=3D=3D TRANSLATE: 0x403F4CF0 redirected to 0x40387DC8 > =3D=3D10543=3D=3D Reading syms from /usr/X11R6/lib/modules/dri/r200_dri.so > =3D=3D10543=3D=3D Syscall param ioctl(generic) contains uninitialised or = unaddressable byte(s) > =3D=3D10543=3D=3D at 0x404BAD24: __GI___ioctl (in /lib/libc-2.3.2.so) > =3D=3D10543=3D=3D by 0x417C6B65: r200CreateScreen (r200_screen.c:185) > =3D=3D10543=3D=3D by 0x417C6E93: r200InitDriver (r200_screen.c:301) > =3D=3D10543=3D=3D by 0x416B2AF8: __driUtilCreateScreen (dri_util.c:120= 1) > =3D=3D10543=3D=3D Address 0xBFFFED94 is on thread 1's stack > =3D=3D10543=3D=3D=20 > =3D=3D10543=3D=3D Use of uninitialised value of size 4 > =3D=3D10543=3D=3D at 0x417A9D4A: sigfpe_handler (common_x86.c:118) > =3D=3D10543=3D=3D by 0x4017EF2F: ??? (vg_hashtable.c:213) > =3D=3D10543=3D=3D by 0x417A9F6B: _mesa_init_all_x86_transform_asm (com= mon_x86.c:275) > =3D=3D10543=3D=3D by 0x4172D95A: _math_init (m_xform.c:218) > =3D=3D10543=3D=3D=20 > =3D=3D10543=3D=3D Invalid read of size 2 > =3D=3D10543=3D=3D at 0x417A9D4A: sigfpe_handler (common_x86.c:118) > =3D=3D10543=3D=3D by 0x4017EF2F: ??? (vg_hashtable.c:213) > =3D=3D10543=3D=3D by 0x417A9F6B: _mesa_init_all_x86_transform_asm (com= mon_x86.c:275) > =3D=3D10543=3D=3D by 0x4172D95A: _math_init (m_xform.c:218) > =3D=3D10543=3D=3D Address 0x6E is not stack'd, malloc'd or free'd > Segmentation fault > wilder:~$=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users --=20 Patrick "Diablo-D3" McFarland || un...@pa... "Computer games don't affect kids; I mean if Pac-Man affected us as kids, w= e'd=20 all be running around in darkened rooms, munching magic pills and listening= to repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989 |