Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236469 - games-arcade/xtux-20030306 is buggy
Summary: games-arcade/xtux-20030306 is buggy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 16:31 UTC by Albert Zeyer
Modified: 2008-09-03 02:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xtux-particle-fix.patch (xtux-particle-fix.patch,1.38 KB, patch)
2008-09-02 18:42 UTC, Albert Zeyer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-09-02 16:31:34 UTC
The game starts, but when I try to start a server, it immediatly stops it again after it fails to connect to it. I removed ~/.xtux before starting, so the game was started with just the default options.

Output on console:

az@acompneu ~ $ xtux 
Starting server.
Error starting server
connect: Connection refused
Starting server.
Error starting server
connect: Connection refused
Free'd 2 images
Comment 1 Albert Zeyer 2008-09-02 16:32:13 UTC
Perhaps the game/ebuild is also outdated? (If 20030306 is really the date...)
Comment 2 Albert Zeyer 2008-09-02 16:32:20 UTC
az@acompneu ~ $ emerge --info
Error during set creation: Redefinition of set 'live-rebuild' (sections: 'live-rebuild', 'kde4-overlay sets')
Error during set creation: Redefinition of set 'live-rebuild' (sections: 'live-rebuild', 'kde4-overlay sets')
Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-rc4 i686)
=================================================================
System uname: Linux-2.6.27-rc4-i686-Intel-R-_Core-TM-2_CPU_E8500_@_3.16GHz-with-glibc2.0
Timestamp of tree: Tue, 02 Sep 2008 11:04:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
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.15.92.0.2-r10, 2.16.1-r3, 2.17-r1, 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -ggdb -pipe"
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/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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=nocona -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks parallel-fetch preserve-libs sandbox sfperms splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
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/kdesvn-portage /usr/portage/local/layman/mpd /usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux adns afs agg aiglx alsa amd amuled ao aqua_theme archive ares asf asm async asyncns atm auctex avahi bash-completion berkdb bidi binary binary-drivers bindist bittorrent bl bluetooth bonjour bookmarks bootsplash branding bzip2 bzlib cairo captury cdda cddb cdio cdparanoia cdr cdrom cgi cli clisp clucene cmake codecs corba cracklib crypt cups curl custreloc dbus dedicated dga dhcp disk-partition divx4linux dlopen dmi dnd dri dts dv dvd dvdnav dvdr dvdread dxr3 eds emboss encode esd evo exif faad fam fame ffmpeg firefox flac flash font-server foomaticdb fortran fpx freetype ftp galago gcj gcl gd gdbm ggi gif gimp gl glib glitz glslideshow glut gnome gphoto2 gpm gprof graphviz gs gstreamer gtk gtk2 gzip h323 hal haskell howl howl-compat html httpd hyperestraier iconv icq id3 id3tag imagemagick imap imlib imlib2 inotify insecure-drivers ipv6 isdnlog ithreads jack java jbig jikes jit jpeg jpeg2k kde kerberos lame latex lcms ldap libcaca libnotify libwww linuxthreads-tls live lzo mad matroska mbox mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mod modplug mozbranding mozcalendar mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc mudflap multislot musepack musicbrainz mysql nautilus ncurses nepomuk net network njb nls nntp nptl nptlonly nsplugin objc offensive ogg oggvorbis openal opengl openmp oss pam pascal pch pcre pdf perl php plasma png pop posix ppds pppd prebuilt-system pthreads pulseaudio python qt qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection rogue rplay rtc rtsp ruby samba sasl screen sdl semantic-desktop server session shorten shout silvercity silverxp skins slp sndfile sockets solver speedo speex spell spl sqlite sse sse2 ssh ssl ssse3 startup-notification stream subversion svg sysfs tagwriting tcltk tcpd teamarena tetex tga themes theora threads threadsafe thumbnail tiff transcode truetype type1 unicode urandom usb v4l v4l2 vcd vdr vidix visualization vlm vorbis win32codecs wma wmf wxwindows x264 x86 xanim xatrix xcomposite xext xface xforms xine xml xorg xosd xpm xprint xrandr xrender xscreensaver xsettings xterm xulrunner xv xvid xvmc zeroconf zip zlib zvbi" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-02 18:03:16 UTC
That does seem to be the very latest release...
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2008-09-02 18:15:30 UTC
Works fine for me on stable x86.  Do you already have something on port 8390 (the default port) ?   Try to figure out why the server isn't starting on your system.

I type xtux, press a key, press enter for Play, press enter for Start a New Game... game starts.
Comment 5 Albert Zeyer 2008-09-02 18:19:59 UTC
(In reply to comment #4)
> I type xtux, press a key, press enter for Play, press enter for Start a New
> Game... game starts.
> 

Exactly what I did. And does not start here:

az@acompneu ~ $ xtux 
Starting server.
Error starting server
connect: Connection refused

I also tried different ports but with no success. The default port should also be open:

az@acompneu ~ $ nc -vv -l -p 8390
listening on [any] 8390 ...
connect to [127.0.0.1] from localhost [127.0.0.1] 45367
huhu there
 sent 0, rcvd 11
Comment 6 Albert Zeyer 2008-09-02 18:25:32 UTC
I recompiled the game and it starts the server now. Probably there were some problems because the last build was very old:

acompneu ~ # genlop -l | grep xtux
     Tue Sep 28 15:53:02 2004 >>> games-arcade/xtux-20030306
     Tue Nov 30 20:03:10 2004 >>> games-arcade/xtux-20030306
     Tue Sep  2 20:22:41 2008 >>> games-arcade/xtux-20030306

Though, I have other problems now. I played a bit and in the second screen, the games segfaults while I tried to shoot.
Comment 7 Albert Zeyer 2008-09-02 18:26:28 UTC
...
**************************
cl_net_update(): About to get read() from server.....
cl_net_handle_message: type = NETMSG_PARTICLES
cl_net_handle_message: type = NETMSG_PARTICLES

Program received signal SIGSEGV, Segmentation fault.
0x08054367 in shards_init (dir=236 '�', src_x=632, src_y=1060, length=156, 
    color1=13 '\r', color2=2 '\002') at particle.c:343
343	particle.c: No such file or directory.
	in particle.c
(gdb) bt
#0  0x08054367 in shards_init (dir=236 '�', src_x=632, src_y=1060, length=156, 
    color1=13 '\r', color2=2 '\002') at particle.c:343
#1  0x080539e7 in create_particles (p=
      {type = 13 '\r', effect = 3 '\003', dir = 236 '�', color1 = 13 '\r', color2 = 2 '\002', x = 632, y = 1060, length = 156}) at particle.c:657
#2  0x08051837 in cl_net_handle_message (msg=
        {type = 13 '\r', noop = {type = 13 '\r'}, query_version = {type = 13 '\r'}, version = {type = 13 '\r', ver = "\003�\r"}, textmessage = {type = 13 '\r', sender = "\003�\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��", string = "���6\000\000\000���\0006\000\000\000\000����o��6\000\000\000�t��\220�����ַ\n\000\000\000������ַ�t��\000���6\000\000\0005\000\000\000�o���t������̤������\000 \000\000�F\032\t��۷�o㷽Y\005\b\t\000\000\000�F\032\t\000 \000\0005\000\000\0005\000\000\000\004"}, quit = {type = 13 '\r'}, rejection = {type = 13 '\r', reason = "\003�\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��"}, sv_info = {type = 13 '\r', players = 3 '\003', game_type = 236 '�', fps = 13 '\r', sv_name = "\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��\000���", map_name = "6\000\000\000���\0006\000\000\000\000����o��6\000\000\000�t��\220���"}, changelevel = {type = 13 '\r', map_name = "\003�\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��"}, start_frame = {type = 13 '\r', screenpos = {x = 3564, y = 42242}}, end_frame = {type = 13 '\r'}, entity = {type = 13 '\r', entity_type = 3 '\003', dir = 236 '�', mode = 13 '\r', x = 42242, y = 632, img = 36 '$', weapon = 4 '\004'}, particles = {type = 13 '\r', effect = 3 '\003', dir = 236 '�', color1 = 13 '\r', color2 = 2 '\002', x = 632, y = 1060, length = 1---Type <---Type <return> to continue, or q <return> to quit---
56}, update_statusbar = {type = 13 '\r', health = 3 '\003', weapon = 236 '�', frags = -23294, ammo = 632}, gamemessage = {type = 13 '\r', string = "\003�\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��\000���6\000\000\000���\0006\000\000\000\000����o��6\000\000\000�t��\220�����ַ\n\000\000\000������ַ�t��\000���6\000\000\0005\000\000\000�o���t������̤������\000 \000\000�F\032\t�"}, map_target = {type = 13 '\r', active = 3 '\003', target = {x = 3564, y = 42242}}, objective = {type = 13 '\r', string = "\003�\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��\000���6\000\000\000���\0006\000\000\000\000����o��6\000\000\000�t��\220�����ַ\n\000\000\000������ַ�t��\000���6\000\000\0005\000\000\000�o���t������̤������\000 \000\000�F\032\t�"}, join = {type = 13 '\r', gamemode = 3 '\003', protocol = 236 '�', name = "\r\002�x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��\000��", map_name = "�6\000\000\000���\0006\000\000\000\000����o��6\000\000\000�t��\220��"}, ready = {type = 13 '\r', entity_type = 3 '\003', color1 = 236 '�', color2 = 13 '\r', movemode = 2 '\002', view_w = 632, view_h = 1060}, query_sv_info = {type = 13 '\r'}, cl_update = {type = 13 '\r', dir = 3 '\003', keypress = 236 '�'}, killme = {type = 13 '\r'}, query_frags = {type = 13 '\r'}, frags = {type = 13 '\r', frame = 3564, frags = -23294, name = "x\002$\004\234\000�\002�\0042\000��\204���\025�ַ�t��\000���6"}, away = {type = 13 '\r'}}) at cl_net.c:265
#3  0x08051b77 in cl_net_update () at cl_net.c:307
#4  0x0804a6f5 in main (argc=1, argv=0xbfbaa734) at main.c:118
#5  0xb7d20fdc in __libc_start_main (main=0x804a3a9 <main>, argc=1, 
    ubp_av=0xbfbaa734, init=0x8058910 <__libc_csu_init>, 
---Type <return> to continue, or q <return> to quit---
    fini=0x8058900 <__libc_csu_fini>, rtld_fini=0xb7fa0150 <_dl_fini>, 
    stack_end=0xbfbaa72c) at libc-start.c:229
#6  0x08049f91 in _start ()
Comment 8 Albert Zeyer 2008-09-02 18:42:26 UTC
Created attachment 164391 [details, diff]
xtux-particle-fix.patch

There is a bug in src/client/particle.c. I fixed it. With the attached patch, at least this crash does not occur anymore.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2008-09-03 02:10:17 UTC
in portage.

resync and remerge to get the patch.