Process returned -1073741819 (0xC0000005) execution time : 2.049 s

0

This one is really frustrating, I have no idea where it is coming from.

A little backstory

I am working on my chess game in c++, and currently I'm on the chess engine part. Everything is going on well, suddenly, at this very specific position of pieces on the board, this error comes

Process returned -1073741819 (0xC0000005)   execution time : 2.049 s

Press any key to continue.

It comes during the calculation on the moves, it just stops in the middle and shows this error. The project itself isn't small. I haven't been able to narrow this error down to any of the functions, it just happens. I have read a lot about it and I have seen it being related to pointers?, I am not using them in my program, What can I do to start solving this issue?

I don't really know where the error comes from so I have no idea what code I can provide here.

I am using The Code::Blocks IDE with mingw compiler

c++
error-handling
asked on Stack Overflow Aug 26, 2020 by Aryan Parekh • edited Aug 26, 2020 by Aryan Parekh

1 Answer

1

If you're on linux and have command line executable, you can follow below steps

  1. Run your executable inside gdb ( gdb ./your_executable )
  2. Start running your executable by run command
  3. This will crash your program inside gdb env.
  4. Now enter where command to know full back trace of crash
  5. You can also apply break point to that function ( break "fun_name" ) after knowing the location of crash and monitor its stack contents by entering bt full
answered on Stack Overflow Aug 26, 2020 by Samir Kape • edited Aug 26, 2020 by Samir Kape

User contributions licensed under CC BY-SA 3.0