Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276493 - games-simulation/openttd-0.7* segfaults with the gcc 4.4
Summary: games-simulation/openttd-0.7* segfaults with the gcc 4.4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2009-07-04 21:22 UTC by Maciej Piechotka
Modified: 2009-07-05 01:28 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 Maciej Piechotka 2009-07-04 21:22:42 UTC
games-simulation/openttd-0.7* segfaults with the gcc 4.4

Reproducible: Always

Steps to Reproduce:
1. Build using gcc 4.4
2. Try to run
Actual Results:  
% gdb openttd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Really redefine built-in command "frame"? (y or n) [answered Y; input not from terminal]
Really redefine built-in command "thread"? (y or n) [answered Y; input not from terminal]
Really redefine built-in command "start"? (y or n) [answered Y; input not from terminal]
gdb> run
[Thread debugging using libthread_db enabled]
[New Thread 0xb7a726d0 (LWP 385)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7a726d0 (LWP 385)]
_______________________________________________________________________________
     eax:6E435DD9 ebx:08000010  ecx:65636E61  edx:6E435DD9     eflags:00010206
     esi:09E3BF50 edi:09E3B990  esp:BF9CB030  ebp:09E4BDA0     eip:08065368
     cs:0073  ds:007B  es:007B  fs:0000  gs:0033  ss:007B    o d I t s z a P c 
[007B:BF9CB030]---------------------------------------------------------[stack]
BF9CB060 : 00 B2 9C BF  00 00 00 00 - 00 00 00 00  76 40 06 08 ............v@..
BF9CB050 : 90 B9 E3 09  24 00 00 00 - 20 00 00 00  40 BE E3 09 ....$... ...@...
BF9CB040 : 40 BE E3 09  00 B2 9C BF - 00 00 00 00  FF FF 71 00 @.............q.
BF9CB030 : 48 B0 9C BF  7D 14 BF B7 - AB 24 BF B7  20 BF E3 09 H...}....$.. ...
[007B:09E3BF50]---------------------------------------------------------[ data]
09E3BF50 : 00 00 00 00  00 00 00 00 - 00 00 00 00  40 BE E3 09 ............@...
09E3BF60 : 00 00 00 00  08 00 00 00 - 9D DC A2 3F  69 6E 73 74 ...........?inst
[0073:08065368]---------------------------------------------------------[ code]
0x8065368 <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+104>:	cmp    %edi,0xc(%edx)
0x806536b <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+107>:	jne    0x8065372 <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+114>
0x806536d <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+109>:	cmp    %ebx,0x8(%edx)
0x8065370 <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+112>:	je     0x806537b <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+123>
0x8065372 <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+114>:	mov    0x10(%edx),%edx
0x8065375 <_ZN7SQTable7NewSlotERK11SQObjectPtrS2_+117>:	test   %edx,%edx
------------------------------------------------------------------------------
0x08065368 in SQTable::NewSlot (this=0x9e3bf50, key=@0x9e4bda0, val=@0xbf9cb200) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqtable.h:69
69	/var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqtable.h: No such file or directory.
	in /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqtable.h
gdb> bt
#0  0x08065368 in SQTable::NewSlot (this=0x9e3bf50, key=@0x9e4bda0, val=@0xbf9cb200) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqtable.h:69
#1  0x08064076 in SQSharedState::Init (this=0x9e3be40) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqstate.cpp:127
#2  0x0804f8ff in sq_open (initialstacksize=0x400) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/3rdparty/squirrel/squirrel/sqapi.cpp:52
#3  0x0815f934 in Squirrel (this=0x9e4be98) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/script/squirrel.cpp:291
#4  0x080957f9 in AIScanner (this=0x9e3b9e8) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/ai/ai_scanner.cpp:128
#5  0x0806d0db in AI::Initialize () at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/ai/ai_core.cpp:119
#6  0x081306cc in ttd_main (argc=0x1, argv=0xbf9cb4f4) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/openttd.cpp:532
#7  0x0819e82a in main (argc=0x1, argv=0xbf9cb4f4) at /var/tmp/paludis/games-simulation-openttd-0.7.1/work/openttd-0.7.1/src/unix.cpp:251
gdb> quit



(please note - installed is by gcc 4.3.0)

Package games-simulation/openttd-0.7.1::installed:

        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        bunzip2 < /var/db/pkg/games-simulation/openttd-0.7.1/environment.bz2 > /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20319
        ebuild_scrub_environment /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20319
        ebuild_safe_source /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20319
        rm /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20319
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as paludisbuild:paludisbuild...
        bunzip2 < /var/db/pkg/games-simulation/openttd-0.7.1/environment.bz2 > /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20376
        ebuild_scrub_environment /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20376
        ebuild_safe_source /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20376
        rm /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20376
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=x86
        CBUILD=i686-pc-linux-gnu
        CFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer
        CHOST=i686-pc-linux-gnu
        CONFIG_PROTECT=/var/lib/hsqldb /etc 
        CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/env.d/java/ /etc/udev/rules.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/splash /etc/env.d /etc/gconf 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer
        DISTDIR=/var/db/pkg/games-simulation/openttd-0.7.1
        FEATURES=collision-protect cvs digest multilib-strict sign splitdebug stricter userpriv usersandbox
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en_GB en_US pl
        MAKEOPTS=
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/games-simulation/openttd-0.7.1
        PORTDIR_OVERLAY=
        SYNC=
        USE=alsa iconv png truetype zlib x86 alsa_cards_atiixp alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_empty alsa_pcm_plugins_ioplug alsa_pcm_plugins_null apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias cameras_panasonic elibc_glibc input_devices_evdev kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en_GB linguas_en_US linguas_pl netbeans_modules_ide netbeans_modules_java netbeans_modules_websvccommon qemu_softmmu_targets_i386 qemu_softmmu_targets_x86_64 qemu_user_targets_i386 qemu_user_targets_x86_64 sane_backends_gt68xx userland_GNU video_cards_radeon x86 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        bunzip2 < /var/db/pkg/games-simulation/openttd-0.7.1/environment.bz2 > /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20454
        ebuild_scrub_environment /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20454
        ebuild_safe_source /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20454
        rm /var/tmp/paludis/environment-games-simulation-openttd-0.7.1-20454
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/games-simula        >>> tion-openttd-0.7.1-info
Done builtin_tidyup
        >>> Completed ebuild phase tidyup

Package games-simulation/openttd-0.7.1:0::gentoo:

paludis@1246742413: [WARNING e.ebuild.userpriv_disabled] In thread ID '20287':
  ... In program paludis --info games-simulation/openttd:
  ... When handling query 'games-simulation/openttd':
  ... When infoing 'games-simulation/openttd-0.7.1:0::gentoo':
  ... When checking permissions on '/var/tmp/paludis' for userpriv:
  ... Directory '/var/tmp/paludis' does not have group write permission, cannot enable userpriv
        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=x86
        CBUILD=i686-pc-linux-gnu
        CFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -maccumulate-outgoing-args -findirect-inlining -floop-interchange -floop-block -floop-strip-mine
        CHOST=i686-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -maccumulate-outgoing-args -findirect-inlining -floop-interchange -floop-block -floop-strip-mine
        DISTDIR=/var/tmp/distfiles
        FEATURES=collision-protect cvs digest multilib-strict sign splitdebug stricter userpriv usersandbox
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en_GB en_US pl
        MAKEOPTS=
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=alsa iconv png truetype zlib x86 alsa_cards_atiixp alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_empty alsa_pcm_plugins_ioplug alsa_pcm_plugins_null apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias cameras_panasonic elibc_glibc input_devices_evdev kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en_GB linguas_en_US linguas_pl netbeans_modules_ide netbeans_modules_java netbeans_modules_websvccommon qemu_softmmu_targets_i386 qemu_softmmu_targets_x86_64 qemu_user_targets_i386 qemu_user_targets_x86_64 sane_backends_gt68xx userland_GNU video_cards_radeon x86 
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/games-simulation-openttd-0.7.1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2009-07-05 01:28:15 UTC
You have unsupportable cflags.  Sorry.  If you feel like using more reasonable cflags and rebuilding your entire system, reopen if there's still a problem.