Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=8218          
     




------- Additional Comments From [EMAIL PROTECTED]  2006-09-20 17:05 -------
(In reply to comment #14)
> > This also looked interesting:
> > ==17123== Invalid write of size 1
> > ==17123==    at 0x40069A6: memcpy (mac_replace_strmem.c:394)
> > ==17123==    by 0x4156245: r200UploadTexImages (string3.h:51)
> > ==17123==    by 0x41580E9: r200UpdateTextureUnit (r200_texstate.c:1546)
> Yes, somewhat interesting. Unfortunately the output is a bit useless, what's
> up with that string3.h file? No idea on which line in r200UploadTexImages
> function this happens.

I removed the "static" qualifiers from a few functions, and now the valgrind
output looks like this:

==28760== Invalid write of size 1
==28760==    at 0x40069A6: memcpy (mac_replace_strmem.c:394)
==28760==    by 0x415582E: r200UploadRectSubImage (string3.h:51)
==28760==    by 0x4155F13: uploadSubImage (r200_texmem.c:322)
==28760==    by 0x41564D0: r200UploadTexImages (r200_texmem.c:516)
==28760==    by 0x4158689: r200UpdateTextureUnit (r200_texstate.c:1671)
==28760==    by 0x4158B9F: r200UpdateTextureState (r200_texstate.c:1793)
==28760==    by 0x414C6C3: r200ValidateState (r200_state.c:2372)
==28760==    by 0x4145640: r200MakeCurrent (r200_context.c:718)
==28760==    by 0x414233F: driBindContext (dri_util.c:343)
==28760==    by 0x4277CABB: (within /usr/lib/libGL.so.1.2)
==28760==    by 0x4277ECAE: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==28760==    by 0x4277EF42: glXMakeCurrent (in /usr/lib/libGL.so.1.2)
==28760==  Address 0xB7EEC183 is not stack'd, malloc'd or (recently) free'd
==28760==
==28760== Invalid write of size 1
==28760==    at 0x40069AC: memcpy (mac_replace_strmem.c:394)
==28760==    by 0x415582E: r200UploadRectSubImage (string3.h:51)
==28760==    by 0x4155F13: uploadSubImage (r200_texmem.c:322)
==28760==    by 0x41564D0: r200UploadTexImages (r200_texmem.c:516)
==28760==    by 0x4158689: r200UpdateTextureUnit (r200_texstate.c:1671)
==28760==    by 0x4158B9F: r200UpdateTextureState (r200_texstate.c:1793)
==28760==    by 0x414C6C3: r200ValidateState (r200_state.c:2372)
==28760==    by 0x4145640: r200MakeCurrent (r200_context.c:718)
==28760==    by 0x414233F: driBindContext (dri_util.c:343)
==28760==    by 0x4277CABB: (within /usr/lib/libGL.so.1.2)
==28760==    by 0x4277ECAE: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==28760==    by 0x4277EF42: glXMakeCurrent (in /usr/lib/libGL.so.1.2)
==28760==  Address 0xB7EEC182 is not stack'd, malloc'd or (recently) free'd
==28760==
==28760== Invalid write of size 1
==28760==    at 0x40069B3: memcpy (mac_replace_strmem.c:394)
==28760==    by 0x415582E: r200UploadRectSubImage (string3.h:51)
==28760==    by 0x4155F13: uploadSubImage (r200_texmem.c:322)
==28760==    by 0x41564D0: r200UploadTexImages (r200_texmem.c:516)
==28760==    by 0x4158689: r200UpdateTextureUnit (r200_texstate.c:1671)
==28760==    by 0x4158B9F: r200UpdateTextureState (r200_texstate.c:1793)
==28760==    by 0x414C6C3: r200ValidateState (r200_state.c:2372)
==28760==    by 0x4145640: r200MakeCurrent (r200_context.c:718)
==28760==    by 0x414233F: driBindContext (dri_util.c:343)
==28760==    by 0x4277CABB: (within /usr/lib/libGL.so.1.2)
==28760==    by 0x4277ECAE: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==28760==    by 0x4277EF42: glXMakeCurrent (in /usr/lib/libGL.so.1.2)
==28760==  Address 0xB7EEC181 is not stack'd, malloc'd or (recently) free'd
==28760==
==28760== Invalid write of size 1
==28760==    at 0x40069BD: memcpy (mac_replace_strmem.c:394)
==28760==    by 0x415582E: r200UploadRectSubImage (string3.h:51)
==28760==    by 0x4155F13: uploadSubImage (r200_texmem.c:322)
==28760==    by 0x41564D0: r200UploadTexImages (r200_texmem.c:516)
==28760==    by 0x4158689: r200UpdateTextureUnit (r200_texstate.c:1671)
==28760==    by 0x4158B9F: r200UpdateTextureState (r200_texstate.c:1793)
==28760==    by 0x414C6C3: r200ValidateState (r200_state.c:2372)
==28760==    by 0x4145640: r200MakeCurrent (r200_context.c:718)
==28760==    by 0x414233F: driBindContext (dri_util.c:343)
==28760==    by 0x4277CABB: (within /usr/lib/libGL.so.1.2)
==28760==    by 0x4277ECAE: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2)
==28760==    by 0x4277EF42: glXMakeCurrent (in /usr/lib/libGL.so.1.2)
==28760==  Address 0xB7EEC180 is not stack'd, malloc'd or (recently) free'd
==28760==

string3.h is actually /usr/include/bits/string3.h, which defines memcpy() thus:

#define memcpy(dest, src, len) \
  ((__bos0 (dest) != (size_t) -1)                                       \
   ? __builtin___memcpy_chk (dest, src, len, __bos0 (dest))             \
   : __memcpy_ichk (dest, src, len))
static __always_inline void *
__NTH (__memcpy_ichk (void *__restrict __dest, __const void *__restrict __src,
                      size_t __len))
{
  return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
}
          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to