- 论坛徽章:
- 1
|
本帖最后由 jd808 于 2016-04-22 14:31 编辑
回复 11# MeRcy_PM - valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./Xgateway
- ==16111== Memcheck, a memory error detector
- ==16111== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
- ==16111== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
- ==16111== Command: ./Xgateway
- ==16111==
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/ld-2.22.so:
- --16111-- Ignoring non-Dwarf2/3/4 block in .debug_info
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/ld-2.22.so:
- --16111-- Last block truncated in .debug_info; ignoring
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/ld-2.22.so:
- --16111-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libm-2.22.so:
- --16111-- Ignoring non-Dwarf2/3/4 block in .debug_info
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libm-2.22.so:
- --16111-- Last block truncated in .debug_info; ignoring
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libm-2.22.so:
- --16111-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libc-2.22.so:
- --16111-- Ignoring non-Dwarf2/3/4 block in .debug_info
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libc-2.22.so:
- --16111-- Ignoring non-Dwarf2/3/4 block in .debug_info
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libc-2.22.so:
- --16111-- Ignoring non-Dwarf2/3/4 block in .debug_info
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libc-2.22.so:
- --16111-- Last block truncated in .debug_info; ignoring
- --16111-- WARNING: Serious error when reading debug info
- --16111-- When reading debug info from /lib/x86_64-linux-gnu/libc-2.22.so:
- --16111-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
- ==16111== Syscall param write(buf) points to uninitialised byte(s)
- ==16111== at 0x4E43F1D: ??? (syscall-template.S:84)
- ==16111== by 0x41751C: TServer::ReadEvent(Conn*) (TServer.cpp:104)
- ==16111== by 0x52B3DDD: bufferevent_trigger_nolock_ (bufferevent-internal.h:366)
- ==16111== by 0x52B3DDD: bufferevent_readcb (bufferevent_sock.c:187)
- ==16111== by 0x52B9419: event_persist_closure (event.c:1531)
- ==16111== by 0x52B9419: event_process_active_single_queue (event.c:1590)
- ==16111== by 0x52B9E8E: event_process_active (event.c:1689)
- ==16111== by 0x52B9E8E: event_base_loop (event.c:1912)
- ==16111== by 0x416880: MultiServer::StartRun() (MultiServer.cpp:366)
- ==16111== by 0x420BD0: TControl::Run() (TControl.cpp:21)
- ==16111== by 0x406EDF: main (node_gateway.cpp:64)
- ==16111== Address 0xffeffe990 is on thread 1's stack
- ==16111== in frame #1, created by TServer::ReadEvent(Conn*) (TServer.cpp:87)
- ==16111==
- ==16111== Thread 5:
- ==16111== Mismatched free() / delete / delete []
- ==16111== at 0x4C2A104: operator delete(void*) (vg_replace_malloc.c:575)
- ==16111== by 0x417C04: TServer::ThreadProcess(void*) (TServer.cpp:181)
- ==16111== by 0x415BBB: MultiServer::WorkerLibevent(void*) (MultiServer.cpp:398)
- ==16111== by 0x4E3B453: start_thread (pthread_create.c:334)
- ==16111== by 0x627FEDC: clone (in /lib/x86_64-linux-gnu/libc-2.22.so)
- ==16111== Address 0x6836820 is 0 bytes inside a block of size 104 alloc'd
- ==16111== at 0x4C2977D: operator new[](unsigned long) (vg_replace_malloc.c:422)
- ==16111== by 0x4174CD: TServer::ReadEvent(Conn*) (TServer.cpp:100)
- ==16111== by 0x52B3DDD: bufferevent_trigger_nolock_ (bufferevent-internal.h:366)
- ==16111== by 0x52B3DDD: bufferevent_readcb (bufferevent_sock.c:187)
- ==16111== by 0x52B9419: event_persist_closure (event.c:1531)
- ==16111== by 0x52B9419: event_process_active_single_queue (event.c:1590)
- ==16111== by 0x52B9E8E: event_process_active (event.c:1689)
- ==16111== by 0x52B9E8E: event_base_loop (event.c:1912)
- ==16111== by 0x416880: MultiServer::StartRun() (MultiServer.cpp:366)
- ==16111== by 0x420BD0: TControl::Run() (TControl.cpp:21)
- ==16111== by 0x406EDF: main (node_gateway.cpp:64)
- ==16111==
复制代码 一堆警告,这个现在还看不出问题,要运行很久才能指定结果.... |
|