megalodon-chess / megalodon

Chess engine with the UCI protocol
https://megalodon-chess.github.io/megalodon/
GNU General Public License v3.0
14 stars 0 forks source link

Enhancement: Current master dev not running anymore in WIN7 Ultimate-64 #51

Closed rwbc closed 3 years ago

rwbc commented 3 years ago

No compilation errors, but the compiled binary now will always exit immediately crashing my ntdll.dll in Win7 Ultimate-64. Any idea, what can cause this in the last commits since release 0.3.2?

It would be nice if it would still be compatible with WIN7. I should mention that I mostly compile for an old core2 hardware w/o popcount, which always worked until 0.3.2.

- <EventData>
  <Data>megalodon_033dev-64.exe</Data> 
  <Data>0.0.0.0</Data> 
  <Data>6066e491</Data> 
  <Data>ntdll.dll</Data> 
  <Data>6.1.7601.24545</Data> 
  <Data>5e0eb67f</Data> 
  <Data>c0000005</Data> 
  <Data>000000000002a1ff</Data> 
  <Data>1368</Data> 
  <Data>01d727a32d4e1760</Data> 
  <Data>C:\msys64\home\Guenther Simon\megalodon\megalodon_033dev-64.exe</Data> 
  <Data>C:\Windows\SYSTEM32\ntdll.dll</Data> 
  <Data>6b2c2220-9396-11eb-8da3-00040eeeeeee</Data> 
  </EventData>

Edit: Already with commit 1984 the binary doesn't work anymore here (and 1984 is just a fix for 1983, which wouldn't compile)

phuang1024 commented 3 years ago

I'm not completely sure, but it might be deleting a non-existent pointer. In the latest commit (374eef75604baed753ccf7a4b10371bc7c15ff76), the hash table is now initialized to something before deleting it.

rwbc commented 3 years ago

Haha, cool! You nailed it so it had nothing to do with my old WIN7?

(version named by me)


Megalodon v0.3.3 dev - UCI chess engine
Copyright the Megalodon developers (in AUTHORS file)
https://github.com/megalodon-chess/megalodon
Licensed under GNU GPL v3: https://www.gnu.org/licenses/
uci
id name Megalodon
id author Megalodon Developers
option name Hash type spin default 256 min 1 max 65536
option name UseHashTable type check default true
option name HashStart type spin default 3 min 1 max 6
option name ABPassStart type spin default 5 min 1 max 100
option name ABPassMargin type spin default 500 min 0 max 10000
option name MoveTimeMult type spin default 100 min 10 max 1000
option name UseEndgame type check default true
option name LMRFactor type spin default 30 min 0 max 100
option name QuickMove type check default true
option name EvalMaterial type spin default 100 min 0 max 1000
option name EvalPawnStruct type spin default 100 min 0 max 1000
option name EvalSpace type spin default 100 min 0 max 1000
option name EvalKnights type spin default 100 min 0 max 1000
option name EvalKings type spin default 100 min 0 max 1000
option name PrintCurrMove type check default true
option name PrintPv type check default true
option name Chat type check default true
uciok
phuang1024 commented 3 years ago

I'm pretty sure it doesn't have anything to do with your computer, but it ran fine on Ubuntu for some reason.