2025-07-22 13:52 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003377Spring engineGeneralpublic2012-12-24 02:40
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version91.0.1+git 
Target VersionFixed in Version 
Summary0003377: Arithmetic exception in ExplosionGenerator.cpp:513
Description
#0 0x0000000000a5a0d7 in CCustomExplosionGenerator::ExecuteExplosionCode (this=0xaa06ca0, code=0xaa070a6 "", damage=55, instance=0x87eb490 "\360F\033\001", spawnIndex=0, dir=..., synced=true) at /home/buildbot/slave/full-linux/build/rts/Sim/Projectiles/ExplosionGenerator.cpp:513
        val = 1
        ptr = 0x0
        buffer = {-9.53144898e-14, 4.59163468e-41, 1.5178949e-38, 0, 179.292297, 0, 7.66475949e-34, 0, -9.53148151e-14, 4.59163468e-41, 0, 0, 7.6647099e-34, 0, -5.02754189e+33, 0}
        __PRETTY_FUNCTION__ = "void CCustomExplosionGenerator::ExecuteExplosionCode(const char*, float, char*, int, const float3&, bool)"
#1 0x0000000000a5c551 in CCustomExplosionGenerator::Explosion (this=0xaa06ca0, explosionID=0, pos=..., damage=55, radius=0, owner=0x7faebd0, gfxMod=0, hit=0x0, dir=...) at /home/buildbot/slave/full-linux/build/rts/Sim/Projectiles/ExplosionGenerator.cpp:927
        projectile = 0x87eb490
        c = 0
        psi = @0xaa079f0: {projectileClass = 0x234ba60, code = std::vector of length 66, capacity 66 = {4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 12 '\f', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 6 '\006', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 4 '\004', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 1 '\001', 0 '\000', 1 '\001', 10 '\n', -76 '\264', 0 '\000', 8 '\b', -48 '\320', 110 'n', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 0 '\000'}, count = 1, flags = 71}
        a = 0
        groundHeight = 179.292297
        altitude = 25.3106842
        flags = 36
        cegData = @0xaa06d40: {projectileSpawn = std::vector of length 3, capacity 3 = {{projectileClass = 0x234ba60, code = std::vector of length 66, capacity 66 = {4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 12 '\f', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 6 '\006', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 4 '\004', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 1 '\001', 0 '\000', 1 '\001', 10 '\n', -76 '\264', 0 '\000', 8 '\b', -48 '\320', 110 'n', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 0 '\000'}, count = 1, flags = 71}, {projectileClass = 0x234afe0, code = std::vector of length 219, capacity 219 = {4 '\004', -20 '\354', 81 'Q', 120 'x', 63 '?', 2 '\002', 92 '\\', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 1 '\001', -103 '\231', 0 '\000', 8 '\b', 32 ' ', 109 'm', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 64 '@', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 1 '\001', 72 'H', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 44 ',', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -96 '\240', 66 'B', 2 '\002', 48 '0', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 0 '\000', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 4 '\004', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 24 '\030', 1 '\001', 4 '\004', -51 '\315', -52 '\314', -52 '\314', -66 '\276', 2 '\002', 28 '\034', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 32 ' ', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 65 'A', 1 '\001', 104 'h', 1 '\001', 6 '\006', -51 '\315', -52 '\314', 76 'L', 61 '=', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 76 'L', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 64 '@', 2 '\002', 80 'P', 1 '\001', 6 '\006', -51 '\315', -52 '\314', 76 'L', 61 '=', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 84 'T', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 64 '@', 2 '\002', 88 'X', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -64 '\300', 64 '@', 2 '\002', 36 '$', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 64 '@', 2 '\002', 40 '(', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 96 '`', 1 '\001', 4 '\004', 0 '\000'...}, count = 1, flags = 18}, {projectileClass = 0x234ba60, code = std::vector of length 48, capacity 48 = {7 '\a', 0 '\000', 0 '\000', -128 '\200', 63 '?', 1 '\001', 0 '\000', 1 '\001', 10 '\n', -76 '\264', 0 '\000', 8 '\b', -112 '\220', 116 't', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 0 '\000'}, count = 2, flags = 96}}, groundFlash = {flashSize = 0, flashAlpha = 0, circleGrowth = 0, circleAlpha = 0, ttl = 0, color = {static binder = {class_ = 0x2349060, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1a45220, name = 0x11ea4fb "float3", size = 12, constructor = 0xc23006 <float3::_ConstructInstance(void*)>, destructor = 0xc23032 <float3::_DestructInstance(void*)>, nextBinder = 0x1a451c0}, static memberRegistrator = 0x1a452e0, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, {{x = 0, y = 0, z = 0}, {r = 0, g = 0, b = 0}, {x1 = 0, y1 = 0, x2 = 0}, {s = 0, t = 0, p = 0}, {xstart = 0, ystart = 0, xend = 0}}}, flags = 0}, useDefaultExplosions = false}
        spawnInfo = std::vector of length 3, capacity 3 = {{projectileClass = 0x234ba60, code = std::vector of length 66, capacity 66 = {4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 12 '\f', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 6 '\006', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 4 '\004', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 1 '\001', 0 '\000', 1 '\001', 10 '\n', -76 '\264', 0 '\000', 8 '\b', -48 '\320', 110 'n', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 0 '\000'}, count = 1, flags = 71}, {projectileClass = 0x234afe0, code = std::vector of length 219, capacity 219 = {4 '\004', -20 '\354', 81 'Q', 120 'x', 63 '?', 2 '\002', 92 '\\', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 1 '\001', -103 '\231', 0 '\000', 8 '\b', 32 ' ', 109 'm', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 64 '@', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 1 '\001', 72 'H', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 44 ',', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -96 '\240', 66 'B', 2 '\002', 48 '0', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 0 '\000', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 4 '\004', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 24 '\030', 1 '\001', 4 '\004', -51 '\315', -52 '\314', -52 '\314', -66 '\276', 2 '\002', 28 '\034', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 32 ' ', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 65 'A', 1 '\001', 104 'h', 1 '\001', 6 '\006', -51 '\315', -52 '\314', 76 'L', 61 '=', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 76 'L', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 64 '@', 2 '\002', 80 'P', 1 '\001', 6 '\006', -51 '\315', -52 '\314', 76 'L', 61 '=', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 63 '?', 2 '\002', 84 'T', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 64 '@', 2 '\002', 88 'X', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -64 '\300', 64 '@', 2 '\002', 36 '$', 1 '\001', 4 '\004', 0 '\000', 0 '\000', -128 '\200', 64 '@', 2 '\002', 40 '(', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 96 '`', 1 '\001', 4 '\004', 0 '\000'...}, count = 1, flags = 18}, {projectileClass = 0x234ba60, code = std::vector of length 48, capacity 48 = {7 '\a', 0 '\000', 0 '\000', -128 '\200', 63 '?', 1 '\001', 0 '\000', 1 '\001', 10 '\n', -76 '\264', 0 '\000', 8 '\b', -112 '\220', 116 't', -96 '\240', 10 '\n', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 9 '\t', 8 '\b', 1 '\001', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', 124 '|', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -128 '\200', 0 '\000', 4 '\004', 0 '\000', 0 '\000', 0 '\000', 0 '\000', 2 '\002', -124 '\204', 0 '\000', 0 '\000'}, count = 2, flags = 96}}
        groundFlash = @0xaa06d58: {flashSize = 0, flashAlpha = 0, circleGrowth = 0, circleAlpha = 0, ttl = 0, color = {static binder = {class_ = 0x2349060, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1a45220, name = 0x11ea4fb "float3", size = 12, constructor = 0xc23006 <float3::_ConstructInstance(void*)>, destructor = 0xc23032 <float3::_DestructInstance(void*)>, nextBinder = 0x1a451c0}, static memberRegistrator = 0x1a452e0, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, {{x = 0, y = 0, z = 0}, {r = 0, g = 0, b = 0}, {x1 = 0, y1 = 0, x2 = 0}, {s = 0, t = 0, p = 0}, {xstart = 0, ystart = 0, xend = 0}}}, flags = 0}
        groundExplosion = false
#2 0x0000000000a54a1b in CExpGenSpawner::Update (this=0x87eb370) at /home/buildbot/slave/full-linux/build/rts/Sim/Projectiles/ExpGenSpawner.cpp:34
No locals.
0000003 0x0000000000a7058a in CProjectileHandler::UpdateProjectileContainer (this=0x69c4d60, pc=..., synced=true) at /home/buildbot/slave/full-linux/build/rts/Sim/Projectiles/ProjectileHandler.cpp:225
        p = 0x87eb370
        pci =
        __PRETTY_FUNCTION__ = "void CProjectileHandler::UpdateProjectileContainer(ProjectileContainer&, bool)"
0000004 0x0000000000a708b9 in CProjectileHandler::Update (this=0x69c4d60) at /home/buildbot/slave/full-linux/build/rts/Sim/Projectiles/ProjectileHandler.cpp:246
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "ProjectileHandler::Update", starttime = 32581}, autoShowGraph = false}
        gfi =
0000005 0x000000000054608d in CGame::SimFrame (this=0x2627b10) at /home/buildbot/slave/full-linux/build/rts/Game/Game.cpp:1508
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "SimFrame", starttime = 32579}, autoShowGraph = false}
#6 0x00000000005c8f30 in CGame::ClientReadNet (this=0x2627b10) at /home/buildbot/slave/full-linux/build/rts/Game/NetCommands.cpp:387
        msgProcTimeSpent = 5
        dataLength = 1
        allowMsgProcessing = true
        inbuf = 0x7f744004ad10 "\002"
        packetCode = 2 '\002'
        packet = {px = 0x7f744004acf0, pn = {pi_ = 0x7f744004cb20}}
        msgProcStartTime = {_vptr.spring_time = 0x11df5c0, static binder = {class_ = 0x2349300, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1a430e0, name = 0x11df568 "spring_time", size = 16, constructor = 0xbe2c7a <spring_time::_ConstructInstance(void*)>, destructor = 0xbe2ca6 <spring_time::_DestructInstance(void*)>, nextBinder = 0x1a42660}, static memberRegistrator = 0x1a43160, x = 32574}
        simDrawRatio = 2.39253855
        __PRETTY_FUNCTION__ = "void CGame::ClientReadNet()"
        maxSimFPS = 372.968994
        minDrawFPS = 155.888397
        msgProcTimeLimit = 5.45261908
#7 0x0000000000542dae in CGame::Update (this=0x2627b10) at /home/buildbot/slave/full-linux/build/rts/Game/Game.cpp:900
        timeNow = {_vptr.spring_time = 0x11df5c0, static binder = {class_ = 0x2349300, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1a430e0, name = 0x11df568 "spring_time", size = 16, constructor = 0xbe2c7a <spring_time::_ConstructInstance(void*)>, destructor = 0xbe2ca6 <spring_time::_DestructInstance(void*)>, nextBinder = 0x1a42660}, static memberRegistrator = 0x1a43160, x = 32574}
        diffsecs = 0.0390000008
#8 0x0000000000c02254 in GML::UpdateSim (ac=0x2627b10) at /home/buildbot/slave/full-linux/build/rts/lib/gml/gml_base.h:43
No locals.
#9 0x0000000000bff288 in SpringApp::Update (this=0x7fffa9d6b1a0) at /home/buildbot/slave/full-linux/build/rts/System/SpringApp.cpp:1009
        ret = 1
0000010 0x0000000000bff444 in SpringApp::Run (this=0x7fffa9d6b1a0, argc=2, argv=0x7fffa9d6b358) at /home/buildbot/slave/full-linux/build/rts/System/SpringApp.cpp:1094
No locals.
#11 0x0000000000bdd81c in Run (argc=2, argv=0x7fffa9d6b358) at /home/buildbot/slave/full-linux/build/rts/System/Main.cpp:64
        app = {cmdline = 0x23487b0, binaryName = "/tmp/spring/tests/usr/local/bin/spring-headless"}
        ret = -1
        err = 0x10000ffff
0000012 0x0000000000bddcb6 in main (argc=2, argv=0x7fffa9d6b358) at /home/buildbot/slave/full-linux/build/rts/System/Main.cpp:149
Steps To Reproducevalidation test!
Additional Informationhttp://buildbot.springrts.com/builders/validationtests/builds/2101/steps/analyze%20core%20dumps/logs/stdio
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009530

abma (administrator)

not sure if just using SafeDivide() from Util.h. should be used to fix this sigfpe
+Notes

-Issue History
Date Modified Username Field Change
2012-12-24 02:02 abma New Issue
2012-12-24 02:29 abma Note Added: 0009530
2012-12-24 02:38 abma Status new => resolved
2012-12-24 02:38 abma Resolution open => fixed
2012-12-24 02:38 abma Assigned To => abma
2012-12-24 02:40 abma Changeset attached => spring develop aecfcd51
+Issue History