Random crash: 2661 floating point exception

Our old place to report Bugs, it's not used anymore. To report bugs, please read this topic.

Random crash: 2661 floating point exception

Postby KaFoX » 14 May 2007, 06:02

A random crash (stderr said only '2661 floating point exception'), during I believe the second mission of second campaign. I wasn't doing anything in particular, just building stuff. But, I wasn't doing anything at the time of the crash (no input from me at that time). No idea how to reproduce it ... just keep playing until it happens again, I guess. Found this warzone2100.gdmp. Thought you might find it useful:

Code: Select all
Program command: warzone2100
Version: 2.0.6
Type: Release
Compiled on: May  9 2007

Operating system: Linux
Node name: draxslack
Release: 2.6.17.13
Version: #1 SMP Mon Mar 12 15:10:35 CDT 2007
Machine: i686

Pointers: 32bit

Dump caused by signal: SIGFPE: Erroneous arithmetic operation: Integer divide by zero

GLIBC raw backtrace:
warzone2100[0x815af43]

GDB extended backtrace:
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
Attaching to process 2661
Reading symbols from /usr/local/bin/warzone2100...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /usr/lib/libphysfs-1.0.so.1...done.
Loaded symbols for /usr/lib/libphysfs-1.0.so.1
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for /usr/lib/libpng.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1222465824 (LWP 2661)]
[New Thread -1242747984 (LWP 2663)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /usr/lib/libSDL_net-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL_net-1.2.so.0
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libopenal.so.0...done.
Loaded symbols for /usr/lib/libopenal.so.0
Reading symbols from /usr/lib/libvorbisfile.so.3...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libmad.so.0...done.
Loaded symbols for /usr/lib/libmad.so.0
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/lib/libvga.so.1...done.
Loaded symbols for /usr/lib/libvga.so.1
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/tls/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/tls/libnvidia-tls.so.1
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /usr/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
0xb7e47071 in __waitpid_nocancel () from /lib/tls/libpthread.so.0
(gdb) #0  0xb7e47071 in __waitpid_nocancel () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x0815b393 in posixExceptionHandler (signum=8, siginfo=0xbfe8c54c,
    sigcontext=0xbfe8c5cc) at exceptionhandler.c:490
   allreadyRunning = 1
   btBuffer = {0x815af43, 0x0 <repeats 19 times>}
   btSize = 1
   pid = 2686
   gdbPipe = {14, 15}
   dumpFile = 13
#2  <signal handler called>
No symbol table info available.
#3  0x080f3c7b in calcScreenCoords (psDroid=0xb54f2870) at display3d.c:4339
   cX = 32768
   cY = 32768
   cZ = 0
   radius = 22
   pt = {x = -1075263248, y = -1220716608}
#4  0x080f3e90 in renderAnimComponent (psObj=0xb5542ab0) at display3d.c:1491
   dv = {x = 1129, y = 218, z = 1531}
   posX = 13202
   posY = 10262
   iPlayer = 2
   psParentObj = (BASE_OBJECT *) 0xb54f2870
   brightness = 4279704367
   specular = 0
   __FUNCTION__ = "renderAnimComponent"
#5  0x080ed806 in bucketRenderCurrentList () at bucket3d.c:308
   z = 7994
   thisTag = (BUCKET_TAG *) 0x82d4e60
#6  0x080fa5c0 in drawTiles (camera=0x780, player=0x82def54)
    at display3d.c:1021
   i = 32
   j = 32
   zMax = 220000
   BSPCamera = {x = 13651, y = 903, z = 11369}
   specular = 0
   edgeX = 12660
   edgeY = 137228116
   IsWaterTile = 63360
   PushedDown = 0
   TileIllum = 116 't'
   TextNum = 0
   shiftVal = 0
   realX = 12660
   realY = 10
   bEdgeTile = 137228116
   tmp_y = 63360
   angle = 3388.59473
   __FUNCTION__ = "drawTiles"
#7  0x080fa8cb in displayTerrain () at display3d.c:652
No locals.
#8  0x080fa976 in draw3DScene () at display3d.c:439
   bPlayerHasHQ = 220000
#9  0x0806721c in displayWorld () at display.c:1644
   pos = {x = 141015040, y = 0, z = 0}
#10 0x080a148d in gameLoop () at loop.c:688
   psCurr = (DROID *) 0x0
   psNext = (DROID *) 0x0
   psCBuilding = (STRUCTURE *) 0x0
   psNBuilding = (STRUCTURE *) 0x0
   psCFeat = (FEATURE *) 0x35b60
   psNFeat = (FEATURE *) 0x0
   i = 8
   widgval = 0
   quitting = 0
   intRetVal = INT_NONE
   clearMode = CLEAR_OFF
   __FUNCTION__ = "gameLoop"
#11 0x080a26ef in main (argc=3, argv=0xbfe8cd04) at main.c:770
   frameRet = 220000
   quit = 0
   Restart = 0
   paused = 0
   introVideoControl = 3
   loopStatus = 0
   psPaletteBuffer = (iColour *) 0x0
   pSize = 768
(gdb) Detaching from program: /usr/local/bin/warzone2100, process 2661
KaFoX
New user
 
Posts: 4
Joined: 08 May 2007, 04:11

Re: Random crash: 2661 floating point exception

Postby Giel » 14 May 2007, 14:51

Probably is the result from cZ being 0, then it probably crashed at line 4339 of display3d.c:
Code: Select all
radius = ((radius * pie_GetResScalingFactor()) * 80 / cZ);
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
Giel
Regular
Regular
 
Posts: 725
Joined: 26 Dec 2006, 19:18


Return to Bug reporting