|
From: Banibrata D. <du...@in...> - 2004-04-19 05:22:07
|
so, if i do a bzero() or memset() of mMsgPtr (for the entire allocated
size),
this error message should go away ? and same shall be true for my other =
post
?
this is the only thing that was not initialized !!
thanks,
bd
> -----Original Message-----
> From: val...@li...=20
> [mailto:val...@li...] On Behalf=20
> Of Nicholas Nethercote
> Sent: Saturday, April 17, 2004 5:04 PM
> To: Banibrata Dutta
> Cc: val...@li...
> Subject: Re: [Valgrind-users] Syscall param=20
> socketcall.send(msg) contains uninitialised or unaddressable byte
>=20
>=20
> On Sat, 17 Apr 2004, Banibrata Dutta wrote:
>=20
> > int UdpMsg::sendMsg ()
> > {
> > int retval=3D0;
> > if ((!mMsgPtr) || (!mMsgLen))
> > return (-1);
> > if ((retval =3D send(mSockId, (const void *)mMsgPtr,=20
> mMsgLen, 0)) =3D=3D -1)
> > ...
> > }
> >
> > inspite of initializing all the variable i.e.
> > int mSockId;
> > char* mMsgPtr;
> > int mMsgLen;
> >
> > in the c'tor, i am still getting the error...
> >
> > =3D=3D4975=3D=3D Syscall param socketcall.send(msg) contains=20
> uninitialised or=20
> > unaddressable byte(s)
> > =3D=3D4975=3D=3D at 0x3C244752: send (in /lib/i686/libc-2.2.4.so)
> > =3D=3D4975=3D=3D by 0x804C49F: UdpMsg::sendMsg(void) =
(UdpMsg.C:122)
> > =3D=3D4975=3D=3D by 0x804AE3C: Provider::inboundCallRsp(Context =
&)
> > (Provider.C:119)
> > =3D=3D4975=3D=3D by 0x804FAC7: Listener::inboundCallInd(Context =
&,
> > basic_string<char, string_char_traits<char>,=20
> > __default_alloc_template<true,
> > 0> > const &, Listener::ReqType)
> >
> > why so ?
>=20
> See section 3.3.5 of the manual again.
> (developer.kde.org/~sewardj/docs-2.0.0/mc_main.html#mc-top)
>=20
> N
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President=20
> and CEO of GenToo technologies. Learn everything from=20
> fundamentals to system=20
> =
administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
> _______________________________________________
> Valgrind-users mailing list Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>=20
|