ArcticaProject / nx-libs

nx-libs
Other
120 stars 39 forks source link

valgrind reports unitialized data in nxagent #583

Open uli42 opened 6 years ago

uli42 commented 6 years ago

On running nxagent :56 with valgrind it got this:

==15074== Syscall param writev(vector[...]) points to uninitialised byte(s)
==15074==    at 0x77DB3F0: __writev_nocancel (syscall-template.S:84)
==15074==    by 0x488D24: _XSERVTransSocketWritev (Xtranssock.c:2955)
==15074==    by 0x47F26A: FlushClient (io.c:1080)
==15074==    by 0x47F837: WriteToClient (io.c:991)
==15074==    by 0x4313B3: ProcLookupColor (dispatch.c:3003)
==15074==    by 0x434585: Dispatch (NXdispatch.c:482)
==15074==    by 0x40EF77: main (main.c:355)
==15074==  Address 0xffefffa81 is on thread 1's stack
==15074==  in frame #4, created by ProcLookupColor (dispatch.c:2979)
uli42 commented 6 years ago

And very similar:

==17513== Syscall param writev(vector[...]) points to uninitialised byte(s)
==17513==    at 0x77E1FA0: __writev_nocancel (syscall-template.S:84)
==17513==    by 0x488D54: _XSERVTransSocketWritev (Xtranssock.c:2955)
==17513==    by 0x47F27A: FlushClient (io.c:1080)
==17513==    by 0x47F847: WriteToClient (io.c:991)
==17513==    by 0x462324: ProcGetPointerMapping (devices.c:1169)
==17513==    by 0x434585: Dispatch (NXdispatch.c:482)
==17513==    by 0x40EF77: main (main.c:355)
==17513==  Address 0xffefff778 is on thread 1's stack
==17513==  in frame #4, created by ProcGetPointerMapping (devices.c:1160)
==17513==  Uninitialised value was created by a stack allocation
==17513==    at 0x462270: ProcGetPointerMapping (devices.c:1160)