jody wrote: > I simplified the server to the point where it only calls accept (see below), > and the errors still prevail. > I compile it with > g++ -g -Wall dummysrv.cpp -o dummysrv > (g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)) > > What do these messages mean and how can i fix that? > The position "below main" is a little bit vague...
The problem is that you're not setting slAddr before you make the call to accept - you are supposed to set it to indicate how many bytes the addr argument points to. So valgrind is saying addrlen_in is uninitialised (correct) and then checking for an undefined number of bytes at addr being writable and find that some of them aren't. Tom -- Tom Hughes (t...@compton.nu) http://www.compton.nu/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users