因此,在升级到Linux (并使用GCC v4.7.3)时,一些标头产生了一些非常奇怪的编译器错误。当我试图编译时,我会得到以下错误消息:
gcc s.c
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/include/setjmp.h:26:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.7/include/bits/pthreadtypes.h:14,
from /usr/lib/gcc/x86_64-linux-gnu/4.7
我编写了一个模块,用于定期将一些实时数据转储到XML文件中。最后,我使用xmlSaveFormatFileEnc( )保存文件。
但是,我正在使用API xmlSaveFormatFileEnc( )获得与val差内的内存泄漏报告。
泄漏摘要如下,
==8355== 261,507,768 bytes in 506,798 blocks are definitely lost in los s
record 109 of 109
==8355== at 0x402BE68: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux
我不知道这个问题从何而来:(用GDB调试):
terminate called after throwing an instance of '[Thread 0x7ffff5e68700 (LWP 24945) exited]
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
线程1 "random_walkerta“接收信号SIGSEGV,分割故障。tcache_get