nanogui: valgrind log


Previous by date: 13 Mar 2006 08:06:03 +0000 Re: Continuing .pcf font cratering nano-X, Greg Haerr
Next by date: 13 Mar 2006 08:06:03 +0000 banner problem, sai baba
Previous in thread: 13 Mar 2006 08:06:03 +0000 Re: valgrind log, Greg Haerr
Next in thread: 13 Mar 2006 08:06:03 +0000 Re: valgrind log, Greg Haerr

Subject: Re: [nanogui] valgrind log
From: Michael Bogaerts ####@####.####
Date: 13 Mar 2006 08:06:03 +0000
Message-Id: <7.0.0.16.2.20060313090259.026fd9a8@turnhout.tokheim.com>

Greg,

My Application has no threads at all!? Could there be any other 
causes for this!?

Regards

-=Michael=-


At 02:30 10/03/2006, Greg Haerr wrote:
>When using threads, you must set THREADSAFE=Y in the
>config file.  This could be the cause of bad write() data below.
>The function nxFlushReq is called to flush a buffer of
>nano-X client commands queued up to send to the server.
>For speed, these aren't sent until a call requiring a server
>read (like GrGetNextEvent or GrGetWindowInfo) is called,
>or GrFlush() is called.  Then, the queued data is sent.
>
>Seems to me you might be having multiple threads unprotectingly
>call GrXXX functions at the same time...
>
>Regards,
>
>Greg
>
>
>: ==22052== Syscall param write(buf) points to uninitialised byte(s)
>: ==22052==    at 0x499093: __write_nocancel (in /lib/libpthread-2.3.5.so)
>: ==22052==    by 0x1B930874: nxFlushReq (nxproto.c:179)
>: ==22052==    by 0x1B92C9D9: ReadBlock (client.c:146)
>: ==22052==    by 0x1B92CAA0: CheckBlockType (client.c:229)
>: ==22052==    by 0x1B92FE9F: GrLoadImageFromFile (client.c:267)
>: ==22052==    by 0x805C5E6: CImage::LoadFromFile(std::string, int,
>: int) (Image.cpp:81)
>: ==22052==    by 0x8062F22: CConfig::PreLoadImages() (Config.cpp:134)
>: ==22052==    by 0x80626EF: CConfig::CConfig() (Config.cpp:51)
>: ==22052==    by 0x804A3A0: CWindowManager::init(ICS_NAME_DSCR*)
>: (WindowManager.cpp:90)
>: ==22052==    by 0x804D438: main (VgaUi.cpp:147)
>: ==22052==  Address 0x1B975572 is 82 bytes inside a block of size 2048
>alloc'd
>: ==22052==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
>: ==22052==    by 0x1B930842: nxFlushReq (nxproto.c:62)
>: ==22052==    by 0x1B9308F9: nxAllocReq (nxproto.c:45)
>: ==22052==    by 0x1B92E785: GrSetPortraitMode (client.c:4351)
>: ==22052==    by 0x804D314: main (VgaUi.cpp:77)
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####


Previous by date: 13 Mar 2006 08:06:03 +0000 Re: Continuing .pcf font cratering nano-X, Greg Haerr
Next by date: 13 Mar 2006 08:06:03 +0000 banner problem, sai baba
Previous in thread: 13 Mar 2006 08:06:03 +0000 Re: valgrind log, Greg Haerr
Next in thread: 13 Mar 2006 08:06:03 +0000 Re: valgrind log, Greg Haerr


Powered by ezmlm-browse 0.20.