I don't know it everyone saw this on the XFree86 devel list, but it
might be a useful tool.

--                             /\
         Jens Owen            /  \/\ _    
  [EMAIL PROTECTED]  /    \ \ \   Steamboat Springs, Colorado
--- Begin Message ---
On Wed, May 22, 2002 at 07:47:32PM +0200, Petter Reinholdtsen wrote:
>Check out Valgrind, <URL:http://developer.kde.org/~sewardj/>.  Perhaps
>it can be used to find problems with XFree86?  At least it reports
>several problems when I run celestia (an OpenGL universe
>simulator).  Some examples:
>
>  ==26337== Syscall param write(buf) contains uninitialised or unaddressable byte(s)
>  ==26337==    at 0x40A253E4: (within /lib/libc-2.2.5.so)
>  ==26337==    by 0x40483653: (within /usr/X11R6/lib/libICE.so.6.3)
>  ==26337==    by 0x4047B1FC: (within /usr/X11R6/lib/libICE.so.6.3)
>  ==26337==    Address 0x41F9C1CF is 3 bytes inside a block of size 1024 alloc'd
>  ==26337==    at 0x4004088B: (within /usr/lib/valgrind/valgrind.so)
>  ==26337==    by 0x40478410: (within /usr/X11R6/lib/libICE.so.6.3)
>  ==26337==    by 0x4046E301: (within /usr/X11R6/lib/libSM.so.6.0)
>
>  ==26337== Invalid write of size 4
>  ==26337==    at 0x45960F9C: (within /usr/X11R6/lib/modules/dri/mga_dri.so)
>  ==26337==    by 0x45961D6D: (within /usr/X11R6/lib/modules/dri/mga_dri.so)
>  ==26337==    by 0x45961D07: (within /usr/X11R6/lib/modules/dri/mga_dri.so)
>  ==26337==    Address 0x47DAA000 is not stack'd, malloc'd or free'd
>  --26337--
>
>Unfortunately, the Debian XFree86 installation is without debugging
>information, so I need to recompile before I can find out more on
>these problems.  I just wanted everyone to know about this great tool

Yes, it looks useful.  Thanks for bringing it up here.

BTW, the last one (in mga_dri.so) is probably a write to a mmap'd area.

David
-- 
David Dawes
Release Engineer/Architect                      The XFree86 Project
www.XFree86.org/~dawes

--- End Message ---

Reply via email to