Why does my program occasionally segfault when out of memory rather than throwing std::bad_alloc?

后端 未结 3 746
悲哀的现实
悲哀的现实 2021-01-11 16:32

I have a program that implements several heuristic search algorithms and several domains, designed to experimentally evaluate the various algorithms. The program is written

3条回答
  •  佛祖请我去吃肉
    2021-01-11 16:47

    It could be some code using no-throw new and not checking the return value.

    Or some code could be catching the exception and not handling it or rethrowing it.

提交回复
热议问题