我正在编写一个小程序。当我运行其中一个选项时,出现以下错误。
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoi
Aborted (core dumped)
我在存储.cpp和.h文件的目录中查找,运行后core确实出现了。我使用了。
ulimit -c unlimited
我用以下方式进行了验证
unlimit -a.
当我在终端中运行gdb并尝试访问core时,会得到以下响应。
not in executable format: File format not recognized
我该如何查看我的核心转储文件,以便查看是什么导致了它的出现?