Skipper crashed two times in last three days. Unfortunately it is difficult to reproduce for I already played a few tournaments and no crash happened.
Any (quick) methods to fix this ?
[I decided to test perft first. For instance compute Kiwipete(5). But no crash of course.]
Crashes to crashes
Moderators: hgm, Rebel, chrisw
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Crashes to crashes
Ok, I already have found some statements that should go wrong. So probably might be solved but it wil take another week to find out if bug is gone.
-
- Posts: 151
- Joined: Thu Nov 12, 2009 6:31 pm
-
- Posts: 27815
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Crashes to crashes
Clear the hash table before every move. Then the search should be completely reproducible. So you just wait for a crash, and then debug on the position where the crash happened.Henk wrote:Skipper crashed two times in last three days. Unfortunately it is difficult to reproduce for I already played a few tournaments and no crash happened.
Any (quick) methods to fix this ?
[I decided to test perft first. For instance compute Kiwipete(5). But no crash of course.]
-
- Posts: 3196
- Joined: Fri May 26, 2006 3:00 am
- Location: WY, USA
- Full name: Michael Sherwin
Re: Crashes to crashes
I have MSVS 2005 and in debug mode RomiChess crashes. In fully optimised release mode it runs just fine! lolabulmo wrote:Use a debugger.Henk wrote:Any (quick) methods to fix this ?
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
-
- Posts: 759
- Joined: Fri Jan 04, 2013 4:55 pm
- Location: Nice
Re: Crashes to crashes
Crashes to crashes ...Henk wrote:Skipper crashed two times in last three days. Unfortunately it is difficult to reproduce for I already played a few tournaments and no crash happened.
Any (quick) methods to fix this ?
[I decided to test perft first. For instance compute Kiwipete(5). But no crash of course.]
Mmm sure is a tribute to David Bowie ..😢
-
- Posts: 151
- Joined: Thu Nov 12, 2009 6:31 pm
Re: Crashes to crashes
Then you can fix the problem...Michael Sherwin wrote:I have MSVS 2005 and in debug mode RomiChess crashes.
More likely, it runs just accidentally.Michael Sherwin wrote:In fully optimised release mode it runs just fine! lol
It is more problematic when it is the other way around, the program runs fine in debug mode, but crashes in release mode.
Personally, I develop mostly under Linux, only rarely using a debug mode, but just keeping some debugging information into the fully optimized version of my software. I set my environment up so that it produces a core file when a crash happens. So when, a rare crash occurs, I feed up the debugger with the core file, and can get an idea of the cause of the crash.
Richard
Re: Crashes to crashes
Simple: look in the log of svn/git at what revision things worked fine and then do a bisect (yes you can also bisect with svn) until you'll find the bug.Henk wrote:Skipper crashed two times in last three days. Unfortunately it is difficult to reproduce for I already played a few tournaments and no crash happened.
Any (quick) methods to fix this ?
[I decided to test perft first. For instance compute Kiwipete(5). But no crash of course.]
Or just look at the diffs, then it is most of the time rather obvious which change introduced the bug.
-
- Posts: 12542
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Crashes to crashes
On windows (assuming the Microsoft compiler), you can create a crash dump easily enough.
Then, you load the crash dump in your debugger and it will take you right to the offending line.
_set_abort_behavior() is useful if you recognize the problem yourself via abort {e.g. malloc() failure}.
For everything else, install a structured exception handler.
Then install a minidump handler like this:
https://msdn.microsoft.com/en-us/library/ms680360.aspx
If you catch it in the crash, then you can also make them this way:
https://support.microsoft.com/en-us/kb/931673
Then, you load the crash dump in your debugger and it will take you right to the offending line.
_set_abort_behavior() is useful if you recognize the problem yourself via abort {e.g. malloc() failure}.
For everything else, install a structured exception handler.
Then install a minidump handler like this:
https://msdn.microsoft.com/en-us/library/ms680360.aspx
If you catch it in the crash, then you can also make them this way:
https://support.microsoft.com/en-us/kb/931673
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crashes to crashes
That's not always good enough. History counters. Killer moves. Counter moves. etc all have an effect on move ordering, and hence GHI type problems.. Not to mention different moves will get reduced differently depending on where they appear in the move list.hgm wrote:Clear the hash table before every move. Then the search should be completely reproducible. So you just wait for a crash, and then debug on the position where the crash happened.Henk wrote:Skipper crashed two times in last three days. Unfortunately it is difficult to reproduce for I already played a few tournaments and no crash happened.
Any (quick) methods to fix this ?
[I decided to test perft first. For instance compute Kiwipete(5). But no crash of course.]