Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293561 - games-strategy/lgeneral crashes when loading PG campaign or certain scenarios
Summary: games-strategy/lgeneral crashes when loading PG campaign or certain scenarios
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 01:00 UTC by Gregg Casillo
Modified: 2012-04-29 13:47 UTC (History)
1 user (show)

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 Gregg Casillo 2009-11-18 01:00:32 UTC
I installed lgeneral-1.2beta-13 recently. When I attempt to start a campaign (only one is labelled "PG"), the program crashes. Similar crashes happen when I attempt to load and start specific scenarios, e.g. North Africa. Here's the output from running lgeneral from a shell and attempting to start the PG campaign:

gregg@bianchi ~ $ lgeneral
LGeneral 1.2beta-13       
Copyright 2001-2005 Michael Speck
Published under GNU GPL          
---                              
Looking up data in: /usr/share/games/lgeneral
*** buffer overflow detected ***: lgeneral terminated
======= Backtrace: =========                         
/lib/libc.so.6(__fortify_fail+0x37)[0x7fd9b1e8d157]  
/lib/libc.so.6(+0xe6f70)[0x7fd9b1e8af70]             
/lib/libc.so.6(+0xe62d9)[0x7fd9b1e8a2d9]             
/lib/libc.so.6(_IO_default_xsputn+0x85)[0x7fd9b1e15415]
/lib/libc.so.6(_IO_vfprintf+0x3b0b)[0x7fd9b1de9edb]    
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x7fd9b1e8a37d]    
/lib/libc.so.6(__sprintf_chk+0x7f)[0x7fd9b1e8a2bf]     
lgeneral[0x425050]                                     
lgeneral[0x42c122]                                     
lgeneral[0x43121d]                                     
lgeneral[0x402fd9]                                     
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fd9b1dc2bbd] 
lgeneral[0x402b09]                                     
======= Memory map: ========                           
00400000-0043c000 r-xp 00000000 fd:00 74567                              /usr/games/bin/lgeneral
0063c000-0063d000 r--p 0003c000 fd:00 74567                              /usr/games/bin/lgeneral
0063d000-0063e000 rw-p 0003d000 fd:00 74567                              /usr/games/bin/lgeneral
0063e000-00661000 rw-p 00000000 00:00 0                                                         
01f6b000-03042000 rw-p 00000000 00:00 0                                  [heap]                 
7fd9ae6ba000-7fd9ae6d0000 r-xp 00000000 08:03 147526                     /lib64/libgcc_s.so.1   
7fd9ae6d0000-7fd9ae8cf000 ---p 00016000 08:03 147526                     /lib64/libgcc_s.so.1   
7fd9ae8cf000-7fd9ae8d0000 r--p 00015000 08:03 147526                     /lib64/libgcc_s.so.1
7fd9ae8d0000-7fd9ae8d1000 rw-p 00016000 08:03 147526                     /lib64/libgcc_s.so.1
7fd9ae8d1000-7fd9ae8d2000 ---p 00000000 00:00 0
7fd9ae8d2000-7fd9af0d2000 rw-p 00000000 00:00 0
7fd9af0d2000-7fd9af0d3000 ---p 00000000 00:00 0
7fd9af0d3000-7fd9af8d3000 rw-p 00000000 00:00 0
7fd9af8d3000-7fd9af8de000 r-xp 00000000 08:03 147158                     /lib64/libnss_files-2.11.so
7fd9af8de000-7fd9afade000 ---p 0000b000 08:03 147158                     /lib64/libnss_files-2.11.so
7fd9afade000-7fd9afadf000 r--p 0000b000 08:03 147158                     /lib64/libnss_files-2.11.so
7fd9afadf000-7fd9afae0000 rw-p 0000c000 08:03 147158                     /lib64/libnss_files-2.11.so
7fd9afae0000-7fd9afaea000 r-xp 00000000 08:03 147221                     /lib64/libnss_nis-2.11.so
7fd9afaea000-7fd9afce9000 ---p 0000a000 08:03 147221                     /lib64/libnss_nis-2.11.so
7fd9afce9000-7fd9afcea000 r--p 00009000 08:03 147221                     /lib64/libnss_nis-2.11.so
7fd9afcea000-7fd9afceb000 rw-p 0000a000 08:03 147221                     /lib64/libnss_nis-2.11.so
7fd9afceb000-7fd9afd00000 r-xp 00000000 08:03 147216                     /lib64/libnsl-2.11.so
7fd9afd00000-7fd9afeff000 ---p 00015000 08:03 147216                     /lib64/libnsl-2.11.so
7fd9afeff000-7fd9aff00000 r--p 00014000 08:03 147216                     /lib64/libnsl-2.11.so
7fd9aff00000-7fd9aff01000 rw-p 00015000 08:03 147216                     /lib64/libnsl-2.11.so
7fd9aff01000-7fd9aff03000 rw-p 00000000 00:00 0
7fd9aff03000-7fd9aff0a000 r-xp 00000000 08:03 147212                     /lib64/libnss_compat-2.11.so
7fd9aff0a000-7fd9b0109000 ---p 00007000 08:03 147212                     /lib64/libnss_compat-2.11.so
7fd9b0109000-7fd9b010a000 r--p 00006000 08:03 147212                     /lib64/libnss_compat-2.11.so
7fd9b010a000-7fd9b010b000 rw-p 00007000 08:03 147212                     /lib64/libnss_compat-2.11.so
7fd9b010b000-7fd9b0113000 r-xp 00000000 08:03 147213                     /lib64/librt-2.11.so
7fd9b0113000-7fd9b0312000 ---p 00008000 08:03 147213                     /lib64/librt-2.11.so
7fd9b0312000-7fd9b0313000 r--p 00007000 08:03 147213                     /lib64/librt-2.11.so
7fd9b0313000-7fd9b0314000 rw-p 00008000 08:03 147213                     /lib64/librt-2.11.so
7fd9b0314000-7fd9b03de000 r-xp 00000000 fd:00 566553                     /usr/lib64/libasound.so.2.0.0
7fd9b03de000-7fd9b05dd000 ---p 000ca000 fd:00 566553                     /usr/lib64/libasound.so.2.0.0
7fd9b05dd000-7fd9b05e3000 r--p 000c9000 fd:00 566553                     /usr/lib64/libasound.so.2.0.0
7fd9b05e3000-7fd9b05e5000 rw-p 000cf000 fd:00 566553                     /usr/lib64/libasound.so.2.0.0
7fd9b05e5000-7fd9b05ea000 r-xp 00000000 fd:00 567599                     /usr/lib64/libXfixes.so.3.1.0
7fd9b05ea000-7fd9b07e9000 ---p 00005000 fd:00 567599                     /usr/lib64/libXfixes.so.3.1.0
7fd9b07e9000-7fd9b07ea000 r--p 00004000 fd:00 567599                     /usr/lib64/libXfixes.so.3.1.0
7fd9b07ea000-7fd9b07eb000 rw-p 00005000 fd:00 567599                     /usr/lib64/libXfixes.so.3.1.0
7fd9b07eb000-7fd9b07f5000 r-xp 00000000 fd:00 568429                     /usr/lib64/libXcursor.so.1.0.2
7fd9b07f5000-7fd9b09f4000 ---p 0000a000 fd:00 568429                     /usr/lib64/libXcursor.so.1.0.2
7fd9b09f4000-7fd9b09f5000 r--p 00009000 fd:00 568429                     /usr/lib64/libXcursor.so.1.0.2
7fd9b09f5000-7fd9b09f6000 rw-p 0000a000 fd:00 568429                     /usr/lib64/libXcursor.so.1.0.2
7fd9b09f6000-7fd9b09fe000 r-xp 00000000 fd:00 568427                     /usr/lib64/libXrandr.so.2.2.0
7fd9b09fe000-7fd9b0bfd000 ---p 00008000 fd:00 568427                     /usr/lib64/libXrandr.so.2.2.0
7fd9b0bfd000-7fd9b0bfe000 r--p 00007000 fd:00 568427                     /usr/lib64/libXrandr.so.2.2.0
7fd9b0bfe000-7fd9b0bff000 rw-p 00008000 fd:00 568427                     /usr/lib64/libXrandr.so.2.2.0
7fd9b0bff000-7fd9b0c08000 r-xp 00000000 fd:00 567595                     /usr/lib64/libXrender.so.1.3.0
7fd9b0c08000-7fd9b0e08000 ---p 00009000 fd:00 567595                     /usr/lib64/libXrender.so.1.3.0
7fd9b0e08000-7fd9b0e09000 r--p 00009000 fd:00 567595                     /usr/lib64/libXrender.so.1.3.0
7fd9b0e09000-7fd9b0e0a000 rw-p 0000a000 fd:00 567595                     /usr/lib64/libXrender.so.1.3.0
7fd9b0e0a000-7fd9b0e1b000 r-xp 00000000 fd:00 567808                     /usr/lib64/libXext.so.6.4.0
7fd9b0e1b000-7fd9b101b000 ---p 00011000 fd:00 567808                     /usr/lib64/libXext.so.6.4.0
7fd9b101b000-7fd9b101c000 r--p 00011000 fd:00 567808                     /usr/lib64/libXext.so.6.4.0
7fd9b101c000-7fd9b101d000 rw-p 00012000 fd:00 567808                     /usr/lib64/libXext.so.6.4.0
7fd9b101d000-7fd9b1022000 r-xp 00000000 fd:00 568004                     /usr/lib64/libXdmcp.so.6.0.0
7fd9b1022000-7fd9b1221000 ---p 00005000 fd:00 568004                     /usr/lib64/libXdmcp.so.6.0.0
7fd9b1221000-7fd9b1222000 r--p 00004000 fd:00 568004                     /usr/lib64/libXdmcp.so.6.0.0
7fd9b1222000-7fd9b1223000 rw-p 00005000 fd:00 568004                     /usr/lib64/libXdmcp.so.6.0.0Aborted

Reproducible: Always

Steps to Reproduce:
1. Start lgeneral
2. Attempt to load the PG campaign or some select scenarios (e.g. North Africa)
3. Program crashes




gregg@bianchi ~ $ emerge --info
Portage 2.1.7.5 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 17 Nov 2009 18:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://ftp.twaren.net/Linux/Gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j25"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amarok amd64 amd64codecs asf audiofile avi bash-completion berkdb bluetooth bmp bzip2 cdr cli cracklib crypt ctype cups dbus dirac dlloader dri dts dv dvd dvdr dvdread emerald encode faac faad ffmpeg flac foomaticdb fortran frontendonly ftp g77 gdbm gif gstreamer hal iconv imap imlib innodb ip4100 joystick jpeg kde kde4 lcms libg++ libwww live lm_sensors logrotate mad maildir matroska mime mmx mmxext mng modules mp3 mpeg mtp mudflap multilib mysql ncurses nfs nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp pcre pdf perl phonon plasma png python qt qt3 qt3support quicktime readline rss samba sasl scanner sdl semantic-desktop session sieve smp speex spl sse sse2 ssl ssse3 subversion svg sysfs syslog taglib tcpd theora tiff transcode truetype unicode usb v4l vdpau vhosts vorbis webkit x264 xcb xine xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gregg Casillo 2010-01-15 20:18:23 UTC
Anybody else seeing this?
Comment 2 Martin Walch 2010-02-02 23:42:12 UTC
Yes, looks like the thing I described in Bug #248241.
Comment 3 Gregg Casillo 2010-02-03 00:13:55 UTC
I had beta13 installed though with these patches, and it wasn't working. I created an overlay ebuild for beta14 (available from the game author's site) and tried that, but it too had the same issues. There is a discussion about a related bug on that site's forum:

http://sourceforge.net/tracker/?func=detail&aid=2924907&group_id=9301&atid=109301

While this allowed me to start a campaign without errors, I still could not load some of the scenarios (e.g. any of the North African ones). For reference, here's the error I get when running lgeneral from a terminal and attempting to load the North Africa scenario:

"/usr/share/games/lgeneral/scenarios/pg/NorthAfrica: 16: parse error: use 'ยป' for assignment or '<' for section"
Comment 4 Martin Walch 2010-12-22 11:52:00 UTC
This seems to be fixed in games-strategy/lgeneral-1.2, which is now in Portage.