上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: 1、现象 程序出现core的位置不确定,但是查看core总会出现如下堆栈信息。 #0 SLL_Next (t=0x9f1ba3000) at src/linked_list.h:44 #1 SLL_Pop (list=<optimized out>) at src/linked_list.h:58 阅读全文
posted @ 2021-09-08 11:35 小海哥哥de 阅读(568) 评论(0) 推荐(0)
摘要: 前期准备 一般来说GDB主要调试的是C/C的程序。在gdb调试之前,必须要把调试信息加到可执行文件中。使用编译 器(cc/gcc/g)的 -g 参数可以做到这一点。如: gcc -g hello.c -o hello g++ -g hello.cpp -o hello 如果没有-g,将看不见程序的函 阅读全文
posted @ 2021-05-18 20:58 小海哥哥de 阅读(1024) 评论(0) 推荐(0)
摘要: 转载 https://www.cnblogs.com/binchen-china/p/5653337.html 阅读全文
posted @ 2021-05-18 11:08 小海哥哥de 阅读(375) 评论(0) 推荐(0)
摘要: 待续 阅读全文
posted @ 2021-05-18 11:07 小海哥哥de 阅读(47) 评论(0) 推荐(0)
摘要: 转载 https://www.cnblogs.com/zendu/p/4987971.html 在构造自己的类时,有可能会碰到两个类之间的相互引用问题,例如:定义了类A类B,A中使用了B定义的类型,B中也使用了A定义的类型 class A { int i; B b; } class B { int 阅读全文
posted @ 2021-05-18 11:03 小海哥哥de 阅读(1002) 评论(0) 推荐(0)
摘要: libconfig库的官方网站:http://www.hyperrealm.com/libconfig/ libconfig是什么? libconfig是一个结构化的配置文件库,通常定义为配置文件,例如test.cfg 。它比xml可读性更好,而且更简洁;而且不像xml,它是 type-aware类 阅读全文
posted @ 2021-05-18 10:36 小海哥哥de 阅读(869) 评论(0) 推荐(0)
摘要: 具体情况如下: 阅读全文
posted @ 2021-04-26 21:15 小海哥哥de 阅读(243) 评论(0) 推荐(0)
摘要: brpc 是支持压缩方式传递数据的,支持的压缩格式有四种: COMPRESS_TYPE_SNAPPY = 1, COMPRESS_TYPE_GZIP = 2, COMPRESS_TYPE_ZLIB = 3, COMPRESS_TYPE_LZ4 = 4 brpc 的请求和响应都支持压缩 set_req 阅读全文
posted @ 2021-03-26 10:50 小海哥哥de 阅读(1093) 评论(0) 推荐(0)
摘要: 查看centOS版本信息 cat /etc/issue cat /etc/redhat-release 查看CentOS版本 cat /proc/version uname -a uname -r lsb_release -a 查看系统是32位还是64位 getconf LONG_BIT https 阅读全文
posted @ 2021-03-08 14:36 小海哥哥de 阅读(90) 评论(0) 推荐(0)
摘要: ### 第一种 ``` cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string} ``` - 1、能看到出现的问题在于 string; - 2、然后发现是在日志打印位置。 阅读全文
posted @ 2021-02-09 17:24 小海哥哥de 阅读(724) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页