[Debian-zh-dev] Bug#734111: gmchess: fails to start with segmentation fault
Khang
khang.ntz at gmail.com
Fri Jan 3 21:46:50 UTC 2014
Package: gmchess
Version: 0.29.6-2
Severity: important
Hi,
This problem has occured since the installation of gmchess oldstable version on my squeeze desktop. Since then, I has updated Squeeze to the latest Squeeze version and upgraded from bottom to top part by part, including replacing gmchess and its dependencies with new ones.
However, the problem still persists, other apps still function well. And I just expect to play chess on gmchess.
Steps to Reproduce:
Deleting .config/gmchess in local home folder if it existed. (purging gmchess doesn't remove it)
I installed gmchess to my Wheezy desktop and fired it up from icewm menu, nothing shown up. So I tried getting it up from xterm(278-4), and still nothing shown (other apps function normally):
(my local login name : php)
# su -c "apt-get install gmchess"
# cd /home/php/
# gmchess
Unable to create folder /home/php/.config/gmchess/book
Segmentation fault
# gmchess
Segmentation fault
#
At the second time of execution (not neccesarily right after the first), the error 'Unable to create ...' disappeared as presented and ls ~/.config/gmchess gave :(book and files are folders)
# ls .config/gmchess
book config files
if right after installing, execute this, there is a difference:
# ls .config/gmchess
config files
The above output is the same when executing gmchess under root privilege:(i know this is discouraged but this method solved a similar problem,segmentation fault too, with 0.20.6-1, oldstable, version in my current Squeeze 6.0.5 laptop, but not on my Squeeze desktop before the upgrade to Wheezy, and I don't know why.)
# /usr/games/gmchess
Unable to create folder /root/.config/gmchess/book
Segmentation fault
# /usr/games/gmchess
Segmentation fault
#
Another way to reproduce the error with the official source from Wheezy 7.3:
# apt-get source gmchess
# cd gmchess-0.29.6
# debuild -us -uc
# cd src
# ./gmchess
Unable to create folder /home/php/.config/gmchess/book
Segmentation fault
#./gmchess (run again)
Segmentation fault
#
# ./gmchess (under root)
Unable to create folder /root/.config/gmchess/book
Segmentation fault
# ./gmchess
Segmentation fault
#
A backtrace and a stracelog may help: (run with the binary built above under local user, because it has debugging symbols.)
# ulimit -c unlimited
# ./gmchess
# Could not read folder /home/php/.config/gmchess/book
Segmentation fault (core dumped)
#
Backtrace: (truncated)
#0 gobj (this=0x0) at ../gdkmm/drawable.h:141
#1 Gdk::Drawable::draw_pixbuf (this=0x0, gc=..., pixbuf=..., src_x=0, src_y=0, dest_x=0,
dest_y=0, width=48, height=48, dither=Gdk::RGB_DITHER_NONE, x_dither=0, y_dither=0)
at drawable.cc:365
#2 0x0805e721 in Board::draw_bg (this=0x86d44e0) at Board.cc:440
#3 0x08061647 in Board::redraw (this=0x86d44e0) at Board.cc:318
#4 0x08086f32 in MainWindow::on_size_change (this=0xbfecf1f4) at MainWindow.cc:204
#5 0xb731fe53 in operator() (this=0x876cd34) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:440
#6 Glib::SignalProxyNormal::slot0_void_callback (self=0x86999b0, data=0x876cd30)
...(there are more)
Strace log :
...(a lot of lines)
_llseek(10, 0, [0], SEEK_SET) = 0
read(10, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\v\0\0\0\v\10\6\0\0\0\251\254w"..., 4096) = 553
close(10) = 0
munmap(0xb1ac0000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
That's all I got for now. Please tell me if you need anything.
Thanks,
Khang.
-- System Information:
Debian Release: 7.3
APT prefers stable
APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gmchess depends on:
ii convert-pgn 0.29.6-2
ii eleeye 0.29.6-2
ii libatkmm-1.6-1 2.22.6-1
ii libc6 2.13-38
ii libgcc1 1:4.7.2-5
ii libglib2.0-0 2.33.12+really2.32.4-5
ii libglibmm-2.4-1c2a 2.32.1-1
ii libgtkmm-2.4-1c2a 1:2.24.2-1
ii libsigc++-2.0-0c2a 2.2.10-0.2
ii libstdc++6 4.7.2-5
gmchess recommends no packages.
gmchess suggests no packages.
-- no debconf information
More information about the Chinese-developers
mailing list