Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 201763

Summary: games-fps/doom3 contains text relocations and uses executable stack
Product: Gentoo Linux Reporter: Damien <goosegog06>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Damien 2007-12-09 12:32:54 UTC
emerge reported text relocations in:

TEXTREL opt/doom3/pb/pbcl.so
TEXTREL opt/doom3/pb/pbags.so
TEXTREL opt/doom3/pb/pbcls.so
TEXTREL opt/doom3/pb/pbag.so
TEXTREL opt/doom3/pb/pbsv.so


also reported executable stack in:

RWX --- --- opt/doom3/libgcc_s.so.1
RWX --- --- opt/doom3/doom.x86
RWX --- --- opt/doom3/libstdc++.so.5

I can not run doom3 - I get file not found message for /opt/doom3/doom.x86 but it is there:
ls -l /opt/doom3/
total 8624
-rw-r----- 1 root games    9925 Dec  9 12:20 CHANGES
-rw-r----- 1 root games   17729 Dec  9 12:20 License.txt
-rw-r----- 1 root games    1712 Dec  9 12:20 README
drwxr-x--- 2 root games    4096 Dec  9 11:46 base
drwxr-x--- 2 root games    4096 Dec  9 11:46 d3xp
-rwxrwxr-x 1 root games 3734772 Dec  9 12:20 doom.x86
-rw-r----- 1 root games   13050 Dec  9 12:20 doom3.png
-rwxr-x--- 1 root games  814791 Dec  9 12:20 libgcc_s.so.1
-rwxr-x--- 1 root games 4193151 Dec  9 12:20 libstdc++.so.5
-rwxr-x--- 1 root games     271 Dec  9 12:20 openurl.sh
drwxr-x--- 3 root games    4096 Dec  9 11:46 pb
-rw-r----- 1 root games       9 Dec  9 12:20 version.info

`strace /usr/games/bin/doom3` reports:

write(2, "/usr/games/bin/doom3: line 10: /"..., 78/usr/games/bin/doom3: line 10: /opt/doom3/doom.x86: No such file or directory
) = 78
stat("/opt/doom3/doom.x86", {st_mode=S_IFREG|0775, st_size=3734772, ...}) = 0
write(2, "/usr/games/bin/doom3: line 10: /"..., 60/usr/games/bin/doom3: line 10: /opt/doom3/doom.x86: Success
) = 60
exit_group(1)                           = ?

I don't know if these issues are related.

Reproducible: Always

Steps to Reproduce:
1. emerge doom3
2. run /usr/games/bin/doom3
3.

Actual Results:  
/usr/games/bin/doom3:
/usr/games/bin/doom3: line 10: /opt/doom3/doom.x86: No such file or directory
/usr/games/bin/doom3: line 10: /opt/doom3/doom.x86: Success

Expected Results:  
doom3 runs.

emerge --info
Portage 2.1.3.19 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r8 x86_64)
=================================================================
System uname: 2.6.22-hardened-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Sat, 08 Dec 2007 01:00:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib ace acpi administrator alias alsa amd64 amr amrr animgif apache2 apm asf async audiofile bash-completion binary-drivers branding browserplugin bzip2 calendar cdaudio cdda cddb cdinstall cdparanoia cdr cdrom cdrw cg cgi checkpath chroot clamav cli colordiff compress connectionstatus contactnotes contentcache cpio cpudetection cpufreq cpulimit cracklib crypt css csv cursors dcraw dia dic divx dnd dv dvb dvbplayer dvd dvdnav dvdr dvdread dvi dxr3 editor encode excel extrafilters extraicons extramodules faillog fam fame fat fax festival ffmpeg fftw firefox flac flash flashsupport ftp gd gdm ggi gif gimp glut gocr grammar gs gzip hacking hardened hash hddtemp history html http idea imagemagick imap ipsec iptv irda jack java joystick jpeg jpeg2k justify kcal kde kdecards kdepim kdm keyscrub kmid lame latex lcd libwww lids logitech-mouse logrotate logwatch mad madwifi maildir md5sum midi mime mjpeg mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mplayer msn msnextras music mysql mysqli nat net netmeeting network networking nls nptl nptlonly nsplugin ntfs nvtv offensive office ogg opengl openssl p2p pam pdf pdfkit pear-db php pic pie png posix postscript prelude ps quicktime radio rar rc5 readline rss rtc samba sdl sdl-image sdl-sound sdlaudio sockets sound sounds speech speedo spell sql sse sse2 ssl subtitles subversion suhosin syslog szip tcp tcpd tetex themes theora thesaurus threads tidy tiff timidity transcode trayicon truetype tv_check type1 uk_bleb uk_rt unicode unzip upnp urandom usb userlocales uuencode v4l v4l2 vcd videos vnc vncviewer vorbis wav wma wmf wmp x xhtml xine xml xorg xsl xv xvid yahoo zip zlib" ALSA_CARDS="bt87x intel8x9 intex8x0n loopback" 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="mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="hauppauge hauppauge_dvb" USERLAND="GNU" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Paul Bredbury 2007-12-10 04:01:14 UTC
> -rwxrwxr-x 1 root games 3734772 Dec  9 12:20 doom.x86

Why is that file world-readable?

See if other files in that directory can be read by the games-playing user.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-01-20 01:37:42 UTC
QA noted in the later version so this is WONTFIX