【发布时间】:2016-01-12 06:46:21
【问题描述】:
main.cpp
#include <stdexcept>
int main()
{
throw std::runtime_error("AAAA");
}
我生成并运行exe文件:
g++ -g main.cpp
a.exe
我在屏幕上看不到任何输出。我没有看到核心文件。
我也关注了this post,但没有成功。
好像ulimit在cygwin下也不存在。
更新
ulimit -a的输出:
在 CMD 中:
>ulimit -a
'ulimit' is not recognized as an internal or external command,
operable program or batch file.
在 bash 中:
$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 2032
cpu time (seconds, -t) unlimited
max user processes (-u) 256
virtual memory (kbytes, -v) unlimited
【问题讨论】:
-
这能回答你的问题吗? Using a stackdump from Cygwin executable
标签: c++ exception cygwin coredump