mheily / jobd

A job management framework
Other
143 stars 15 forks source link

memory corruption in ipcSession accept handling #69

Closed mheily closed 8 years ago

mheily commented 8 years ago

saw this:

       ipc.cpp:63    void ipc_request_handler()     accepting connection
==30112== Syscall param socketcall.accept(addrlen_in) points to uninitialised byte(s)
==30112==    at 0x5A278EA: _accept (in /lib/libc.so.7)
==30112==    by 0x42EBBC: libjob::ipcSession::ipcSession(int, sockaddr_un) (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x42E561: libjob::ipcServer::acceptConnection() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x40D300: ipc_request_handler() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x41A6DB: JobManager::mainLoop() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x416AB9: main (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==  Address 0x7ff0006f4 is on thread 1's stack
==30112==  in frame #3, created by ipc_request_handler() (???)
==30112== 
==30112== Syscall param socketcall.accept(addrlen_out) points to uninitialised byte(s)
==30112==    at 0x5A278EA: _accept (in /lib/libc.so.7)
==30112==    by 0x42EBBC: libjob::ipcSession::ipcSession(int, sockaddr_un) (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x42E561: libjob::ipcServer::acceptConnection() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x40D300: ipc_request_handler() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x41A6DB: JobManager::mainLoop() (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==    by 0x416AB9: main (in /usr/home/mark/proj/jobd/src/jobd/jobd)
==30112==  Address 0x7ff0006f4 is on thread 1's stack
==30112==  in frame #3, created by ipc_request_handler() (???)
==30112==