Cygwin Exception : open stack dump file

2019-04-29 02:54发布

I am developping in C language a linux command interpreter on windows 7, using Cygwin. My code was compiling and running correctly, until I get this error :

cygwin_exception::open_stackdumpfile:Dumping stack trace to jstack dump

I googled it, but I couldn't find a solution

Any help please ?

3条回答
该账号已被封号
2楼-- · 2019-04-29 03:13

I just had this problem today. I found out that there was another cygwin session (shell) running in the background. Its possible that they affected each others memory locations/allocation. Once I killed them both, opened a new one, and everything back to normal! I hope it helps

查看更多
等我变得足够好
3楼-- · 2019-04-29 03:25

I find that I get this error when I try passing a value into a function when the funtion is expecting a pointer.

For example:

int arr[] = {1, 2, 3};
int i = 3;
memmove(i, arr, 3);

This code will get a cygwin_exception::open_stackdumpfile because you are passing int i, which is a value, into a function which is expecting a memory address.

However, this is based purely off of my experience and it is certainly possible that there are other causes for this error.

查看更多
干净又极端
4楼-- · 2019-04-29 03:31

This applies to ConEmu and maybe other Windows-based terminal emulators, you might need to set your "scroll back" or "buffer height" to something less than 2000.

The actual number depends on width of your terminal. For me, the maximized window has 240 characters across, which can support around 3200 lines of "scroll back" before cygwin apps start crashing.

I am able to test this by running ls -l -R / | head -n 2000 or similar outputs on a clean terminal, and induce cygwin apps to crash.

查看更多
登录 后发表回答