Freeciv compiles fine with these flags : games-strategy/freeciv-2.1.3 USE="alsa auth gtk nls readline -Xaw3d -dedicated -esd -sdl But fails to start. I've tried to compile it with sdl support, but it still doesn't start. Installed gtk libs are libgtk 2.12.8 and 1.2.10-r11 Reproducible: Always Steps to Reproduce: 1. Emerge freeciv 2.1.3 with these flags : alsa auth gtk nls readline -Xaw3d -dedicated -esd -sdl 2. try to start civclient 3. Actual Results: it seg faults Expected Results: Freeciv should start Portage 2.1.5_rc2 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.7-r2, 2.6.24-tuxonice-r2 i686) ================================================================= System uname: 2.6.24-tuxonice-r2 i686 Intel(R) Celeron(R) M processor 1.50GHz Timestamp of tree: Mon, 07 Apr 2008 19:15:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.4.4-r6, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.ludost.net/gentoo ftp://mirrors.ludost.net/gentoo/ http://distfiles.gentoo.org" LC_ALL="bg_BG" LDFLAGS="" LINGUAS="bg en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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/portage/local/layman/sunrise /usr/portage/local/layman/armagetron /usr/portage/local/layman/berkano /usr/portage/local/layman/java-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acpi alsa berkdb cli cracklib crypt cups dbus dri fortran gdbm gif glitz gpm hal iconv ipv6 isdnlog jpeg kde kdexdeltas midi mmx mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl ppds pppd python readline reflection session spl sse sse2 ssl tcpd threads unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="bg en" USERLAND="GNU" VIDEO_CARDS="vesa fbdev i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 150088 [details] Output with -d 3 option
Well, in the description of "severity" it's said if the program crashes, it's critical. It's okay with me though the status to be changed to normal.
It start here, same USE flags. Maybe you can build it with FEATURES="nostrip" CFLAGS="-O2 -march=pentium-m -pipe -g" and then start it with gdb to see where it break: gdb civclient ... (gdb) run .... (gdb) bt and analyze the output of the command. That way you can further go and find who is the faulty item
You can also try to emerge it using: CFLAGS="-O1 -march=pentium-m -pipe -g" as the freeciv site says: WARNING: gcc 4.2.1 and 4.2.2 miscompile Freeciv, if level -O2 (or above) optimization is used! Maybe it apply to 4.2.3 too.
Well, my gcc version is 4.1.2 but tried with -01 and still the problem's there. I also added "nostrip" but got useless stacktrace, pointing to libgdk file. Then I reemerged gtk with debug flag and here's a bit more useful stacktrace from civclient : (gdb) run Starting program: /usr/games/bin/civclient [Thread debugging using libthread_db enabled] [New Thread 0xb73aa6c0 (LWP 4071)] [New Thread 0xb70b1b90 (LWP 4074)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb73aa6c0 (LWP 4071)] 0xb685c2f2 in ?? () (gdb) bt #0 0xb685c2f2 in ?? () #1 0xb7b6a85b in gdk_event_apply_filters (xevent=0xbfe90b3c, event=0x8e7c9f0, filters=0x82f0b40) at gdkevents-x11.c:345 #2 0xb7b6c264 in gdk_event_translate (display=0x82ce020, event=0x8e7c9f0, xevent=0xbfe90b3c, return_exposes=0) at gdkevents-x11.c:896 #3 0xb7b6e91e in _gdk_events_queue (display=0x82ce020) at gdkevents-x11.c:2285 #4 0xb7b6edb1 in gdk_event_dispatch (source=0x82d85a0, callback=0, user_data=0x0) at gdkevents-x11.c:2345 #5 0xb7957b4f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Can you test it with the new version of freeciv (2.1.4) just added in portage?
It works now, but it wasn't the new version that fixed it. After posting the stacktrace I googled about parts of it and I found out that the problem was due to the gtk-qt engine. After I enabled it from the control center of KDE, everything works fine. I tested it with 2.1.3 and 2.1.4. 2.0.9 has no problems with gtk-qt.
clean up bug list after bugzilla update