大龙的博客

常用链接

统计

最新评论

Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化

==15482== Thread 3:
==15482== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==15482==    at 0x3AD9A0D201: send (in /lib64/libpthread-2.5.so)
==15482==    by 0x424B62: CRecvAndSendTask::SendData() (recvandsendtask.cpp:166)
==15482==    by 0x41D591: CCommonTask::SendProcess() (CommonTask.cpp:134)
==15482==    by 0x4248D5: CRecvAndSendTask::HandleProcess(int) (recvandsendtask.cpp:73)
==15482==    by 0x430297: CRealEpoll::EpollWait() (myepoll.cpp:96)
==15482==    by 0x42372D: CNetProcessThread::HandleProcess() (netprocessthread.cpp:87)
==15482==    by 0x423A64: CNetProcessThread::Run() (netprocessthread.cpp:46)
==15482==    by 0x41F7EC: CCommonThread::ThreadEntry(void*) (commonthread.cpp:73)
==15482==    by 0x3AD9A062F6: start_thread (in /lib64/libpthread-2.5.so)
==15482==    by 0x3AD8ED1E3C: clone (in /lib64/libc-2.5.so)
==15482==  Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd
==15482==    at 0x4A05CB9: operator new[](unsigned long) (vg_replace_malloc.c:199)
==15482==    by 0x41D00D: CCommonTask::SendToList(char const*, int) (CommonTask.cpp:293)
==15482==    by 0x41D0F0: CCommonTask::PutMsgToSendList(char const*, int) (CommonTask.cpp:175)
==15482==    by 0x416A6F: RServerRecvAndSendTask::ProcessPacket(MYFRAMECOMMON::tagSERVERCOMMANDPACKET*) (RServerRecvAndSendTask.cpp:184)
==15482==    by 0x41CF42: CCommonTask::ParseOnePacket() (CommonTask.cpp:231)
==15482==    by 0x41D779: CCommonTask::RecvProcess() (CommonTask.cpp:109)
==15482==    by 0x424891: CRecvAndSendTask::HandleProcess(int) (recvandsendtask.cpp:63)
==15482==    by 0x430297: CRealEpoll::EpollWait() (myepoll.cpp:96)
==15482==    by 0x42372D: CNetProcessThread::HandleProcess() (netprocessthread.cpp:87)
==15482==    by 0x423A64: CNetProcessThread::Run() (netprocessthread.cpp:46)
==15482==    by 0x41F7EC: CCommonThread::ThreadEntry(void*) (commonthread.cpp:73)
==15482==    by 0x3AD9A062F6: start_thread (in /lib64/libpthread-2.5.so)

posted on 2009-02-27 15:00 大龙 阅读(5887) 评论(2)  编辑 收藏 引用

评论

# re: Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化 2009-12-14 16:57 icesword

valgrind跑出来的结果吧,怎样修改程序呢?  回复  更多评论   

# re: Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化 2015-04-21 16:07 xxy

同样,求解。
  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理