上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES) foreach(dir ${dirs}) message(STATUS "dir='${dir}'") endforeach() 阅读全文
posted @ 2020-09-30 00:07 stdpain 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 解压: tar -zxf PythonXX.tgz 安装依赖: yum install libffi-devel configure mkdir build cd build ../configure --enable-optimizations --prefix=`pwd`/install --w 阅读全文
posted @ 2020-09-28 15:53 stdpain 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 生成私钥 openssl genrsa -out server.key 2048 通过私钥生成 crt server_host 是访问的地址 stdpain.cc openssl req -new -x509 -days 3650 \ -subj "/C=GB/L=China/O=grpc-serv 阅读全文
posted @ 2020-09-26 18:25 stdpain 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 如果依赖了第三方的lib,有可能导致valgrind疯狂打日志,非常难排查问题 我们可以使用: valgrind --suppressions=valgrind.conf --gen-suppressions=all --leak-check=full --show-leak-kinds=defin 阅读全文
posted @ 2020-09-22 19:43 stdpain 阅读(423) 评论(0) 推荐(0) 编辑
摘要: dmesg 看出错的位置 然后再用 addr2line -e $bin $addr ref: https://blog.csdn.net/lhf_tiger/article/details/9088609 ref2: 一些segment fault定位方法 https://blog.csdn.net 阅读全文
posted @ 2020-09-16 10:18 stdpain 阅读(306) 评论(0) 推荐(0) 编辑
摘要: nm -c $lib.a nm $exec nm $lib.a nm -D $lib.so 阅读全文
posted @ 2020-09-15 10:38 stdpain 阅读(131) 评论(0) 推荐(0) 编辑
摘要: tcmalloc 开启的时候由于是先从OS中获取一块内存,因此越界或double free的时候不会立刻core 阅读全文
posted @ 2020-09-09 19:16 stdpain 阅读(350) 评论(0) 推荐(0) 编辑
摘要: https://isocpp.org/blog/2012/11/universal-references-in-c11-scott-meyers 阅读全文
posted @ 2020-09-07 23:18 stdpain 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 可以有效的减小bin的体积 实测从 180M 减小到 11M ref http://www.mingw.org/wiki/Large_executables 或者在gcc中加入 -s 阅读全文
posted @ 2020-09-06 11:27 stdpain 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 环境: Linux version 4.14.0_1-0-0-17 (root@xxxxx) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC)) #1 SMP Tue Mar 10 19:33:18 CST 2020 GLIBC: libc-2 阅读全文
posted @ 2020-09-05 11:56 stdpain 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页