[Pachi] segfault "reporting=jsonbig"

jonathan chetwynd j.chetwynd at btconnect.com
Wed Jun 8 13:23:20 CEST 2011


pasky,

finding pachi segfaults hard to predict, or perhaps reproduce identically.

this relates to whether "reporting=jsonbig" somehow effects

play black D4

genmove white

reporting=jsonbig","threads=2" appears similar

the output without "reporting=jsonbig" is attached for reference



  	
Jonathan Chetwynd

j.chetwynd at btconnect.com
http://www.peepo.com/

+44 (0) 20 7978 1764


mac-mini:~ jaymini$ gdb --args pachi "reporting=jsonbig"
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .. done

(gdb) run
Starting program: /usr/local/bin/pachi reporting=jsonbig
Reading symbols for shared libraries +. done
Random seed: 1307445763
play black D4
IN: play black D4
got move 1,4,4
Move:   1  Komi: 0.0  Handicap: 0  Captures B: 0 W: 0
      A B C D E F G H J        A B C D E F G H J  
    +-------------------+    +-------------------+
  9 | . . . . . . . . . |  9 | : : : : : : : : : |
  8 | . . . . . . . . . |  8 | : : : : : : : : : |
  7 | . . . . . . . . . |  7 | : : : : : : : : : |
  6 | . . . . . . . . . |  6 | : : : : : : : : : |
  5 | . . . . . . . . . |  5 | : : : : : : : : : |
  4 | . . . X). . . . . |  4 | : : : : : : : : : |
  3 | . . . . . . . . . |  3 | : : : : : : : : : |
  2 | . . . . . . . . . |  2 | : : : : : : : : : |
  1 | . . . . . . . . . |  1 | : : : : : : : : : |
    +-------------------+    +-------------------+

= 

genmove white
IN: genmove white

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000001477ffffc
[Switching to process 86659]
0x000000010002c9f9 in ucb1amaf_update (p=<value temporarily unavailable, due to optimizations>, tree=0x1001004b0, node=0x101000000, node_color=S_BLACK, player_color=<value temporarily unavailable, due to optimizations>, map=0x147802c00, final_board=0x1006f9d00, result=0) at ucb1amaf.c:197
197				stats_add_result(&node->winner_owner, board_at(final_board, node->coord) == winner_color ? 1.0 : 0.0, 1);
(gdb) bt
#0  0x000000010002c9f9 in ucb1amaf_update (p=<value temporarily unavailable, due to optimizations>, tree=0x1001004b0, node=0x101000000, node_color=S_BLACK, player_color=<value temporarily unavailable, due to optimizations>, map=0x147802c00, final_board=0x1006f9d00, result=0) at ucb1amaf.c:197
#1  0x000000010002ad1a in uct_playout (u=0x1001000a0, b=0x100800000, player_color=S_WHITE, t=0x1001004b0) at walk.c:520
(gdb) quit
The program is running.  Exit anyway? (y or n) y

mac-mini:~ jaymini$ gdb --args pachi
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .. done

-------

$ gdb --args pachi "reporting=jsonbig","threads=2"
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .. done

(gdb) run
Starting program: /usr/local/bin/pachi reporting=jsonbig,threads=2
Reading symbols for shared libraries +. done
Random seed: 1307444474
play black D4
IN: play black D4
got move 1,4,4
Move:   1  Komi: 0.0  Handicap: 0  Captures B: 0 W: 0
      A B C D E F G H J        A B C D E F G H J  
    +-------------------+    +-------------------+
  9 | . . . . . . . . . |  9 | : : : : : : : : : |
  8 | . . . . . . . . . |  8 | : : : : : : : : : |
  7 | . . . . . . . . . |  7 | : : : : : : : : : |
  6 | . . . . . . . . . |  6 | : : : : : : : : : |
  5 | . . . . . . . . . |  5 | : : : : : : : : : |
  4 | . . . X). . . . . |  4 | : : : : : : : : : |
  3 | . . . . . . . . . |  3 | : : : : : : : : : |
  2 | . . . . . . . . . |  2 | : : : : : : : : : |
  1 | . . . . . . . . . |  1 | : : : : : : : : : |
    +-------------------+    +-------------------+

= 

genmove white
IN: genmove white

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000001477ffffc
[Switching to process 86630]
0x000000010002c9f9 in ucb1amaf_update (p=<value temporarily unavailable, due to optimizations>, tree=0x1001004b0, node=0x101000000, node_color=S_BLACK, player_color=<value temporarily unavailable, due to optimizations>, map=0x147802c00, final_board=0x1006f9d00, result=0) at ucb1amaf.c:197
197				stats_add_result(&node->winner_owner, board_at(final_board, node->coord) == winner_color ? 1.0 : 0.0, 1);
(gdb) bt
#0  0x000000010002c9f9 in ucb1amaf_update (p=<value temporarily unavailable, due to optimizations>, tree=0x1001004b0, node=0x101000000, node_color=S_BLACK, player_color=<value temporarily unavailable, due to optimizations>, map=0x147802c00, final_board=0x1006f9d00, result=0) at ucb1amaf.c:197
#1  0x000000010002ad1a in uct_playout (u=0x1001000a0, b=0x100800000, player_color=S_WHITE, t=0x1001004b0) at walk.c:520
(gdb) quit
The program is running.  Exit anyway? (y or n) y
error while killing target (killing anyway): assertion failure on line 219 of "/SourceCache/gdb/gdb-1515/src/gdb/macosx/macosx-nat-inferior-util.c" in function "macosx_inferior_suspend_mach": macosx_task_valid (s->task)

warning: error on line 2182 of "/SourceCache/gdb/gdb-1515/src/gdb/macosx/macosx-nat-inferior.c" in function "macosx_kill_inferior_safe": (ipc/send) invalid destination port (0x268435459x)
mac-mini:~ jaymini$ 

------

(gdb) run
Starting program: /usr/local/bin/pachi 
Reading symbols for shared libraries +. done
Random seed: 1307445858
play black D4
IN: play black D4
got move 1,4,4
Fresh board with random seed 1307445858
Warning: Cannot promote move node! Several play commands in row?
Move:   1  Komi: 0.0  Handicap: 0  Captures B: 0 W: 0
      A B C D E F G H J        A B C D E F G H J  
    +-------------------+    +-------------------+
  9 | . . . . . . . . . |  9 | : : : : : : : : : |
  8 | . . . . . . . . . |  8 | : : : : : : : : : |
  7 | . . . . . . . . . |  7 | : : : : : : : : : |
  6 | . . . . . . . . . |  6 | : : : : : : : : : |
  5 | . . . . . . . . . |  5 | : : : : : : : : : |
  4 | . . . X). . . . . |  4 | : : : : : : : : : |
  3 | . . . . . . . . . |  3 | : : : : : : : : : |
  2 | . . . . . . . . . |  2 | : : : : : : : : : |
  1 | . . . . . . . . . |  1 | : : : : : : : : : |
    +-------------------+    +-------------------+

= 

genmove white
IN: genmove white
Fresh board with random seed 1307445858
[10000] best 0.414068 | seq  C5  D5  D6  E6 | can  C5(0.414)  C7(0.425)  D5(0.409)  D7(0.412) 
[20000] best 0.409071 | seq  C5  D5  F3  G6 | can  C5(0.409)  D5(0.402)  C7(0.435)  D7(0.412) 
[30000] best 0.422585 | seq  C7  F7  G3  F2 | can  C7(0.423)  C5(0.409)  D5(0.402)  D7(0.412) 
[40000] best 0.425027 | seq  C7  F7  G3  E3 | can  C7(0.425)  C5(0.409)  D5(0.402)  D7(0.412) 
[50000] best 0.424598 | seq  C7  F7  G3  E3 | can  C7(0.425)  C5(0.409)  D5(0.402)  D7(0.412) 
[60000] best 0.427245 | seq  C7  F7  G3  E3 | can  C7(0.427)  C5(0.409)  D5(0.402)  B4(0.414) 
[70000] best 0.424818 | seq  C7  F7  G3  E3 | can  C7(0.425)  C5(0.409)  D5(0.402)  E7(0.426) 
[80000] best 0.424822 | seq  C7  G6  G3  F4 | can  C7(0.425)  C5(0.409)  D5(0.402)  E6(0.442) 
(UCT tree; root black; extra komi 0.000000; max depth 16)
[pass] 0.421/80001 [prior 1.000/0 amaf 1.000/0 crit -0.421] h=0 c#=45 <f4243>
 [C7] 0.425/50680 [prior 0.750/28 amaf 0.425/65233 crit 0.107] h=0 c#=80 <f425d>
  [G6] 0.420/16123 [prior 0.250/28 amaf 0.414/30876 crit 0.112] h=0 c#=79 <f459b>
   [G3] 0.422/9523 [prior 0.833/42 amaf 0.426/12721 crit 0.133] h=0 c#=78 <17537a>
    [F4] 0.410/6977 [prior 0.250/28 amaf 0.414/8186 crit 0.102] h=0 c#=77 <1753cf>
     [B4] 0.434/1273 [prior 0.500/14 amaf 0.432/4045 crit 0.091] h=0 c#=76 <298241>
     [G4] 0.412/1076 [prior 0.875/56 amaf 0.420/3684 crit 0.150] h=0 c#=76 <298244>
   [G8] 0.434/1880 [prior 0.750/28 amaf 0.435/8678 crit 0.064] h=0 c#=78 <1753a4>
  [F7] 0.425/15072 [prior 0.167/42 amaf 0.420/32355 crit 0.140] h=0 c#=79 <f45a2>
   [G3] 0.434/12011 [prior 0.750/28 amaf 0.432/13539 crit 0.122] h=0 c#=78 <f601c>
    [E3] 0.434/5151 [prior 0.250/28 amaf 0.427/8730 crit 0.121] h=0 c#=77 <198a56>
     [G6] 0.457/3489 [prior 0.500/14 amaf 0.450/4234 crit 0.115] h=0 c#=76 <1cbad8>
      [G7] 0.441/1501 [prior 0.125/56 amaf 0.437/2414 crit 0.160] h=0 c#=75 <1e176a>
    [F2] 0.423/1621 [prior 0.250/28 amaf 0.419/6264 crit 0.105] h=0 c#=77 <198a4e>
    [E2] 0.424/1269 [prior 0.250/28 amaf 0.426/7131 crit 0.118] h=0 c#=77 <198a4d>
    [D6] 0.418/1007 [prior 0.500/14 amaf 0.424/6121 crit 0.109] h=0 c#=77 <198a6e>
  [G3] 0.424/11073 [prior 0.250/28 amaf 0.413/20097 crit 0.085] h=0 c#=79 <f4581>
   [F6] 0.436/5465 [prior 0.500/14 amaf 0.436/8102 crit 0.111] h=0 c#=78 <17ddc4>
    [G7] 0.424/1210 [prior 0.250/28 amaf 0.415/3080 crit 0.115] h=0 c#=77 <22605b>
    [E7] 0.420/1099 [prior 0.250/28 amaf 0.419/2974 crit 0.144] h=0 c#=77 <226059>
   [G7] 0.424/1333 [prior 0.750/28 amaf 0.442/5791 crit 0.101] h=0 c#=78 <17ddcd>
   [G4] 0.419/1150 [prior 0.833/42 amaf 0.437/5174 crit 0.130] h=0 c#=78 <17ddb3>
  [B5] 0.429/1397 [prior 0.250/28 amaf 0.408/25369 crit 0.099] h=0 c#=79 <f458d>
  [G4] 0.421/1014 [prior 0.250/28 amaf 0.414/25095 crit 0.106] h=0 c#=79 <f4589>
 [C5] 0.409/8113 [prior 0.500/14 amaf 0.431/41187 crit 0.102] h=0 c#=80 <f4252>
  [D5] 0.400/6276 [prior 0.125/56 amaf 0.397/7054 crit 0.132] h=0 c#=79 <fcc86>
   [F3] 0.418/1468 [prior 0.750/28 amaf 0.417/3800 crit 0.135] h=0 c#=78 <fccc8>
   [D6] 0.399/1148 [prior 0.875/56 amaf 0.420/3192 crit 0.125] h=0 c#=78 <fccde>
 [D5] 0.402/6482 [prior 0.500/14 amaf 0.426/34553 crit 0.121] h=0 c#=80 <f4253>
  [E5] 0.391/4944 [prior 0.125/56 amaf 0.391/5546 crit 0.137] h=0 c#=79 <f7d24>
   [E6] 0.403/1143 [prior 0.875/56 amaf 0.402/2963 crit 0.132] h=0 c#=78 <f8623>
   [D6] 0.402/1019 [prior 0.857/49 amaf 0.402/2588 crit 0.118] h=0 c#=78 <f8622>
  [C5] 0.404/1177 [prior 0.125/56 amaf 0.395/3911 crit 0.120] h=0 c#=79 <f7d23>
 [E6] 0.442/5165 [prior 0.500/14 amaf 0.430/42956 crit 0.129] h=0 c#=80 <f4259>
  [G7] 0.427/1506 [prior 0.250/28 amaf 0.434/3325 crit 0.132] h=0 c#=79 <fb216>
 [E7] 0.425/1836 [prior 0.750/28 amaf 0.427/39322 crit 0.115] h=0 c#=80 <f425f>
 [B4] 0.416/1643 [prior 0.500/14 amaf 0.436/40074 crit 0.096] h=0 c#=80 <f424e>
 [F7] 0.422/1635 [prior 0.750/28 amaf 0.430/33547 crit 0.100] h=0 c#=80 <f4260>
(avg score 0.000000/0 value 0.000000/0)
[80001] best 0.424822 | seq  C7  G6  G3  F4 | can  C7(0.425)  C5(0.409)  D5(0.402)  E6(0.442) 
*** WINNER is C7 (3,7) with score 0.4248 (50680/80001:80001/80001 games), extra komi 0.000000
genmove in 14.12s (5664 games/s, 5664 games/s/thread)
tree pruned in 0.0600801 s, prev 0 s ago, dest depth 14 wanted 4, size 203194552->24891592/295279001, playouts 50680
playing move C7
Move:   2  Komi: 0.0  Handicap: 0  Captures B: 0 W: 0
      A B C D E F G H J        A B C D E F G H J  
    +-------------------+    +-------------------+
  9 | . . . . . . . . . |  9 | , , , , , , , , , |
  8 | . . . . . . . . . |  8 | , , , , , , , , , |
  7 | . . O). . . . . . |  7 | , , , , , , , , , |
  6 | . . . . . . . . . |  6 | , , , , , , , , , |
  5 | . . . . . . . . . |  5 | , , , , , , , , , |
  4 | . . . X . . . . . |  4 | , , , X , , , , , |
  3 | . . . . . . . . . |  3 | , , , x , , , , , |
  2 | . . . . . . . . . |  2 | , , , , , , , , , |
  1 | . . . . . . . . . |  1 | , , , , , , , , , |
    +-------------------+    +-------------------+

= C7


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rover.ms.mff.cuni.cz/pipermail/pachi/attachments/20110608/b004895b/attachment-0001.html>


More information about the Pachi mailing list