-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Russ Allbery wrote: > That's probably the next step, but before doing that, could you provide a > backtrace here: > > of a gnubg built with debugging symbols? Maybe it's something simple and > I can also provide a patch upstream.
I've included a backtrace using gnubg built from the latest CVS source. Please let me know if this isn't what you're looking for; I'm not too handy with gdb. I may not have mentioned before that the SGF I am loading is already fully analyzed, so I don't think that's the problem here. The bug appears to be independent of the match being added to the database. I should also add that this particular problem only occurs for me when gnubg is built for amd64. The i386 package in sid (and CVS built for i386) segfault on some other postgres operations, which may or may not be related. I can dig up more info on those if you believe it will be helpful. cmr GNU gdb 6.4.90-debian Copyright (C) 2006 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-linux-gnu". (gdb) file /usr/local/bin/gnubg Reading symbols from /usr/local/bin/gnubg...done. Using host libthread_db library "/lib/libthread_db.so.1". (gdb) set args -qt gnubg-chris_7p_2006-10-29.sgf (gdb) run Starting program: /usr/local/bin/gnubg -qt gnubg-chris_7p_2006-10-29.sgf [Thread debugging using libthread_db enabled] [New Thread 47957168375168 (LWP 25089)] GNU Backgammon 0.14.3-develCopyright 1999, 2000, 2001, 2002, 2003, 2004 by Gary Wong. GNU Backgammon is free software, covered by the GNU General Public License version 2, 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 GNU Backgammon. Type "show warranty" for details. GNU Backgammon Position ID: AAAAvgMAAAAAAA Match ID : UgrgAIAAIAAA +13-14-15-16-17-18------19-20-21-22-23-24-+ O: gnubg | | | | OOO 8 points | | | | OOO | | | | OOO | | | | OOO | | | | OOO v| |BAR| | 7 point match | | | X | X | | | X | X | | | X X | X | | | X X | XX | | | X X | XX 4 points +12-11-10--9--8--7-------6--5--4--3--2--1-+ X: chris (Cube: 4) (Game over) relational test Database test is successful! (Game over) relational add match Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47957168375168 (LWP 25089)] 0x00002b9de4a2d570 in strlen () from /lib/libc.so.6 (gdb) bt all #0 0x00002b9de4a2d570 in strlen () from /lib/libc.so.6 #1 0x000000000058b2a7 in do_mkvalue () #2 0x000000000058b0a1 in do_mkvalue () #3 0x000000000058b660 in Py_VaBuildValue () #4 0x000000000058b8fb in Py_BuildValue () #5 0x00000000005078f0 in PyGameStats (sc=0xd91380, fIsMatch=0, nMatchTo=7) at gnubgmodule.c:1558 #6 0x0000000000508baa in PythonGame (plGame=0xcaa710, doAnalysis=0, verbose=0, scMatch=0x7fffc976ee80, includeBoards=0, ms=0x7fffc976f030) at gnubgmodule.c:1735 #7 0x0000000000509daa in PythonMatch (self=<value optimized out>, args=<value optimized out>, keywds=<value optimized out>) at gnubgmodule.c:2118 #8 0x0000000000569e1c in PyEval_EvalFrame () #9 0x000000000056a828 in PyEval_EvalCodeEx () #10 0x00000000005b6c83 in function_call () #11 0x000000000050fec0 in PyObject_Call () #12 0x0000000000515d9e in instancemethod_call () #13 0x0000000000512263 in PyObject_CallMethod () #14 0x00000000004b11d5 in CommandRelationalAddMatch (sz=0x7fffc97722a4 "") at relational.c:444 #15 0x000000000044128f in HandleCommand (sz=0x7fffc97722a4 "", ac=<value optimized out>) at gnubg.c:2946 #16 0x00000000004413c8 in HandleCommand (sz=0x7fffc977229f "match", ac=<value optimized out>) at gnubg.c:2950 #17 0x00000000004413c8 in HandleCommand (sz=0x7fffc977229b "add", ac=<value optimized out>) at gnubg.c:2950 #18 0x000000000044478a in main (argc=2, argv=0x7fffc9772ec8) at gnubg.c:7555 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFTtAAWCKEXKsCq6IRAukeAJ4mYjipn9KHnpGnxOK7KYhNzV91OwCgkcDP pGRy/QBxeyxBmqlZ9eXeRco= =aoY6 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]