Crafty-22.4 Crash

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Crafty-22.4 Crash

Post by zullil »

Not sure what happened here. Any thoughts?

Code: Select all

Procyon: ~/Documents/Chess/Crafty/Crafty-22.4] ./crafty-22.4 
max threads set to 2
EGTB access enabled
using tbpath=/Users/Louis/Documents/Chess/Crafty/TB
4 piece tablebase files found
1386kb of RAM used for TB indices and decompression tables
EGTB cache memory =   64M bytes.
hash table memory =  768M bytes.
pawn hash table memory =  256M bytes.
choose from book moves randomly (using weights.)
choose from 5 best moves.
don't display PV each time it changes.
don't display PV at end of each iteration.
don't display statistics at end of each search.
don't display extended statistics at end of each search.
don't display move numbers in variations.
don't display ply-1 moves as they are searched.
pondering enabled.
Audio output enabled
 game/10 minutes primary time control


Crafty v22.4 (2 cpus)

White(1): setboard 8/7p/8/7P/1p6/1p5P/1P2Q1pk/1K6 w - - 
White(1): display changes
display PV each time it changes.
White(1): display variation                       
display PV at end of each iteration.
White(1): st=600
search time set to 600.00.
White(1): book off
book file disabled.
White(1): ponder off
pondering disabled.
White(1): go
              time limit 10:00 (+0.00) (10:00)
              depth   time  score   variation (1)
starting thread 1
               10->   0.06   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 (s=3)
               11     0.07   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 Kh2 Qd6+ Kh1 (s=2)
               11->   0.08   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 Kh2 Qd6+ Kh1 (s=2)
               12     0.10   6.58   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qd4 Kg3
               12->   0.12   6.58   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qd4 Kg3
               13     0.13   6.58   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qb6 Kh2 Qb8+ Kh1
               13->   0.16   6.58   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qb6 Kh2 Qb8+ Kh1
                                    (s=4)
               14     0.18   6.62   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd2 Kg3 Qd6+ Kh3 Qb6 Kh2
                                    Qf2 <HT> (s=3)
               14->   0.22   6.62   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd2 Kg3 Qd6+ Kh3 Qb6 Kh2
                                    Qf2 <HT> (s=4)
               15     0.28   6.57   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh1 Qc6 Kh2 Qc7+ Kh1
                                    Qb7 h6 (s=3)
               15->   0.36   6.57   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh1 Qc6 Kh2 Qc7+ Kh1
                                    Qb7 h6 (s=3)
               16     0.50     -1   h4
               16     0.53   6.47   h4 Kg3 Qe3+ Kh2 Qf2 Kh1 Qf3 Kh2 Qf4+
                                    Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+ Kh3
                                    Qd7+ Kh2 Qd2 (s=2)
               16->   1.60   6.47   h4 Kg3 Qe3+ Kh2 Qf2 Kh1 Qf3 Kh2 Qf4+
                                    Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+ Kh3
                                    Qd7+ Kh2 Qd2 (s=4)
               17     1.88   6.47   h4 Kg3 Qe3+ Kh2 Qf2 Kh1 Qf3 Kh2 Qf4+
                                    <HT> (s=3)
               17->   1.94   6.47   h4 Kg3 Qe3+ Kh2 Qf2 Kh1 Qf3 Kh2 Qf4+
                                    <HT>
               18     2.42     -1   h4
               18     2.91     -3   h4
               18     4.64   6.10   h4 Kg3 Qe3+ Kh2 Qf2 Kh1 Qf3 Kh2 Qf4+
                                    Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+ Kh3
                                    Qd7+ Kh2 Qc7+ Kh3 Qb6 Kxh4
               18     5.37     +1   Ka1!!
               18     5.76     +3   Ka1!!
               18     6.49   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT>
               18->   6.70   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT> (s=3)
               19     6.82   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT> (s=2)
               19->   8.52   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT> (s=4)
               20     8.71   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT> (s=3)
               20->  13.21   7.79   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kxh3
                                    Qd4 Kg3 Qa7 <HT> (s=4)
               21    13.72     +1   Ka1!!
               21    15.30     +3   Ka1!!
               21    24.13   8.12   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qxb4 Kh1 Qb7 h6 Kb1 Kh2 Qc7+ Kxh3
                                    Qc1 Kh2 Qf4+ Kh1 Qh4+ Kg1 Qg3 Kf1 <HT>
                                    (s=3)
               21->  33.06   8.12   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qxb4 Kh1 Qb7 h6 Kb1 Kh2 Qc7+ Kxh3
                                    Qc1 Kh2 Qf4+ Kh1 Qh4+ Kg1 Qg3 Kf1 <HT>
                                    (s=2)
               22    50.14   8.12   Ka1 Kh1 Qe4 Kh2 Qe5+ <HT>
oops!  next_status.phase is bad! [evasion 4]
oops!  next_status.phase is bad! [evasion 2]
oops!  next_status.phase is bad! [evasion 3]
Segmentation fault
Here's a crash report:

Code: Select all

Process:         crafty-22.4 [43952]
Path:            ./crafty-22.4
Identifier:      crafty-22.4
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [196]

Date/Time:       2008-11-22 13:10:39.339 -0500
OS Version:      Mac OS X 10.5.5 (9F33)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   crafty-22.4                   	0x000000010008fd89 NextMove + 89
1   ???                           	0x0080000042008000 0 + 36028798126292992

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000050  rcx: 0x0000000000000440  rdx: 0x0000000000000000
  rdi: 0x00000001013fb000  rsi: 0x0000000100280e78  rbp: 0x00000001013fb000  rsp: 0x000000010047ec80
   r8: 0x0000000101400d20   r9: 0x0000000000000001  r10: 0x0000000100280e70  r11: 0x0000000000000007
  r12: 0x0000000000000005  r13: 0x00000001013fb000  r14: 0x0000000000000001  r15: 0x0000000000005354
  rip: 0x000000010008fd89  rfl: 0x0000000000010283  cr2: 0x0000000000000000

Binary Images:
       0x100000000 -        0x1000cbfef +crafty-22.4 ??? (???) <99cddfd1f526cfdf85f32afefb1f4ef8> /Users/Louis/Documents/Chess/Crafty/Crafty-22.4/crafty-22.4
       0x1002c6000 -        0x1002c6ffd  libmx.A.dylib ??? (???) /usr/lib/libmx.A.dylib
    0x7fff5fc00000 -     0x7fff5fc2e593  dyld 96.2 (???) <b0570939de4a19f478c8eabab95aaaee> /usr/lib/dyld
    0x7fff80b7b000 -     0x7fff80beffe7  libstdc++.6.dylib ??? (???) <379a6a2dc6e21ba77310b3d2d9ea30ac> /usr/lib/libstdc++.6.dylib
    0x7fff8126d000 -     0x7fff81279ff1  libgcc_s.1.dylib ??? (???) <42e4fd8079ba44258ea9afc27d2f48f3> /usr/lib/libgcc_s.1.dylib
    0x7fff81585000 -     0x7fff81589fff  libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x7fff820da000 -     0x7fff8225effb  libSystem.B.dylib ??? (???) <8e3de87ccdf6c4606b9bcb9da3a33eda> /usr/lib/libSystem.B.dylib
    0x7fffffe00000 -     0x7fffffe01780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Crafty-22.4 Crash

Post by zullil »

Well, it isn't reproducible!

Code: Select all

Procyon: ~/Documents/Chess/Crafty/Crafty-22.4] ./crafty-22.4 
max threads set to 2
EGTB access enabled
using tbpath=/Users/Louis/Documents/Chess/Crafty/TB
4 piece tablebase files found
1386kb of RAM used for TB indices and decompression tables
EGTB cache memory =   64M bytes.
hash table memory =  768M bytes.
pawn hash table memory =  256M bytes.
choose from book moves randomly (using weights.)
choose from 5 best moves.
don't display PV each time it changes.
don't display PV at end of each iteration.
don't display statistics at end of each search.
don't display extended statistics at end of each search.
don't display move numbers in variations.
don't display ply-1 moves as they are searched.
pondering enabled.
Audio output enabled
 game/10 minutes primary time control


Crafty v22.4 (2 cpus)

White(1): setboard 8/7p/8/7P/1p6/1p5P/1P2Q1pk/1K6 w - - 
White(1): display changes
display PV each time it changes.
White(1): display variation
display PV at end of each iteration.
White(1): st=600
search time set to 600.00.
White(1): book off
book file disabled.
White(1): ponder off
pondering disabled.
White(1): go
              time limit 10:00 (+0.00) (10:00)
              depth   time  score   variation (1)
starting thread 1
               10->   0.05   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 (s=4)
               11     0.06   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 Kh2 Qd6+ Kh1 (s=3)
               11->   0.09   6.63   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh3 Qg5 h6 Qg6 Kh2 Qd6+ Kh1 (s=3)
               12     0.11   6.62   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qd7+ Kh2 Qc7+
                                    Kh1 (s=2)
               12->   0.13   6.62   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd6+ Kh3 Qd7+ Kh2 Qc7+
                                    Kh1 (s=5)
               13     0.14   6.54   h4 Kg3 Qe3+ Kh2 Qf4+ Kh1 Qe4 Kh2 Qe5+
                                    Kh1 Qd5 Kh2 Qd2 Kg3 Qd6+ Kh3 Qd4 Kh2
                                    Qf4+ <HT> (s=4)
               13     0.19   6.55   Qe5+ Kh1 Qd5 Kh2 Qd2 <HT>
               13->   0.19   6.55   Qe5+ Kh1 Qd5 Kh2 Qd2 <HT> (s=4)
               14     0.21     -1   Qe5+
               14     0.24     -3   Qe5+
               14     0.27     -M   Qe5+
               14     1.90   0.11   Qe5+ Kh1 Qd5 Kh2 Qxb3 g1=Q+ Kc2 Qg2+
                                    Kd3 Qxh3+ Kc4 Qg4+ Kc5 Qxh5+ Kxb4 Qg4+
                                    Kc5 Qf5+ Kd4 Qf4+ Kd3 h5 Qd5 <HT> (s=3)
               14     1.95   5.95   Kc1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh1 Qc6 Kh2 Qc7+ Kxh3 Qb6 Kh2 Qd6+
                                    Kh1 (s=2)
               14     1.96   6.43   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kh2 Qc7+ Kh1 Qb7 Kh2 Qb8+
                                    Kh1 Qa8
               14->   2.05   6.43   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kh2 Qc7+ Kh1 Qb7 Kh2 Qb8+
                                    Kh1 Qa8 (s=5)
               15     2.07   6.56   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kf2 Qf7+ Ke1 Qe6+
                                    Kf2 Qb6+ Kf1 Qb5+ Kf2 Qc5+ <HT> (s=4)
               15->   2.11   6.56   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kf2 Qf7+ Ke1 Qe6+
                                    Kf2 Qb6+ Kf1 Qb5+ Kf2 Qc5+ <HT> (s=3)
               16     2.14   6.56   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kf2 Qf7+ Ke1 Qe6+
                                    Kf2 Qb6+ Kf1 Qb5+ Kf2 Qc5+ <HT> (s=2)
               16->   2.26   6.56   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kf2 Qf7+ Ke1 Qe6+
                                    Kf2 Qb6+ Kf1 Qb5+ Kf2 Qc5+ <HT> (s=5)
               17     2.37   6.47   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kh3 Qc1 Kh2 Qd2 Kg3
                                    Qd4 Kh2 Qf2 (s=4)
               17->   2.64   6.47   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kh3 Qc1 Kh2 Qd2 Kg3
                                    Qd4 Kh2 Qf2 (s=4)
               18     2.81     -1   h4
               18     2.94     -3   h4
               18     3.28     -M   h4
               18     4.21   0.53   h4 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh3 Qd7+ Kg3 Qc7+ Kh3 Qa7 Kh2 Qf2 <HT>
                                    (s=3)
               18    12.63   6.46   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh1 Qc6 h6 h4 <HT>
               18->  12.63   6.46   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh1 Qc6 h6 h4 <HT> (s=5)
               19    12.80     +1   Ka1!!
               19    13.00     +3   Ka1!!
               19    13.16   7.51   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kg1 Qf7
                                    h6 Kb1 Kh1 Qd5 Kg1 Qc5+ Kf1 Qf8+ Ke2
                                    Qg7 Kf2 Qd4+ Kf1 Qc4+ Kg1 <HT> (s=4)
               19->  13.65   7.51   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kg1 Qf7
                                    h6 Kb1 Kh1 Qd5 Kg1 Qc5+ Kf1 Qf8+ Ke2
                                    Qg7 Kf2 Qd4+ Kf1 Qc4+ Kg1 <HT> (s=5)
               20    13.80     +1   Ka1!!
               20    14.07     +3   Ka1!!
               20    14.87   7.59   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 Kg1 Qc1+ Kf2 <HT>
                                    (s=4)
               20->  16.37   7.59   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kh1 Qc6 Kg1 Qc1+ Kf2 <HT>
                                    (s=3)
               21    16.49     +1   Ka1!!
               21    16.70   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qg7 Kh2 Qc7+
                                    Kxh3 Qg7 h6 Kb1 Kh2 Qe5+ <HT> (s=2)
               21->  19.95   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qg7 Kh2 Qc7+
                                    Kxh3 Qg7 h6 Kb1 Kh2 Qe5+ <HT> (s=5)
               22    20.30   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=4)
               22->  27.07   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=5)
               23    27.58   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=4)
               23->  41.68   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=5)
               24    42.75   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=4)
               24->   1:11   8.98   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qb6+ Kf1 Qf6+ Kg1 Qd6 Kh1 Qc6 Kg1
                                    Qd7 Kf2 Qa7+ <HT> (s=5)
               25     1:14     +1   Ka1!!
               25     1:21     +3   Ka1!!
               25     1:30  10.35   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kh1 Qxh6 g1=Q+
                                    Qc1 Qxc1+ Kxc1 Kg2 Kd2 Kxh3 h6 Kg2
                                    h7 Kf2 h8=Q Kf3 Qh3+ Ke4 Qxb3 (s=4)
               25->   2:21  10.35   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kh1 Qc6 h6 Kb1 Kh2 Qd6+ Kh1 Qxh6 g1=Q+
                                    Qc1 Qxc1+ Kxc1 Kg2 Kd2 Kxh3 h6 Kg2
                                    h7 Kf2 h8=Q Kf3 Qh3+ Ke4 Qxb3 (s=5)
               26     2:27     +1   Ka1!!
               26     2:36     +3   Ka1!!
               26     5:51  10.97   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qc7 h6 Kb1 Kh1 Qc6 Kh2 Qd6+ Kh1
                                    Qd5 Kg1 Qd4+ Kh1 Qe4 Kg1 Qe3+ Kf1 Qxh6
                                    g1=Q Qc1+ Kf2 Qxg1+ Kxg1 Kc1 <HT> (s=4)
               26->   8:12  10.97   Ka1 Kh1 Qe4 Kh2 Qe5+ Kh1 Qd5 Kh2 Qd6+
                                    Kg1 Qc7 h6 Kb1 Kh1 Qc6 Kh2 Qd6+ Kh1
                                    Qd5 Kg1 Qd4+ Kh1 Qe4 Kg1 Qe3+ Kf1 Qxh6
                                    g1=Q Qc1+ Kf2 Qxg1+ Kxg1 Kc1 <HT> (s=2)
               27     8:28     +1   Ka1!!
               27     8:32     +3   Ka1!!
               27     9:17     +M   Ka1!!
terminating SMP processes.
White(1): Ka1 
              time used:  10:00
Gregory Owett
Posts: 259
Joined: Fri Mar 10, 2006 10:26 am
Location: France

Re: Crafty-22.4 Crash

Post by Gregory Owett »

After each move, the hash takes a little more than 3 M. If the game is very long, it can cause problems.
User avatar
Jim Ablett
Posts: 2308
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty-22.4 Crash

Post by Jim Ablett »

SzG wrote:Well, it may have the same reason that my problem here.

I let Crafty (JA 64-bit compile) play under Arena and restart the engine each time a new game is started. When Crafty starts, task manager reports a use of 247 MB (hash is set to 192, phash to 32, 5-men EGTB's with 32 MB cache used). By the end of the game (40/4 time control on a 3GHz Q6600, 2 threads) the reported memory is already 419 MB.
Now my guess is that because some internal error Crafty wants to allocate more and more memory and when the physical memory limit is reached, it crashes.

I have met this problem before, don't know of a solution.
I've compiled some builds which use Crafty's Unix/Linux threading code
and the 3rd party Windows pthread libraries.
These builds seems to work ok.

Download contains both Intel compiler 10 win32 & x64 Crafty 22.4 test p.g.o builds.

http://www.mediafire.com/?zkbdonhqzi2

Jim.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty-22.4 Crash

Post by bob »

SzG wrote:Well, it may have the same reason that my problem here.

I let Crafty (JA 64-bit compile) play under Arena and restart the engine each time a new game is started. When Crafty starts, task manager reports a use of 247 MB (hash is set to 192, phash to 32, 5-men EGTB's with 32 MB cache used). By the end of the game (40/4 time control on a 3GHz Q6600, 2 threads) the reported memory is already 419 MB.
Now my guess is that because some internal error Crafty wants to allocate more and more memory and when the physical memory limit is reached, it crashes.

I have met this problem before, don't know of a solution.
I just fixed this in 22.5, it was a problem in how threads were created. For windows, it hit the WinMalloc() every time the threads were started. Normally this is just once, unless you use the SMPNICE=1 feature. This should work cleanly now...

However, whether it caused the problem mentioned with the abort is unknown. That output is debug output that should _never_ be hit...
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Crafty-22.4 Crash

Post by zullil »

bob wrote: However, whether it caused the problem mentioned with the abort is unknown. That output is debug output that should _never_ be hit...
Well, I'll compile 22.5 and let you know if it happens again. Do you think that the position that generated the crash is relevant, or could any deep search
have conceivably led to the same outcome?
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty-22.4 Crash

Post by bob »

zullil wrote:
bob wrote: However, whether it caused the problem mentioned with the abort is unknown. That output is debug output that should _never_ be hit...
Well, I'll compile 22.5 and let you know if it happens again. Do you think that the position that generated the crash is relevant, or could any deep search
have conceivably led to the same outcome?
This is a _very_ difficult debugging task. I have found a position here and there that would cause Crafty to crash, and if I run it 30 times, it might only crash once. That makes these tough to find. I am not seeing any crashes with the current version, however, and I have been running it on ICC using an 8-core box for a week or so, as that will usually expose any "crashing bugs" pretty clearly where Crafty will lose on time and the log file will show that status...

If I were debugging what you are looking at, I would run it several times, but would realize that it could be a problem left around by a previous search, so that just setting up the position might not reproduce the bug, ever...

I assume you are using a parallel search, which is by far the most complex part of Crafty from a debugging perspective. the parallel search code is very "lean and mean" and has been studied many times by me looking for potential issues or performance improvements. Most of these ugly bugs creep in with eval changes where I use the wrong subscript type and index into a small array with a big subscript. Which might or might not hurt a thing depending on what is at that subscripted value's address...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty-22.4 Crash

Post by bob »

Jim Ablett wrote:
SzG wrote:Well, it may have the same reason that my problem here.

I let Crafty (JA 64-bit compile) play under Arena and restart the engine each time a new game is started. When Crafty starts, task manager reports a use of 247 MB (hash is set to 192, phash to 32, 5-men EGTB's with 32 MB cache used). By the end of the game (40/4 time control on a 3GHz Q6600, 2 threads) the reported memory is already 419 MB.
Now my guess is that because some internal error Crafty wants to allocate more and more memory and when the physical memory limit is reached, it crashes.

I have met this problem before, don't know of a solution.
I've compiled some builds which use Crafty's Unix/Linux threading code
and the 3rd party Windows pthread libraries.
These builds seems to work ok.

Download contains both Intel compiler 10 win32 & x64 Crafty 22.4 test p.g.o builds.

http://www.mediafire.com/?zkbdonhqzi2

Jim.
That might or might not work. See my comments about the "detached thread mode" issue I found in the linux pthreads library defaults. 22.5 ought to fix both of these problems...