Clean emerge of atanks, v 1.1.0 . 1 to 10 seconds into the game, the program invariably segfaults. Here is the backtrace: #0 0xb7f180ee in blit () from /usr/lib/liballeg.so.4.1 #1 0xb7faa760 in ?? () from /usr/lib/liballeg.so.4.1 #2 0x00000000 in ?? () #3 0xb7fc5784 in _mouse_screen () from /usr/lib/liballeg.so.4.1 #4 0xb7faa760 in ?? () from /usr/lib/liballeg.so.4.1 #5 0xb7fc5780 in _midi_tick () from /usr/lib/liballeg.so.4.1 #6 0x0000000b in ?? () #7 0x00000015 in ?? () #8 0xb7f6980b in gfx_mode_select () from /usr/lib/liballeg.so.4.1 #9 0x00000000 in ?? () #10 0x00000000 in ?? () #11 0x00000000 in ?? () #12 0x000001e6 in ?? () #13 0x00000139 in ?? () #14 0x0000000b in ?? () #15 0x00000015 in ?? () #16 0xb7fc5784 in _mouse_screen () from /usr/lib/liballeg.so.4.1 #17 0xb7fc5780 in _midi_tick () from /usr/lib/liballeg.so.4.1 #18 0xb7fafe24 in mouse_y_focus () from /usr/lib/liballeg.so.4.1 #19 0x00000015 in ?? () #20 0x0000000b in ?? () #21 0x00000139 in ?? () #22 0x000001e6 in ?? () ---Type <return> to continue, or q <return> to quit--- #23 0x00000000 in ?? () #24 0x00000000 in ?? () #25 0x00000013 in ?? () #26 0x00000139 in ?? () #27 0x00000258 in ?? () #28 0x00000000 in ?? () #29 0x00000320 in ?? () #30 0x00000000 in ?? () #31 0xffffffff in ?? () #32 0x0000013a in ?? () #33 0x000001e6 in ?? () #34 0xffffffff in ?? () #35 0xb7faa760 in ?? () from /usr/lib/liballeg.so.4.1 #36 0xb7f69be0 in gfx_mode_select () from /usr/lib/liballeg.so.4.1 #37 0xb7fce0e0 in _voice () from /usr/lib/liballeg.so.4.1 #38 0xb7f69d3f in gfx_mode_select () from /usr/lib/liballeg.so.4.1 #39 0x00000000 in ?? () #40 0xb7faa760 in ?? () from /usr/lib/liballeg.so.4.1 #41 0xb7f7ec15 in _handle_timer_tick () from /usr/lib/liballeg.so.4.1 #42 0xb6ec63d8 in ?? () #43 0x000004a2 in ?? () #44 0xb6ec63e0 in ?? () #45 0xb7f8928b in seqbuf_dump () from /usr/lib/liballeg.so.4.1 ---Type <return> to continue, or q <return> to quit--- #46 0xb7fb96c0 in mousedrv_linux_evdev () from /usr/lib/liballeg.so.4.1 #47 0x0000000b in ?? () #48 0x00000000 in ?? () #49 0x00000000 in ?? () #50 0xb6ec63d8 in ?? () #51 0xb6ec63e8 in ?? () #52 0x000004a2 in ?? () #53 0x037f0c7f in ?? () #54 0x42654966 in ?? () #55 0x0001a5f6 in ?? () #56 0x00000000 in ?? () #57 0x00000000 in ?? () #58 0x42654966 in ?? () #59 0x0001a5f6 in ?? () Allegro version is 4.1.18 Reproducible: Always Steps to Reproduce: 1.Start atanks 2. 3. Actual Results: Program crashes Expected Results: An enjoyable game of atanks Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 28 2005, 20:05:56)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -mtune=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/env.d" CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/ ftp://gentoo.ccccom.com" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cdr crypt cups curl dba directfb divx4linux dvd emboss encode esd fam fbcon flac font-server foomaticdb fortran gd gd-external gdbm gif gpm gstreamer gtk gtk2 guile hal imagemagick imlib immqt-bc ipv6 java javascript jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql nas ncurses nls nocd nptl nptlonly offensive ogg oggvorbis opengl openssl oss pam pcmcia pdflib perl png pnp print python qt quicktime readline samba sdl session slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales utf8 vhosts vorbis webdav xml xml2 xscreensaver xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
works fine for me. Try recompiling allegro and atanks with CFLAGS and CXXFLAGS set to just "-pipe" and see if that makes a difference for you.
Thank you. Dumbing down the cflags solves the problem.