C++ Program Always Crashes While doing a std::string assign

前端 未结 4 865
半阙折子戏
半阙折子戏 2021-02-05 23:11

I have been trying to debug a crash in my application that crashes (i.e. asserts a * glibc detected * free(): invalid pointer: 0x000000000070f0c0 ***) while I\

4条回答
  •  一整个雨季
    2021-02-05 23:35

    Happened to me because of using malloc for a class which had std::strings as data members. Tricky.

提交回复
热议问题