我在尝试调试时有这个输出
程序收到信号 SIGSEGV,分段错误 0x43989029 在
std::string::compare (this=0x88fd430, __str=@0xbfff9060) at
/home/devsw/tmp/objdir/i686-pc-linux-gnu/libstdc++-v3/include/位/char_traits.h:253253 {返回memcmp(__s1,__s2,__n);}
当前语言:自动;目前c++
使用 valgrind 我得到这个输出
==12485== 进程以信号 11 (SIGSEGV) 的默认操作终止
==12485== 地址 0x0 的映射区域的权限错误
==12485== 0x1: (在 path_to_my_executable_file/executable_file 内)