bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] strange crash


From: Louis Zulli
Subject: Re: [Bug-gnubg] strange crash
Date: Sun, 2 Jan 2011 14:47:37 -0500

No crash here. OS X build from December 23 snapshot:

~] gnubg -t
GNU Backgammon 0.90.0  Dec 23 2010
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 by Gary Wong.
Copyright (C) 2009 by Gary Wong and the AUTHORS; for details type `show 
version'.
This program comes with ABSOLUTELY NO WARRANTY; for details type `show 
warranty'.
This is free software, and you are welcome to redistribute it under certain 
conditions; type `show copying' for details.
(No game) set gnubgid 3wYAANjsGwEIAA:MAFpACAAAAAA
The dice have been set to 2 and 2.
 GNU Backgammon  Position ID: 4HPwATDgc/ABMA
                 Match ID   : MAFpACAAAAAA
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     O: gnubg
 | X           O    |   | O              X |     2 points
 | X           O    |   | O              X |     Rolled 22
 | X           O    |   | O                |     
 | X                |   | O                |     
 | X                |   | O                |    
^|                  |BAR|                  |     3 point match (Cube: 1)
 | O                |   | X                |    
 | O                |   | X                |     
 | O           X    |   | X                |     
 | O           X    |   | X              O |     
 | O           X    |   | X              O |     0 points
 +13-14-15-16-17-18------19-20-21-22-23-24-+     X: Louis

 GNU Backgammon  Position ID: 3wYAANjsGwEIAA
                 Match ID   : MAFpACAAAAAA
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     O: gnubg
 |       O        O |   | O  O     O  O    |     2 points
 |                O |   | O  O     O  O    |     Rolled 22
 |                  |   | O                |     
 |                  |   | O                |     
 |                  |   | O                |    
^|                  |BAR|                  |     3 point match (Cube: 1)
 |                  |   |                X | X  
 |                  |   |                X | X   
 |                  |   |                X | X   
 |                  |   |          X  X  X | X   
 |                  |   |    O     X  X  X | XX  0 points
 +13-14-15-16-17-18------19-20-21-22-23-24-+     X: Louis

Setting GNUBG id 3wYAANjsGwEIAA:MAFpACAAAAAA
(gnubg) hint 1
    1. Cubeful 0-ply    20/18 10/6 7/5               MWC:  51.09%              
       0.000 0.000 0.000 - 1.000 0.084 0.000
        0-ply cubeful [expert]
(gnubg) 

On Jan 2, 2011, at 1:16 PM, Thomas A. Moulton wrote:

> set gnubgid 3wYAANjsGwEIAA:MAFpACAAAAAA
> hint 1
> 
> in my local build gives a crash
> 
> (gdb) where
> #0  MakeInt (pbc=<value optimized out>, nPosID=3272738968,
>    arProb=<value optimized out>, arGammonProb=0xbfeb9bd0, ar=0xbfeb9e10,
>    ausProb=0x0, ausGammonProb=0x0) at bearoff.c:834
> #1  GetDistCompressed (pbc=<value optimized out>, nPosID=3272738968,
>    arProb=<value optimized out>, arGammonProb=0xbfeb9bd0, ar=0xbfeb9e10,
>    ausProb=0x0, ausGammonProb=0x0) at bearoff.c:1145
> #2  ReadBearoffOneSidedExact (pbc=<value optimized out>, nPosID=3272738968,
>    arProb=<value optimized out>, arGammonProb=0xbfeb9bd0, ar=0xbfeb9e10,
>    ausProb=0x0, ausGammonProb=0x0) at bearoff.c:1234
> #3  0x0805c73f in BearoffDist (pbc=0x9a93930, nPosID=3272738968,
>    arProb=0xbfeb9cd0, arGammonProb=0xbfeb9bd0, ar=0xbfeb9e10, ausProb=0x0,
>    ausGammonProb=0x0) at bearoff.c:1261
> #4  0x0805dae2 in BearoffEvalOneSided (pbc=<value optimized out>,
>    anBoard=<value optimized out>, arOutput=<value optimized out>)
>    at bearoff.c:409
> #5  0x0805e013 in BearoffEval (pbc=0x9a93930, anBoard=0xbfeba4d4,
>    arOutput=0xbfeba5d4) at bearoff.c:509
> #6  0x0806a589 in EvaluatePositionFull (nnStates=<value optimized out>,
>    anBoard=0xbfeba4d4, arOutput=<value optimized out>, pci=0xbfeba59c,
>    pec=0x817f8a4, nPlies=0, pc=CLASS_BEAROFF_OS) at eval.c:5756
> #7  0x0806a729 in EvaluatePositionCacheNoLocking (nnStates=0x856c960,
>    anBoard=<value optimized out>, arOutput=<value optimized out>,
>    pci=0xbfeba59c, pecx=0x817f8a4, nPlies=0, pc=CLASS_BEAROFF_OS)
>    at eval.c:5793
> #8  0x0806af58 in EvaluatePositionCubeful4NoLocking (
>    nnStates=<value optimized out>, anBoard=0xbfeba4d4,
>    arOutput=<value optimized out>, arCubeful=0xbfeba49c,
>    aciCubePos=0xbfeba59c, cci=1, pciMove=0xbfeba59c, pec=0x8180d64, nPlies=0,
>    fTop=0) at eval.c:6385
> #9  0x08068f60 in EvaluatePositionCubeful3NoLocking (
>    nnStates=<value optimized out>, anBoard=<value optimized out>,
>    arOutput=<value optimized out>, arCubeful=0xbfeba49c,
>    aciCubePos=0xbfeba59c, cci=1, pciMove=0xbfeba59c, pec=0x8180d64, nPlies=0,
>    fTop=0) at eval.c:6581
> #10 0x08069126 in GeneralEvaluationEPliedCubefulNoLocking (
>    nnStates=<value optimized out>, arOutput=0xbfeba5d4, anBoard=0xbfeba4d4,
>    pci=0xbfeba59c, pec=0x8180d64, nPlies=0) at eval.c:6173
> #11 GeneralEvaluationEPliedNoLocking (nnStates=<value optimized out>,
>    arOutput=0xbfeba5d4, anBoard=0xbfeba4d4, pci=0xbfeba59c, pec=0x8180d64,
>    nPlies=0) at eval.c:6195
> #12 0x080692c2 in ScoreMoveNoLocking (nnStates=0x856c960, pm=0x9ca2f88,
>    pci=0xbfebabac, pec=0x8180d64, nPlies=0) at eval.c:5829
> #13 0x08069485 in ScoreMovesNoLocking (pml=0xbfebac00,
>    pci=<value optimized out>, pec=<value optimized out>, nPlies=0)
>    at eval.c:5876
> #14 0x08069d8d in FindnSaveBestMovesNoLocking (pml=0xbfebac00, nDice0=2,
>    nDice1=2, anBoard=0x81800c0, auchMove=0x0, rThr=0.0399999991,
>    pci=0xbfebabac, pec=0x8180d64, aamf=0x8181560) at eval.c:6029
> #15 0x080761c2 in asyncFindMove (pfd=0xbfebabe4) at gnubg.c:5434
> #16 0x08077615 in RunAsyncProcess (fn=0x8076170<asyncFindMove>,
>    data=0xbfebabe4, msg=0xb764b022<Address 0xb764b022 out of bounds>)
>    at gnubg.c:5505
> #17 0x0807b5f0 in hint_move (sz=0x9b356b6 "", show=1) at gnubg.c:2295
> #18 0x0807b85c in CommandHint (sz=0x9b356b5 "1") at gnubg.c:2374
> #19 0x0807ac99 in HandleCommand (sz=0x9b356b5 "1", ac=0x8185d00)
>    at gnubg.c:1167
> #20 0x0807cc56 in ProcessInput (sz=0x9b5ad10 "hint 1") at gnubg.c:3551
> #21 0x002533a2 in rl_callback_read_char () from /lib/libreadline.so.6
> #22 0x008e9e62 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
> #23 0x00b88e5b in ?? () from /lib/libglib-2.0.so.0
> #24 0x00b41855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
> #25 0x00b45668 in ?? () from /lib/libglib-2.0.so.0
> #26 0x00b45ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
> #27 0x003931d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
> #28 0x080f183b in RunGTK (pwSplash=0x0, commands=0x0, python_script=0x0,
>    match=0x0) at gtkgame.c:3634
> #29 0x0807fae0 in main (argc=1, argv=0xbfebc664) at gnubg.c:4825
> (gdb)
> 
> It may be a library problem, as the code runs withe same patches for Ingo
> 
> any suggestions?
> 
> Later I will rebuild mainline source and see what I get
> 
> I tried it with the ubuntu 10.10 binary and it is fine.
> 
> I must have a missing -dev package or something
> 
> tom
> 
> 
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]