-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still crashes with commit 248 #65
Comments
Can you provide minimal reproduction steps ? (UCI commands) |
This is actually a different bug, because it isn't triggered by playing the PV in |
Crash of demolito release version playing white in Cutechess GUI 0.9.4 Settings of demolito : FEN : r1qk1b2/1pp3Rp/p1n1pP2/3p3Q/3P3P/P2P1N2/1P2NP1P/7K w - - 6 36
On Tue, Nov 22, 2016 at 3:19 AM, lucasart notifications@github.com wrote:
|
Another crash with demolito debug version in Cutechess GUI. FEN : rbb2k2/3q4/pQp1pp1p/B1Pp4/3P1P2/7P/2P1B1R1/6K1 w - - 5 42
Coredump : Core was generated by `./demolito'. On Tue, Nov 22, 2016 at 4:00 PM, Antonio Arias <antonio.arias99999@gmail.com
|
I cannot reproduce any of these crashes. debug compile
first position
second position
|
I've also tried the same experiment with many Threads, or more Hash. Still can't crash it. |
The 2 crashes I sent is the last debug info sent before the crash in On Wed, Nov 23, 2016 at 12:27 AM, lucasart notifications@github.com wrote:
|
I built a debug version of commit 248 and still crashes at the same line.(position.cc:537)
Here is the backtrace.
Variable 'pos' gives erroneous value.
See p pos at the end of backtace.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `./demolito'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f6e442f004f in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f6e3baba700 (LWP 5800))]
(gdb) bt
#0 0x00007f6e442f004f in raise () from /usr/lib/libc.so.6
#1 0x00007f6e442f147a in abort () from /usr/lib/libc.so.6
#2 0x00007f6e442e8ea7 in __assert_fail_base () from /usr/lib/libc.so.6
#3 0x00007f6e442e8f52 in __assert_fail () from /usr/lib/libc.so.6
#4 0x0000000000409cbb in king_square (pos=..., c=BLACK) at position.cc:537
#5 0x0000000000407ee6 in Position::finish (this=0x7f6e3ba70710) at position.cc:73
#6 0x0000000000408d32 in Position::set (this=0x7f6e3ba70710, before=..., m=...) at position.cc:308
#7 0x000000000040dab4 in search::recurse (pos=..., ply=18, depth=-1, alpha=357, beta=358, pv=std::vector of length 0, capacity 0) at search.cc:197
#8 0x000000000040bda0 in search::recurse (pos=..., ply=17, depth=2, alpha=-358, beta=-357, pv=std::vector of length 0, capacity 0) at search.cc:152
#9 0x000000000040c27a in search::recurse (pos=..., ply=16, depth=2, alpha=357, beta=358, pv=std::vector of length 0, capacity 0) at search.cc:232
#10 0x000000000040c138 in search::recurse (pos=..., ply=15, depth=3, alpha=-358, beta=-357, pv=std::vector of length 0, capacity 0) at search.cc:222
#11 0x000000000040c27a in search::recurse (pos=..., ply=14, depth=3, alpha=357, beta=358, pv=std::vector of length 0, capacity 0) at search.cc:232
#12 0x000000000040c138 in search::recurse (pos=..., ply=13, depth=4, alpha=-358, beta=-357, pv=std::vector of length 0, capacity 0) at search.cc:222
#13 0x000000000040c27a in search::recurse (pos=..., ply=12, depth=4, alpha=357, beta=358, pv=std::vector of length 0, capacity 0) at search.cc:232
#14 0x000000000040c138 in search::recurse (pos=..., ply=11, depth=5, alpha=-358, beta=-357, pv=std::vector of length 0, capacity 127) at search.cc:222
#15 0x000000000040c27a in search::recurse (pos=..., ply=10, depth=5, alpha=357, beta=421, pv=std::vector of length 0, capacity 128) at search.cc:232
#16 0x000000000040c138 in search::recurse (pos=..., ply=9, depth=6, alpha=-421, beta=-357, pv=std::vector of length 0, capacity 129) at search.cc:222
#17 0x000000000040c138 in search::recurse (pos=..., ply=8, depth=6, alpha=357, beta=421, pv=std::vector of length 0, capacity 130) at search.cc:222
#18 0x000000000040c138 in search::recurse (pos=..., ply=7, depth=7, alpha=-421, beta=-357, pv=std::vector of length 0, capacity 131) at search.cc:222
#19 0x000000000040c138 in search::recurse (pos=..., ply=6, depth=7, alpha=357, beta=421, pv=std::vector of length 0, capacity 132) at search.cc:222
#20 0x000000000040c138 in search::recurse (pos=..., ply=5, depth=8, alpha=-421, beta=-357, pv=std::vector of length 0, capacity 133) at search.cc:222
#21 0x000000000040c138 in search::recurse (pos=..., ply=4, depth=9, alpha=357, beta=421, pv=std::vector of length 0, capacity 134) at search.cc:222
#22 0x000000000040c138 in search::recurse (pos=..., ply=3, depth=10, alpha=-421, beta=-357, pv=std::vector of length 0, capacity 135) at search.cc:222
#23 0x000000000040c138 in search::recurse (pos=..., ply=2, depth=11, alpha=357, beta=421, pv=std::vector of length 0, capacity 136) at search.cc:222
#24 0x000000000040c325 in search::recurse (pos=..., ply=1, depth=12, alpha=-421, beta=-357, pv=std::vector of length 0, capacity 137) at search.cc:240
#25 0x000000000040c138 in search::recurse (pos=..., ply=0, depth=13, alpha=357, beta=421, pv=std::vector of length 138, capacity 138 = {...}) at search.cc:222
#26 0x000000000040a91e in search::aspirate (pos=..., depth=13, pv=std::vector of length 138, capacity 138 = {...}, score=389) at search.cc:298
#27 0x000000000040ab62 in search::iterate (pos=..., lim=..., initialGameStack=..., iteration=std::vector of length 4, capacity 4 = {...}, threadId=3) at search.cc:347
#28 0x000000000041200d in std::_Bind_simple<void ((std::reference_wrapper, std::reference_wrapper<search::Limits const>, std::reference_wrapper<zobrist::GameStack const>, std::reference_wrapper<std::vector<int, std::allocator > >, int))(Position const&, search::Limits const&, zobrist::GameStack const&, std::vector<int, std::allocator >&, int)>::_M_invoke<0ul, 1ul, 2ul, 3ul, 4ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul>) (this=0x7f6e34008968) at /usr/include/c++/6.2.1/functional:1400
#29 0x0000000000411e01 in std::_Bind_simple<void ((std::reference_wrapper, std::reference_wrapper<search::Limits const>, std::reference_wrapper<zobrist::GameStack const>, std::reference_wrapper<std::vector<int, std::allocator > >, int))(Position const&, search::Limits const&, zobrist::GameStack const&, std::vector<int, std::allocator >&, int)>::operator()() (this=0x7f6e34008968) at /usr/include/c++/6.2.1/functional:1389
#30 0x0000000000411d58 in std::thread::_State_impl<std::_Bind_simple<void (*(std::reference_wrapper, std::reference_wrapper<search::Limits const>, std::reference_wrapper<zobrist::GameStack const>, std::reference_wrapper<std::vector<int, std::allocator > >, int))(Position const&, search::Limits const&, zobrist::GameStack const&, std::vector<int, std::allocator >&, int)> >::_M_run() (this=0x7f6e34008960) at /usr/include/c++/6.2.1/thread:196
#31 0x00007f6e44c3131f in std::execute_native_thread_routine (__p=0x7f6e34008960) at /build/gcc-multilib/src/gcc/libstdc++-v3/src/c++11/thread.cc:83
#32 0x00007f6e44f05454 in start_thread () from /usr/lib/libpthread.so.0
#33 0x00007f6e443a57df in clone () from /usr/lib/libc.so.6
(gdb) frame 4
#4 0x0000000000409cbb in king_square (pos=..., c=BLACK) at position.cc:537
537 assert(bb::count(pieces(pos, c, KING)) == 1);
(gdb) p pos
$1 = (const Position &) @0x7f6e3ba70710: {_byColor = {4611690691352592384, 216173334033924096}, _byPiece = {4611686018427387904, 72057594038452224, 144115462953762816, 0, 262144,
4949966651392}, _castlableRooks = 0, _attacked = 9008015791949480450, _checkers = 0, _pins = 0, _key = 2490692118756363530, _pawnKey = 1439414550270905652, _pst = {v = {150, 55}},
_pieceOn = '\006' <repeats 16 times>, "\005\006\004\001\006\006\006\006\005\006\006\006\006\006\006\005\006\006\006\006\006\006\002\005\006\006\005", '\006' <repeats 13 times>, "\001\002\006\006\006\006\000\006", _turn = BLACK, _epSquare = NB_SQUARE, _rule50 = 0, _pieceMaterial = {{v = {2326, 2326}}, {v = {1686, 1686}}}}
(gdb) p c
$2 = BLACK
(gdb) p KING
$3 = KING
(gdb)
The text was updated successfully, but these errors were encountered: