Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109777 - Wesnoth 1.0: Stack smashing attack when starting a campaign.
Summary: Wesnoth 1.0: Stack smashing attack when starting a campaign.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-19 00:08 UTC by Dirk Heinrichs
Modified: 2005-10-22 00:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2005-10-19 00:08:19 UTC
I get 2 different crashes when I try to run wesnoth. The first one is a stack 
smashing attack error when I want to start a campaign: 
 
Battle for Wesnoth v1.0 
Started on Tue Oct 18 19:41:54 2005 
 
started game: 80915863 
Checking video mode: 1024x768x16... 
16 
setting mode to 1024x768x16 
locale could not be determined; defaulting to system locale 
set locale to 
no valid cache found. Writing cache to 
'/afs/home.de/user/heini/.wesnoth/cache/game.cfg-cache-v1.0-MEDIUM-NORMAL' 
started music 
4214056425 
showing title screen... 
4214056425 
Loading tips of day 
title screen returned result 
wesnoth: stack smashing attack in function bool 
<unnamed>::game_controller::new_campaign()() 
Abgebrochen 
 
The second one is a segmentation fault when I try to run the tutorial: 
 
Battle for Wesnoth v1.0 
Started on Tue Oct 18 19:43:07 2005 
 
started game: 80988569 
Checking video mode: 1024x768x16... 
16 
setting mode to 1024x768x16 
locale could not be determined; defaulting to system locale 
set locale to 
found valid cache at 
'/afs/home.de/user/heini/.wesnoth/cache/game.cfg-cache-v1.0-MEDIUM-NORMAL' 
using it 
started music 
4213978980 
showing title screen... 
4213978980 
Loading tips of day 
title screen returned result 
no valid cache found. Writing cache to 
'/afs/home.de/user/heini/.wesnoth/cache/game.cfg-cache-v1.0-TUTORIAL' 
Speicherzugriffsfehler 
 
(Speicherzugriffsfehler: German for Segmentation fault) 

Reproducible: Always
Steps to Reproduce:
1. Start wesnoth 
2. Run Tutorial or 
3. Start Campaign 
 



Portage 2.0.53_rc5 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13.4 i686) 
================================================================= 
System uname: 2.6.13.4 i686 Intel(R) Pentium(R) M processor 1500MHz 
Gentoo Base System version 1.12.0_pre9 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.13 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" 
DISTDIR="/gentoo/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/ 
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://mirror.switch.ch/mirror/gentoo/ 
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org" 
LANG="de_DE.utf8" 
LINGUAS="de" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/gentoo/build" 
PORTDIR="/gentoo/portage" 
PORTDIR_OVERLAY="/gentoo/build/overlay" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter afs alsa aotuv arts 
audiofile avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 
caps cdda cddb cdio cdparanoia cdr chipcard client-only cpudetection crypt cups 
dlloader doc dtaus dv dvd dvdread edl eds emacs emboss encode exif expat fam 
flac font-server foomaticdb ftp gd-external gdbm geldkarte gif gnokii gnutls 
gphoto2 gpm gtk2 hardened hbci httpd icq imagemagick imap imlib ipppd irda irmc 
isdnlog jpeg jpeg2k kcal kde kerberos koffice-plugin latex lcms ldap libg++ 
libwww lm_sensors lzo mad madwifi maildir mbox mime mjpeg motif mozilla mozsvg 
mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel 
nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython 
nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc ofx 
ogg oggvorbis openexr opengl pam pam_console pcre pdflib perl perlsuid 
pg-intdatetime pic png postgres ppds pppd pwdb python qt quicktime rdesktop 
readline real rtc savedconfig slang slp sms sockets socks5 speex spell sql sse 
ssl stream subversion svg svga symlink sysfs tcltk tcpd tetex theora threads 
tiff toolbar truetype truetype-fonts type1-fonts unicode usb vcd vim-with-x vlm 
vorbis wifi win32codecs wxwindows xine xml2 xmms xosd xprint xscreensaver xv 
xvid xvmc zeroconf zlib linguas_de userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-19 04:42:45 UTC
2 errors == 2 bugs... please file a second bug for the second issue.
Comment 2 Dirk Heinrichs 2005-10-19 05:10:03 UTC
Done. The other one is #109795. Also changed headline. 
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-19 06:19:27 UTC
Thanks!
Comment 4 Dirk Heinrichs 2005-10-20 05:09:56 UTC
Has been fixed by recompiling with "-fno-stack-protector" added to CFLAGS. 
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-10-22 00:30:36 UTC
Addressed in 1.0.1