http://bugs.freedesktop.org/show_bug.cgi?id=18639
Summary: valgrind reports invalid write of size 4 in r200_swtcl.c
(of mesa-7.2)
Product: Mesa
Version: unspecified
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r200
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=20471)
--> (http://bugs.freedesktop.org/attachment.cgi?id=20471)
outpout of valgrind --logfile=glxgears.log /usr/bin/valgrind
Being after a strange problem with mesa on Gentoo x86 hardened, I did run
valgrind on glxgears demo program, having compiled all mesa-7.2 with gcc-4.3.2,
option -g -O0, and --disable-asm configure option.
Valgrind reports (beneath other inconsistencies) a bunch of illegal writes in
r200, which, however, may be DMA related and thus simply a problem of valgrind
itself. I wouldn't look too closely at this, if I would not had constantly seen
an sse-related crash due to a dangling function pointer.
Invalid write of size 4
==3606== at 0x4FF1DA2: r200_quad (r200_swtcl.c:18340)
The high line number given by valgrind stems from r200_swtcl.c being compiled
as an already preprocessed file (due to gdb limitations). Since it is very
large, I'll attach it upon request only.
Inspecting the program using gdb does not give any clue what is going on:
18340 do { for ( j = 0 ; j < vertsize ; j++ ) vb[j] = ((GLuint *)v0)[j]; vb
+= vertsize ; } while (0);
gdb says, that "vb" would be invalid, but this simply can not be, and is
probably a consequence of gdb not dealing well with DMA-related address
ranges."vertsize" if 4, as is "j" at the end of this statement.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel