On Tue, Apr 21, 2026 at 02:48:39PM -0400, Todd Doucet wrote:
> GnuBg crashes with a segmentation violation whenever I try to run
> analysis on a large session. Large here means about 300 games or so
> in an unlimited match. GNU Backgammon 1.08.003 20260225.
> [...]
> I tried the GUI and the command-line versions of "analyze session".
> Both behave the same way -- it chugs along, and gets maybe 60 percent
> through in this case and then exits with a segmentation violation.
Could you try analyze this session in tty mode from gdb and confirm
whether it fails as below or in some other way ?
$ gdb ./gnubg
...
(gdb) run -t
...
(No game) load match test.sgf
...
(Game over) analyse session
Analysing match 11097/42612
Thread 2 received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
[Switching to LWP 109327 of process 73556]
0x000000080216fdea in memcpy () from /lib/libc.so.7
(gdb) bt
#0 0x000000080216fdea in memcpy () from /lib/libc.so.7
#1 0x00000000002af56a in FindnSaveBestMovesNoLocking (pml=0x7fffdfffdc90,
nDice0=4, nDice1=2, anBoard=0x80d4d1d30, keyMove=0x7fffdfffdcb4,
fAnalyse=1, rThr=0.0299999993, pci=0x7fffdfffdd88,
pec=0x40d76c <esAnalysisChequer+4>, aamf=0x40df60 <aamfAnalysis>)
at ../gnubg/eval.c:5879
#2 0x000000000029d824 in AnalyzeMove (pmr=0x82489bc00, pms=0x80d4d1d30,
plParentGame=0x823d0bde0, psc=0x824701a40,
pesChequer=0x40d768 <esAnalysisChequer>,
pesCube=0x40db00 <esAnalysisCube>, aamf=0x40df60 <aamfAnalysis>,
analysePlayers=0x403088 <afAnalysePlayers>, doubleError=0x7fffdfffdefc)
at ../gnubg/analysis.c:708
#3 0x00000000002a323b in AnalyseMoveMT (task=0x80d4d1d00)
at ../gnubg/analysis.c:952
#4 0x000000000030da06 in MT_WorkerThreadFunction (tld=0x80396b640)
at ../gnubg/multithread.c:135
#5 0x0000000801df3b95 in ?? () from /usr/local/lib/libglib-2.0.so.0
#6 0x0000000801ffde41 in ?? () from /lib/libthr.so.3
#7 0x0000000000000000 in ()
Backtrace stopped: Cannot access memory at address 0x7fffdfffe000