日期:2014-05-16  浏览次数:20893 次

关于YAMD安装
解压后 Yamd编译错误 
root@localhost1 yamd-0.32]# make 
gcc -c -Wall -W -O2 -DYAMD_VERSION=\"0.32\" -DUSE_LIBC_HOOKS -o yamd.o yamd.c 
yamd.c: In function ‘print_footer’: 
yamd.c:1673: warning: implicit declaration of function ‘time’ 
yamd.c:1675: warning: implicit declaration of function ‘ctime’ 
yamd.c: In function ‘startup’: 
yamd.c:1862: error: ‘sigsegv_handler’ undeclared (first use in this function) 
yamd.c:1862: error: (Each undeclared identifier is reported only once 
yamd.c:1862: error: for each function it appears in.) 
make: *** [yamd.o] Error 1 


现在跑的是c++程序,周期运行了36次出现段错误,内存和cpu消耗正常。

gdb调试信息为
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1358203200 (LWP 1769)]
0x0000003c5f69c978 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string ()
  from /usr/lib64/libstdc++.so.6

gdb core调试信息为:
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib64/libnss_files.so.2
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000003c5f69c978 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string ()
  from /usr/lib64/libstdc++.so.6

不能够准确定位到函数,现在准备用Yamd调试下,但安装失败

------解决方案--------------------
友情UP