Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63049 - Segmentation fault in wesnoth 0.8.4
Summary: Segmentation fault in wesnoth 0.8.4
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 13:20 UTC by Matthias F. Brandstetter (RETIRED)
Modified: 2004-10-16 09:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace output of wesnoth segfault (wesnoth.strace,66.11 KB, text/plain)
2004-09-10 10:29 UTC, Matthias F. Brandstetter (RETIRED)
Details
some emerge output (wesnoth.txt,8.77 KB, text/plain)
2004-09-11 01:32 UTC, Matthias F. Brandstetter (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-06 13:20:34 UTC
Hi all,

after emerging Wesnoth 0.8.2 on an Athlon XP with this compiler options "-O2 -march=athlon-xp -pipe -w" I get a segemntation fault when starting game:

[ 22:16 haim@itchy ~ ] wesnoth
started game: 3580103373
starting play_game
Initialized true type fonts
Segmentation fault

Any ideas on this?

Reproducible: Always
Steps to Reproduce:
just starting the game...
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-09-06 20:27:48 UTC
Reopen with the output of emerge --info please
Comment 2 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-07 03:47:46 UTC
[ 12:47 haim@itchy ~ ] emerge --info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.26_pre6-gentoo)
=================================================================
System uname: 2.4.26_pre6-gentoo i686 AMD Athlon(tm) XP 2100+
cat: /etc/gentoo-release: No such file or directory
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-O2 -march=athlon-xp -pipe -w"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM=""
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CRYSTAL="/opt/crystal"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O2 -march=athlon-xp -pipe -w"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
FEATURES="autoaddcvs ccache sandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
GPG_AGENT_INFO="/tmp/gpg-TD4hP2/S.gpg-agent:9916:1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GS_LIB="/home/haim/.fonts"
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/haim/.gtkrc-2.0:/home/haim/.kde3.3/share/config/gtkrc"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/haim/.gtkrc:/home/haim/.kde3.3/share/config/gtkrc"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/home/haim"
HOSTNAME="itchy"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.1"
JDK_HOME="/opt/blackdown-jdk-1.4.1"
KDEDIR="/usr/kde/3.3"
KDEDIRS="/usr"
KDE_FULL_SESSION="true"
KDE_MULTIHEAD="false"
KONSOLE_DCOP="DCOPRef(konsole-22949,konsole)"
KONSOLE_DCOP_SESSION="DCOPRef(konsole-22949,session-1)"
LD_LIBRARY_PATH=":/usr/lib/wine/lib:/usr/lib/wine/lib"
LESS="-r"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="haim"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
MAIL="/var/mail/haim"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/vmware/man"
NOCOLOR="false"
PAGER="/usr/bin/most"
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/kde/3.3/bin:/usr/games/bin:/usr/bin/wrappers:/opt/blackdown-jdk-1.4.1_beta/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="22966"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[00m\][ \[\033[01;37m\]$(/bin/date +%H:%M) \[\033[01;32m\]\u@\h \[\033[01;34m\]$(ps1dir$PWD) \[\033[00m\]] "
PWD="/home/haim"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SESSION_MANAGER="local/itchy:/tmp/.ICE-unix/10006"
SGML_CATALOG_FILES="/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.1.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat"
SHELL="/bin/bash"
SHLVL="5"
STDCXX_INCDIR="g++-v3"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
TMAKEPATH="/usr/lib/tmake/linux-g++"
USE="3dnow X aalib arts avi bonobo cdr crypt cups dga doc encode esd fastcgi foomaticdb gdbm gif gphoto2 gtk2 gtkhtml guile hbci java jpeg kde kerberos libg++ libwww mad maildir md5sum motif mpeg mysql ncurses offensive opengl pam pdflib perl png python qt quicktime readline samba sdl slang sse ssl svga tcpd truetype usb videos x86 xine xml xml2 xmms xv zlib"
USER="haim"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
WINDOWID="52428805"
XARGS="xargs -r"
XAUTHORITY="/home/haim/.Xauthority"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-09-07 19:36:19 UTC
Try whacking ~/.wesnoth

If there's still a problem, run it under strace and attach the output as text/plain please.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-09-10 01:10:54 UTC
Need feedback...
Comment 5 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-10 10:28:07 UTC
sorry, had problems with my computer hardware...
here it comes (see attachment)!

greetings, Matthias
Comment 6 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-10 10:29:15 UTC
Created attachment 39331 [details]
strace output of wesnoth segfault
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-09-10 22:41:52 UTC
Save the output of emerge -evp wesnoth to a file and attach it as text/plain please.  No idea what the problem is yet.
Comment 8 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-11 01:32:58 UTC
Created attachment 39378 [details]
some emerge output

First emerge command was "emerge -evp wesnoth", second one was "emerge -pv
wesnoth". HTH!
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2004-09-11 02:21:37 UTC
My guess at this point is something sound related.  Try different things on your system in that direction.
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2004-09-11 18:56:23 UTC
I assume nothing will change with 0.8.4 but please give it a try anyhow.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2004-09-12 15:36:57 UTC
try stuff...let me know.
Comment 12 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-14 00:59:05 UTC
I can't find an ebuild for 0.8.4!
Should I install from source?
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2004-09-14 01:50:38 UTC
It's in portage.
Comment 14 Mr. Bones. (RETIRED) gentoo-dev 2004-09-15 23:40:03 UTC
try the latest please.
Comment 15 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-16 05:57:07 UTC
after installing wesnoth-0.8.4 I still get this error:

[ 14:39 haim@itchy wesnoth ] wesnoth
started game: 122716871
starting play_game
initialized video...
Initialized true type fonts
Segmentation fault
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2004-09-16 13:04:27 UTC
kill artsd and see if that makes a difference.
Comment 17 Mr. Bones. (RETIRED) gentoo-dev 2004-09-18 22:18:57 UTC
how'd that go?
Comment 18 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-20 08:38:18 UTC
ok, killing artsd solved the problem. I can start wesnoth now and hear it's sound. But IMHO that's not the solution ... is there any workaround for it? I don't want to kill artsd every time I want to play the game :(
Comment 19 Mr. Bones. (RETIRED) gentoo-dev 2004-09-21 01:53:18 UTC
Works fine for me with both arts-1.3.0 and arts-1.2.3.

just curious, what does artsd -A spit out for you?
Comment 20 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-09-21 04:09:04 UTC
[ 13:07 haim@itchy ~ ] artsd -A
possible choices for the audio i/o method:

  toss      Threaded Open Sound System
  esd       Enlightened Sound Daemon
  null      No Audio Input/Output
  oss       Open Sound System
Comment 21 Mr. Bones. (RETIRED) gentoo-dev 2004-10-14 23:07:59 UTC
Does the same thing happen with 0.8.4?
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2004-10-14 23:08:21 UTC
Sigh.

Does the same thing happen with 0.8.5?
Comment 23 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-10-15 02:42:17 UTC
I can't try it, because it depends on XFree86, but I've xorg-x11 installed:

[ 11:41 haim@itchy ~ ] sudo emerge wesnoth -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] x11-base/xorg-x11 (from pkg x11-base/xfree-4.3.0-r7)
[ebuild     U ] sys-devel/patch-2.5.9 [2.5.4-r4]
[ebuild  N    ] x11-base/xfree-4.3.0-r7
[ebuild     U ] games-strategy/wesnoth-0.8.5 [0.8.4]
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2004-10-15 11:04:20 UTC
No it doesn't, it depends on virtual/x11.  Just how messed up is your system?
Comment 25 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-10-16 08:20:07 UTC
Thanks Mr. Bones, that's a wise speech which helps me alot!
Greets
Comment 26 Mr. Bones. (RETIRED) gentoo-dev 2004-10-16 09:18:43 UTC
Yeah, sorry, since you've done something to your system that I can't diagnose from here and you haven't or can't figure it out for yourself, I don't think there's anything else I can do for you.