Bug 19392 - UT2003 Demo benchmarking results display "Divide by Zero" errors
Bug#: 19392 Product:  Gentoo Linux Version: 1.4_rc2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: slaterc@post.uwstout.edu
Component: Games
URL: 
Summary: UT2003 Demo benchmarking results display "Divide by Zero" errors
Keywords:  
Status Whiteboard: 
Opened: 2003-04-15 20:01 0000
Description:   Opened: 2003-04-15 20:01 0000
I know that there have been problems with MinDetail benchmarking, but... when I
run ut2003-demo --benchmark, I get divide by zero errors. Output of ut2003-demo
--results follows:

>> Results of the UT2003-demo benchmark
>> Created on Tue Apr 15 11:06:04 GMT-8 2003
 
>> Score for Botmatch
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=13): Divide by zero
MinDetail:  (0 tests)
MaxDetail:  (0 tests)
Average  :  (0 tests)
 
>> Score for FlyBy
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=13): Divide by zero
MinDetail:  (0 tests)
MaxDetail:  (0 tests)
Average  :  (0 tests)

Even though I ran a test before it's convinced that I have not.

Reproducible: Always
Steps to Reproduce:
1.run ut2003-demo --benchmark as a user
2.if desired, run ut2003-demo --results 

Actual Results:  
Results came out as "Divide by zero"

Expected Results:  
Results should of been compiled properly.

root@localhost  # emerge --info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gaming-r1 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode gif jpeg kde libg++ libwww
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gtkhtml gdbm berkdb slang readline bonobo svga java guile X sdl gpm tcpd
pam ssl
perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

------- Comment #1 From Chris Slater 2003-04-15 20:03:00 0000 -------
If this is related to the MinDetail problems, please delete, and I'm sorry for
wasting your time.

------- Comment #2 From SpanKY 2003-06-21 03:41:11 0000 -------
please post this file as an attachment: 
~/.ut2003/Benchmark/bench.log 

------- Comment #3 From Chris Slater 2003-06-21 16:12:28 0000 -------
Created an attachment (id=13671) [details]
Bench log

------- Comment #4 From Chris Slater 2003-06-21 16:12:39 0000 -------
Created an attachment (id=13672) [details]
Bench log

------- Comment #5 From Chris Slater 2003-06-21 16:14:07 0000 -------
Whoops made two attachments because I got a 400 error. It kept wanting to say
"application/octet-stream" for a text file. Weird.

------- Comment #6 From SpanKY 2003-06-23 09:10:21 0000 -------
ok, i sorted out the problem ... was basically a bash scripting error ;)

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/ut2003-demo/files/results.sh.diff?r1=1.1&r2=1.2

i'm not going to version bump the ebuild due to it's immense size ... but you
can grab the file from that URL