V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
auto8888
V2EX  ›  GCC

GDB 程序崩溃没有效代码堆栈该怎么调试?要被折磨疯了

  •  
  •   auto8888 · Nov 17, 2020 · 2348 views
    This topic created in 2000 days ago, the information mentioned may be changed or developed.

    如题,要被折磨疯了,跪求大佬。。。

    有些崩的情况是能看到自己崩在哪的,这种崩在外面的怎么查?

    https://i.loli.net/2020/11/17/Q7moasKcHfqhzgF.png

    1 replies    2020-11-17 23:07:06 +08:00
    wevsty
        1
    wevsty  
       Nov 17, 2020
    抛 std::bad_alloc 很有可能是内存用完了。
    检查内存泄漏和运行机器的空闲内存看看吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3319 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    ♥ Do have faith in what you're doing.