- 博客(3)
- 资源 (21)
- 收藏
- 关注
原创 Linux crash 快速定位调用栈
一段测试代码发生非法内存访问,发生段错误收到 SIGSEGV 信号崩溃,通过如下几种方法快速的定位到崩溃前的调用栈。1、借助 valgrind 工具。valgrind ./test.out可看到 test.cpp 203 行调用了 std::string 的empty 函数,导致的奔溃。0x401E2B 是函数 CDropScopeConfig::initLineContext 的地址。可通过 a...
2017-12-27 20:35:13 5061
原创 VS 调试记录
项目中有类似于这样结构的一段代码,特此记录一下调试结果。 class A { public: virtual void func() = 0; }; class B :public A { int b = 1; public: virtual void func() override { } }; class C :public A { public: virtual void
2017-12-06 21:35:34 1654
原创 C++ 标准库中 string 使用的优化技术
往容器中添加元素,若是要使用移动语义,一样的使用 std::move. int main(){ std::string s{"hello world"}; std::cout << (int*)(s.c_str()) << "\n"; std::vector vec; vec.push_back(std::move(s)); std::cout <<
2017-12-06 13:21:01 2524
tmux_for_git-bash.zip
2020-05-11
The Hacker’s Guide to Scaling Python
2018-05-25
Deep Learning with TensorFlow 第二版
2018-04-18
With Open AI, TensorFlow and Keras Using Python
2018-04-18
Discover the Mathematical Language of Data in Python
2018-04-18
Memory Dump Analysis Anthology, Volume 3 内存分析技术
2018-04-08
Memory Dump Analysis Anthology, Volume 5
2018-04-08
Memory Dump Analysis Anthology Volume 7
2018-04-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人