2025-07-20 13:11 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002653Spring engineAIpublic2012-09-18 18:23
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0002653: SIGFPE in AAI in AAIMap.cpp:2484
DescriptionProgram received signal SIGFPE, Arithmetic exception.
#0 0x00007ffff0c21954 in fastmath::isqrt2_nosse (x=1.98180286e+19) at /home/buildslave/full-linux/build/rts/System/FastMath.h:113
        xh = 0
        i = 1597463174
#1 0x00007ffff0c219a1 in fastmath::apxsqrt2 (x=0) at /home/buildslave/full-linux/build/rts/System/FastMath.h:149
No locals.
#2 0x00007ffff0c2008e in AAIMap::AddDefence (this=0x1dad2d0, pos=0x7fffffffd610, defence=94) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIMap.cpp:2484
        y = 59
        range = 13
        power = 5.04134893
        xPos = 69
        file = 0x12400000118
        xRange = 280
        yStart = 59
        my_pos = {static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 4.02172659e-43, y = 4.09179152e-43, z = 3.9236357e-43}
        cell = 1
        xStart = 103481712
        yEnd = 85
        air_power = 5.04134893
        submarine_power = 5.04134893
        yPos = 72
        xEnd = 32513
        filename_sizeMax = 500
        filename = "I/Skirmish/AAI/0.9/AAIDebug.txt\000\000\000\000\000\000\000\000\000\360\323\377\377\377\177\000\000\240\323\377\377\377\177\000\000%\002\250", '\000' <repeats 13 times>, "\001\000\000\000\000\000\000\000\060\000\302\001\000\000\000\000\300\323\377\377\377\177\000\000\320\323\377\377\377\177\000\000\247\002\250\000\000\000\000\000\264\067HC\t\000\274C\360\323\377\377\377\177\000\000\060\000\302\001\000\000\000\000\001\000\000\000\000\000\000\000\000\324\377\377\377\177\000\000\302%\250", '\000' <repeats 13 times>, "p\376\301\001\000\000\000\000\060\000\302\001", '\000' <repeats 12 times>, "0\324\377\377\377\177\000\000\250\021\250", '\000' <repeats 13 times>, "p=\277\001\000\000\000\000\t\000\274C\264\067HC\260\033\000\a\000\000\000\000\320\324\377\377\377\177\000\000K\321\251\000\000\000\000\000\000\000\000\000\377\024\346D\t\000\274C\264\067HC\t"...
0000003 0x00007ffff0bfefb0 in AAIExecute::InitBuildingAt (this=0x247c540, def=0x62b0170, pos=0x7fffffffd610, water=false) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIExecute.cpp:175
        x = 2
        y = 2
0000004 0x00007ffff0bc3785 in AAIConstructor::GiveConstructionOrder (this=0x756ee00, id_building=94, pos=..., water=false) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIConstructor.cpp:337
        def = 0x62b0170
0000005 0x00007ffff0c04954 in AAIExecute::BuildStationaryDefenceVS (this=0x247c540, category=GROUND_ASSAULT, dest=0x724aae0) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIExecute.cpp:1576
        min_dist = 50.9051056
        sea_eff = 0
        building = 94
        terrain = 5
        urgency = 10.25
        power = 0.5
        eff = 0.42222222520245445
        range = 0.25333333843284184
        gr_eff = 2
        hover_eff = 0
        cost = 0.86975681781768799
        checkGround = true
        builder = 0x756ee00
        air_eff = 0
        submarine_eff = 0
        checkWater = false
        pos = {static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 2224, y = 0, z = 2320}
#6 0x00007ffff0c03f1f in AAIExecute::BuildDefences (this=0x247c540) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIExecute.cpp:1435
        status = 11
#7 0x00007ffff0c09f39 in AAIExecute::CheckConstruction (this=0x247c540) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIExecute.cpp:2802
        category = STATIONARY_DEF
        highest_urgency = 2.15362692
        construction_started = false
#8 0x00007ffff0c2de8f in AAI::UnitIdle (this=0x61946a0, unit=22389) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAI.cpp:688
        myScopedTimerFromMakro = {part = 0x7ffff0c5be13 "UnitIdle", profiler = 0x74aca70, startTime = 1316110678456}
#9 0x00007ffff0c390ea in springLegacyAI::CAIUnitIdleEvent::Run (this=0x7001bb0, ai=..., globalAICallback=0x62c86c0) at /home/buildslave/full-linux/build/AI/Wrappers/LegacyCpp/Event/AIUnitIdleEvent.h:17
No locals.
0000010 0x00007ffff0c3827a in springLegacyAI::CAIAI::handleEvent (this=0x62cb0f0, topic=7, data=0x7fffffffd9f0) at /home/buildslave/full-linux/build/AI/Wrappers/LegacyCpp/AIAI.cpp:161
        e = 0x7001bb0
        ret = -1
#11 0x00007ffff0bd8816 in handleEvent (skirmishAIId=0, topic=7, data=0x7fffffffd9f0) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AIExport.cpp:97
No locals.
0000012 0x0000000001155f95 in CSkirmishAILibrary::HandleEvent (this=0x6b0a820, skirmishAIId=0, topic=7, data=0x7fffffffd9f0) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAILibrary.cpp:95
        ret = 0
0000013 0x0000000001148e37 in CSkirmishAI::HandleEvent (this=0x248de70, topic=7, data=0x7fffffffd9f0) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAI.cpp:57
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "AI t:0 id:0 AAI 0.9", starttime = 10903}, autoShowGraph = false}
0000014 0x000000000115a5ae in CSkirmishAIWrapper::UnitIdle (this=0x248ddd0, unitId=22389) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAIWrapper.cpp:286
        evtData = {unit = 22389}
#15 0x00000000011234e6 in CEngineOutHandler::UnitIdle (this=0x5180f70, unit=...) at /home/buildslave/full-linux/build/rts/ExternalAI/EngineOutHandler.cpp:262
        ai = 0 '\000'
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "AI Total", starttime = 10903}, autoShowGraph = false}
        teamId = 0
        unitId = 22389
#16 0x0000000000f7ddee in CCommandAI::FinishCommand (this=0x216eab0) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/CommandAI.cpp:1393
        __PRETTY_FUNCTION__ = "virtual void CCommandAI::FinishCommand()"
        cmdID = -145
        cmdTag = 7
        dontrepeat = false
        cmd = {static binder = {class_ = 0x1ba9630, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1b65d40, name = 0x15b51bf "Command", size = 56, constructor = 0xf76772 <Command::_ConstructInstance(void*)>, destructor = 0xf767ca <Command::_DestructInstance(void*)>, nextBinder = 0x1b65ea0}, static memberRegistrator = 0x1b65e10, aiCommandId = -1, options = 0 '\000', params = {<std::vector<float, std::allocator<float> >> = std::vector of length 3, capacity 3 = {424, 0, 1768}, static binder = {class_ = 0x1baa6d0, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1b6eca0, name = 0x15cd749 "safe_vector<float>", size = 32, constructor = 0x10759de <safe_vector<float>::_ConstructInstance(void*)>, destructor = 0x1075a36 <safe_vector<float>::_DestructInstance(void*)>, nextBinder = 0x1b6ffa0}, static memberRegistrator = 0x0, showError = true}, tag = 7, timeOut = 2147483647, id = -145}
#17 0x0000000000f90272 in CMobileCAI::FinishCommand (this=0x216eab0) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/MobileCAI.cpp:1001
No locals.
#18 0x0000000000f6f1a3 in CBuilderCAI::FinishCommand (this=0x216eab0) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/BuilderCAI.cpp:520
No locals.
#19 0x0000000000f6e511 in CBuilderCAI::SlowUpdate (this=0x216eab0) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/BuilderCAI.cpp:387
        ud = 0x46e8350
        radius = 53.9459877
        builder = 0x706cfc0
        c = @0x2221670
        boi = {first = -145, second = "armsolar"}
0000020 0x0000000000fbe530 in CUnit::SlowUpdate (this=0x706cfc0) at /home/buildslave/full-linux/build/rts/Sim/Units/Unit.cpp:924
No locals.
#21 0x0000000000ff4816 in CBuilder::SlowUpdate (this=0x706cfc0) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitTypes/Builder.cpp:394
No locals.
#22 0x0000000000fe5c50 in CUnitHandler::Update (this=0x50f1790) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitHandler.cpp:320
        unit = 0x706cfc0
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Unit::SlowUpdate", starttime = 10903}, autoShowGraph = false}
        n = 1
        __PRETTY_FUNCTION__ = "void CUnitHandler::Update()"
#23 0x0000000000a7a631 in CGame::SimFrame (this=0x1da0ca0) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:1434
        cputimer = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame", starttime = 10900}, autoShowGraph = true}
        forced = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame (Update)", starttime = 10901}, autoShowGraph = false}
0000024 0x0000000000af8c88 in CGame::ClientReadNet (this=0x1da0ca0) at /home/buildslave/full-linux/build/rts/Game/NetCommands.cpp:362
        inbuf = 0x7fffec003870 "\002\071"
        dataLength = 1
        packetCode = 2 '\002'
        packet = {px = 0x7fffec002fd0, pn = {pi_ = 0x7fffec003990}}
        procstarttime = 10900
        __PRETTY_FUNCTION__ = "void CGame::ClientReadNet()"
#25 0x0000000000a77e8b in CGame::Update (this=0x1da0ca0) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:889
        timeNow = 10900
        difTime = 1
        dif = 0.00100000005
0000026 0x000000000107ae65 in SpringApp::UpdateSim (this=0x7fffffffeb70, ac=0x1da0ca0) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:982
        ret = false
0000027 0x000000000107aed9 in SpringApp::Update (this=0x7fffffffeb70) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:1060
        ret = 1
#28 0x000000000107b0db in SpringApp::Run (this=0x7fffffffeb70, argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:1164
No locals.
0000029 0x00000000010599c7 in MainFunc (argc=2, argv=0x7fffffffed38, ret=0x7fffffffec0c) at /home/buildslave/full-linux/build/rts/System/Main.cpp:51
        app = {cmdline = 0x1ba59c0, lastRequiredDraw = 3384, static ogc = 0x0}
#30 0x0000000001059c5a in Run (argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/Main.cpp:62
        ret = -1
        err = 0x1542bb5
#31 0x0000000001059cf3 in main (argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/Main.cpp:92
No locals.
A debugging session is active.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003275resolvedabma AAI crash in AAIMap.cpp:1128 with two AAI's / one is deinitialized. 
+Relationships

-Notes

~0007379

abma (administrator)

Last edited: 2011-09-16 11:50

fixed two by: https://github.com/spring/spring/commit/a0aa259b6f5dc43b1a405bc9794f5c38f7b9d72d

~0007380

abma (administrator)

Last edited: 2011-09-16 11:50

an other one:
http://springrts.com:7778/builders/validationtests/builds/220/steps/validationtests_3/logs/stdio


http://pastebin.com/PjqvE9zi

~0009213

abma (administrator)

p
+Notes

-Issue History
Date Modified Username Field Change
2011-09-15 20:26 abma New Issue
2011-09-16 11:48 abma Note Added: 0007379
2011-09-16 11:48 abma Status new => resolved
2011-09-16 11:48 abma Resolution open => fixed
2011-09-16 11:48 abma Assigned To => abma
2011-09-16 11:50 abma Note Added: 0007380
2011-09-16 11:50 abma Assigned To abma =>
2011-09-16 11:50 abma Status resolved => new
2011-09-16 11:50 abma Note Edited: 0007380
2011-09-16 11:50 abma Note Edited: 0007379
2012-07-07 17:55 abma Summary SIGFPE in AAI => SIGFPE in AAI in AAIMap.cpp:2484
2012-07-07 17:55 abma Assigned To => abma
2012-07-07 17:55 abma Status new => assigned
2012-07-24 03:40 abma Assigned To abma =>
2012-07-24 03:40 abma Status assigned => new
2012-09-12 02:54 abma Relationship added related to 0003275
2012-09-18 18:23 abma Note Added: 0009213
2012-09-18 18:23 abma Status new => resolved
2012-09-18 18:23 abma Assigned To => abma
+Issue History