Sat 15 Oct 2016 09:27:10 PM UTC, comment #5:
Gnubg has apparently just been added to the OpenBSD ports but there was no obviously related change in gnubg sources since your bug report that should have fixed it.
Does it still happen but only with MALLOC_OPTIONS="S" and you added gnubg anyway because the latter would only be used for system daemons, something like that ?
If you can still reproduce the problem, could you show the content of *phd at the time of the crash ?
|
Sun 21 Dec 2014 04:34:29 PM UTC, original submission:
Hi,
We are in the process of porting gnubg to OpenBSD, howveer, I have found a bug which I would like to first fix. This is for 1.04.000, not 1.03 (there is no release entry in the bug tracker for 1.04).
To reproduce:
* Start gnubg.
* Play the opening move (or let the AI)
* In the game record pane, click the move.
* Start a new game, gnubg will crash.
wilfred:edd> gdb gnubg
GNU gdb 6.3
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 "amd64-unknown-openbsd5.6"...
(gdb) c
The program is not being run.
(gdb) r
Starting program: /usr/local/bin/gnubg
GNU Backgammon 1.04.000 Dec 21 2014
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 by Gary Wong.
Copyright (C) 2014 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.
Fontconfig warning: ignoring C/en_US.UTF-8/C/C/C/C: not a valid language tag
(No game) new match
(edd) save settings
(gnubg) new match 7
Program received signal SIGSEGV, Segmentation fault.
0x00001fe458d21278 in custom_cell_renderer_movelist_render (cell=Variable "cell" is not available.
)
at gtkmovelistctrl.c:372
372 if (phd->piHighlight && cellprogress->rank - 1 == *phd->piHighlight)
(gdb) bt
#0 0x00001fe458d21278 in custom_cell_renderer_movelist_render (cell=Variable "cell" is not available.
)
at gtkmovelistctrl.c:372
#1 0x00001fe734453979 in gtk_tree_view_column_cell_process_action ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#2 0x00001fe7344547e9 in _gtk_tree_view_column_cell_render ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#3 0x00001fe734450ed8 in gtk_tree_view_expose ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#4 0x00001fe734346a9f in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#5 0x00001fe6977e53f3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#6 0x00001fe6977fb5ba in signal_emit_unlocked_R ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#7 0x00001fe6977fd1ff in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#8 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#9 0x00001fe73446458f in gtk_widget_event_internal ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#10 0x00001fe734340910 in gtk_main_do_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#11 0x00001fe71bcd09d3 in _gdk_window_process_updates_recurse ()
---Type <return> to continue, or q <return> to quit---
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#12 0x00001fe71bcd0a13 in _gdk_window_process_updates_recurse ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#13 0x00001fe71bcd0a13 in _gdk_window_process_updates_recurse ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#14 0x00001fe71bccc8b5 in gdk_window_process_updates_internal ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#15 0x00001fe71bcce89e in gdk_window_process_updates ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#16 0x00001fe6977e53f3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#17 0x00001fe6977fb3ff in signal_emit_unlocked_R ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#18 0x00001fe6977fd6a9 in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#19 0x00001fe7344c58a5 in gtk_signal_emit_by_name ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#20 0x00001fe73449fd42 in adjust_adjustments ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#21 0x00001fe73449fe59 in clist_refresh ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#22 0x00001fe458c9f328 in ClearMoveRecord () at play.c:687
#23 0x00001fe458ca49b5 in NewGame () at play.c:774
---Type <return> to continue, or q <return> to quit---
#24 0x00001fe458ca4de7 in StartNewGame () at play.c:2686
#25 0x00001fe458ca576b in CommandNewMatch (sz=0x1fe664db7dbb "") at play.c:2823
#26 0x00001fe458c784c7 in HandleCommand (sz=0x1fe664db7dba "7",
ac=0x1fe458fa8a08) at gnubg.c:1266
#27 0x00001fe458c785d7 in HandleCommand (sz=0x1fe664db7db4 "match",
ac=0x1fe458fadb20) at gnubg.c:1270
#28 0x00001fe458c7942c in ProcessInput (sz=0x1fe6f7d510b0 "new match 7")
at gnubg.c:3667
#29 0x00001fe458c79592 in UserCommand (szCommand=Variable "szCommand" is not available.
) at gnubg.c:3722
#30 0x00001fe458cef3db in NewOK (pw=0x1fe6ccf861e0, pnw=Variable "pnw" is not available.
) at gtkgame.c:4480
#31 0x00001fe6977e6761 in g_cclosure_marshal_VOID ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#32 0x00001fe6977e516d in _g_closure_invoke_va ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#33 0x00001fe6977fcc7f in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#34 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#35 0x00001fe6977e516d in _g_closure_invoke_va ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#36 0x00001fe6977fcc7f in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#37 0x00001fe6977fde41 in g_signal_emit ()
---Type <return> to continue, or q <return> to quit---
from /usr/local/lib/libgobject-2.0.so.4200.0
#38 0x00001fe73429421b in gtk_real_button_released ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#39 0x00001fe6977e516d in _g_closure_invoke_va ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#40 0x00001fe6977fcc7f in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#41 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#42 0x00001fe734292579 in gtk_button_button_release ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#43 0x00001fe734346a9f in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#44 0x00001fe6977e5490 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#45 0x00001fe6977fb5ba in signal_emit_unlocked_R ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#46 0x00001fe6977fd1ff in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#47 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#48 0x00001fe73446458f in gtk_widget_event_internal ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
---Type <return> to continue, or q <return> to quit---
#49 0x00001fe73433f3f9 in gtk_propagate_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#50 0x00001fe73434073f in gtk_main_do_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#51 0x00001fe71bce9c70 in gdk_event_dispatch ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#52 0x00001fe69d67ff4f in g_main_context_dispatch ()
from /usr/local/lib/libglib-2.0.so.4200.0
#53 0x00001fe69d681f9e in g_main_context_iterate ()
from /usr/local/lib/libglib-2.0.so.4200.0
#54 0x00001fe69d682f35 in g_main_loop_run ()
from /usr/local/lib/libglib-2.0.so.4200.0
#55 0x00001fe734340b11 in gtk_main ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#56 0x00001fe458d21eba in GTKRunDialog (dialog=0x1fe6ccf861e0)
at gtkwindows.c:456
#57 0x00001fe458cefbe5 in GTKNew () at gtkgame.c:4507
#58 0x00001fe6977e53f3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#59 0x00001fe6977fb3ff in signal_emit_unlocked_R ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#60 0x00001fe6977fd6a9 in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
---Type <return> to continue, or q <return> to quit---
#61 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#62 0x00001fe734467b7e in gtk_widget_activate ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#63 0x00001fe734355193 in gtk_menu_shell_activate_item ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#64 0x00001fe734356c9f in gtk_menu_shell_button_release ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#65 0x00001fe734346a9f in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#66 0x00001fe6977e53f3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#67 0x00001fe6977fb5ba in signal_emit_unlocked_R ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#68 0x00001fe6977fd1ff in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#69 0x00001fe6977fde41 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.0
#70 0x00001fe73446458f in gtk_widget_event_internal ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#71 0x00001fe73433f3f9 in gtk_propagate_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#72 0x00001fe73434073f in gtk_main_do_event ()
---Type <return> to continue, or q <return> to quit---
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#73 0x00001fe71bce9c70 in gdk_event_dispatch ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#74 0x00001fe69d67ff4f in g_main_context_dispatch ()
from /usr/local/lib/libglib-2.0.so.4200.0
#75 0x00001fe69d681f9e in g_main_context_iterate ()
from /usr/local/lib/libglib-2.0.so.4200.0
#76 0x00001fe69d682f35 in g_main_loop_run ()
from /usr/local/lib/libglib-2.0.so.4200.0
#77 0x00001fe734340b11 in gtk_main ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#78 0x00001fe458cf62c7 in RunGTK (pwSplash=0x0, commands=0x0,
python_script=0x0, match=0x0) at gtkgame.c:4040
#79 0x00001fe458c7a3b3 in main (argc=1, argv=0x7f7ffffccb68) at gnubg.c:4823
|