nanogui: valgrind


Previous by date: 16 Jun 2005 17:47:56 +0100 valgrind, skoe.nexgo.de
Next by date: 16 Jun 2005 17:47:56 +0100 Re: Patch: Images with Alpha channel, 8bpp grayscale, Greg Haerr
Previous in thread: 16 Jun 2005 17:47:56 +0100 valgrind, skoe.nexgo.de
Next in thread:

Subject: Re: [nanogui] valgrind
From: "Greg Haerr" ####@####.####
Date: 16 Jun 2005 17:47:56 +0100
Message-Id: <12c601c57293$0d2ab9b0$6401a8c0@winXP>

Hi Thomas,
    A quick look at this and I would say that perhaps valgrind is
complaining
about the way nano-X fills the queued write buffer for requests
coming in or leaving the socket between client and server.  The
GrNewWindow request packet (defined in nxproto.h) is 26 bytes
long...  and we "pad fill by without writing" these packets out
to a 32-bit boundary.  This is normal behaviour.

Regards,

Greg


I just used valgrind to check my application, it conplains about some things
in nano-X. Could anybody knowing the code well check it these messages are
okay? (Concerning the line numbers: imho it should be 99% 0.91 :-)

I'll check the server later, too.

==31695== Syscall param write(buf) contains uninitialised or unaddressable
byte(s)
==31695==    at 0x1BB10108: write (in /lib/i686/libc.so.6)
==31695==    by 0x80743F3: nxWriteSocket (nxproto.c:91)  => written =
write(nxSocket, buf, todo);
==31695==    by 0x8074560: nxFlushReq (nxproto.c:179) =>
nxWriteSocket(buf,todo);
==31695==    by 0x806F75A: ReadBlock (client.c:147)
==31695==    by 0x806F8C0: CheckBlockType (client.c:230)
==31695==    by 0x806F97A: TypedReadBlock (client.c:268)
==31695==    by 0x8070C37: GrNewWindow (client.c:1315)
==31695==  Address 0x1BB8169A is 26 bytes inside a block of size 2048
alloc'd
==31695==    at 0x1B906E20: malloc (vg_replace_malloc.c:131)
==31695==    by 0x8074351: nxAllocReqbuffer (nxproto.c:62) => reqbuf.buffer
= malloc(newsize);
==31695==    by 0x807446D: nxFlushReq (nxproto.c:112)
==31695==    by 0x80742F3: nxAllocReq (nxproto.c:45)
==31695==    by 0x806FDC2: GrGetScreenInfo (client.c:555)

With regards,

Thomas Giesel


Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1

---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Previous by date: 16 Jun 2005 17:47:56 +0100 valgrind, skoe.nexgo.de
Next by date: 16 Jun 2005 17:47:56 +0100 Re: Patch: Images with Alpha channel, 8bpp grayscale, Greg Haerr
Previous in thread: 16 Jun 2005 17:47:56 +0100 valgrind, skoe.nexgo.de
Next in thread:


Powered by ezmlm-browse 0.20.