View Issue Details

IDProjectCategoryView StatusLast Update
0002782Spring engineGeneralpublic2011-11-28 21:00
Reporterabma Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Fixed in Version84.0.1 
Summary0002782: SIGSEGV in SyncedFloat3.h:103
Descriptionvalidation test failed: http://buildbot.springrts.com/builders/validationtests/builds/537/steps/validation%20test_2/logs/stdio
Additional InformationProgram received signal SIGSEGV, Segmentation fault.
0x0000000000ae8a7a in SyncedFloat3::operator+ (this=0x485fbac, f=...) at /home/buildslave/full-linux/build/rts/System/Sync/SyncedFloat3.h:103
103 return float3(x+f.x, y+f.y, z+f.z);
#0 0x0000000000ae8a7a in SyncedFloat3::operator+ (this=0x485fbac, f=...) at /home/buildslave/full-linux/build/rts/System/Sync/SyncedFloat3.h:103
No locals.
#1 0x0000000000b75c7e in TestConeHelper (from=..., weaponDir=..., length=448.397034, spread=0, obj=0x485fab0) at /home/buildslave/full-linux/build/rts/Game/TraceRay.cpp:35
        objDir = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 1.54037184e-37, y = 0, z = -nan(0x7fb400)}
        closeLength = 4.59163468e-41
        closeVect = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 126.460632, y = -12.436697, z = 262.63974}
        r = -nan(0x7fd450)
#2 0x0000000000b7504f in TraceRay::TestCone (from=..., dir=..., length=448.397034, spread=0, allyteam=0, testFriendly=false, testNeutral=false, testFeatures=true, owner=0x8b34b40) at /home/buildslave/full-linux/build/rts/Game/TraceRay.cpp:426
        f = 0x485fab0
        features = std::list = {[0] = 0x485fab0, [1] = 0x4a7f5b0}
        featuresIt =
        quad = @0x251a9f8
        qi = 0x7fffffffb458
        quads = {120, 121, 105, 0, -1080309496, 1081539569, -1078288448, 1120146629, 147253936, 0, 0, 1120930787, -10736, 32767, 146946232, 0, -1080309496, 1081539569, -1078288448, 0, 1093293056, 1069907456, -1047794240, 32767, 1159123712, 1128322508, 1155936859, 0, 1094569249, -1072415503, -1048558652, 0, -10928, 32767, 1100444867, 1101045950, -10816, 32767, 12013214, 0, 1058488155, -1108590347, 15654656, 0, 1047316737, 0, 0, 1120930787, -10736, 32767, 146946232, 1155937090, 1128690434, 1159599571, -19072, 32767, -19056, 32767, 11105339, 0, 1127930845, 1155937090, 1159599571, 1156150406, 1127930845, 1159107913, -19008, 1095206784, -1053199792, -1050182912, -19008, 32767, -18992, 32767, 11105481, 0, 1159107913, 1095206784, -1050182912, -1053199792, -18704, 32767, 15654499, 0, 145237288, 0, -18816, 32767, -1050182912, -1053199792, 1095206784, 1095206784, -10192, 32767, -18848, 32767, -18704, 32767, 12017386, 0, -1050182912, -1053199792, 1095206784, 0, 148101104, 0, 1159167172, 1077936128, 1023442887, -1185827048, -1124332382, 1121246846, -10192, 32767, 145237288, 0, -18864, 32767, 11329167, 0, 1087349924, 105, 38206592, 0, -10560, 32767, -10576, 1155399680, 1077125052, -1053687447, 1101967091, 32767, -1050182912, 0, 1095206784, 0, -1050182912, -1053199792, 1095206784, 1129327316, 1159107913, 1127930845, 1156150406, 0, 1096550929, 0, -1075690704, 32767, 1091567616, 1092222976, 11438350, 0, 36218736, 0, -18720, 32767, -18704, 32767, 11329167, 0, 1055964835, 121, 36218736, 0, -10384, 32767, -10400, 32767, -10272, 32767, 12014221, 0, 1065216318, 0, -10104, 1155936768, 1128322304, 1159123713, 0, 1077936128, 1023442887, -1185827048, -1124332382, 1121246846, -10192, 32767, 145237288, 0, 121, -1060058122, -1053139424, -1082236528, 1159107913, 1127930845, 1156150406, 1064249168, -18432, 32767, -18464, 32767...}
        endQuad = 0x7fffffffb45c
0000003 0x00000000010630e3 in CMissileLauncher::TryTarget (this=0x8c8e7b0, pos=..., userTarget=false, unit=0x8b98c70) at /home/buildslave/full-linux/build/rts/Sim/Weapons/MissileLauncher.cpp:150
        length = 448.397034
        dir = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 0.901181638, y = 0.0233986787, z = -0.432809651}
0000004 0x000000000107170e in CWeapon::TryTargetHeading (this=0x8c8e7b0, heading=4484, pos=..., userTarget=false, unit=0x8b98c70) at /home/buildslave/full-linux/build/rts/Sim/Weapons/Weapon.cpp:1027
        tempfrontdir = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 0.973988712, y = 0, z = -0.226577371}
        temprightdir = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 0.226577371, y = -0, z = 0.973988712}
        tempHeadding = 18778
        val = 195
0000005 0x0000000001070f2e in CWeapon::TryTargetRotate (this=0x8c8e7b0, unit=0x8b98c70, userTarget=false) at /home/buildslave/full-linux/build/rts/Sim/Weapons/Weapon.cpp:995
        tempTargetPos = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 2464, y = 208.167297, z = 1776}
        appHeight = 181.292297
        weaponHeadding = 16384
        enemyHeadding = 20868
#6 0x0000000000fe26e3 in CMobileCAI::ExecuteAttack (this=0x8ad5e40, c=...) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/MobileCAI.cpp:770
        w = 0x8c8e7b0
        b2 = false
        b4 = false
        edgeFactor = 0
        b3 = false
        diff = {static binder = {class_ = 0x1c11b30, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1bd6bc0, name = 0x16319ef "float3", size = 12, constructor = 0x10ef226 <float3::_ConstructInstance(void*)>, destructor = 0x10ef252 <float3::_DestructInstance(void*)>, nextBinder = 0x1bd6c80}, static memberRegistrator = 0x1bd6c58, static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = -414.228027, y = -28.875, z = 197.182861}
        diffLength2d = 0
        __PRETTY_FUNCTION__ = "virtual void CMobileCAI::ExecuteAttack(Command&)"
#7 0x0000000000fd15c3 in CCommandAI::SlowUpdate (this=0x8ad5e40) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/CommandAI.cpp:1298
        c = @0x869a4c8
#8 0x0000000000fe0241 in CMobileCAI::Execute (this=0x8ad5e40) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/MobileCAI.cpp:430
        c = @0x869a4c8
#9 0x0000000000fe00f2 in CMobileCAI::SlowUpdate (this=0x8ad5e40) at /home/buildslave/full-linux/build/rts/Sim/Units/CommandAI/MobileCAI.cpp:413
        wantToLand = false
0000010 0x0000000001012dd0 in CUnit::SlowUpdate (this=0x8b34b40) at /home/buildslave/full-linux/build/rts/Sim/Units/Unit.cpp:934
No locals.
#11 0x000000000103a668 in CUnitHandler::Update (this=0x4bb2030) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitHandler.cpp:318
        unit = 0x8b34b40
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Unit::SlowUpdate", starttime = 43996}, autoShowGraph = false}
        n = 7
        __PRETTY_FUNCTION__ = "void CUnitHandler::Update()"
0000012 0x0000000000ac4125 in CGame::SimFrame (this=0x1e0e8a0) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:1428
        cputimer = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame", starttime = 43993}, autoShowGraph = true}
        forced = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame (Update)", starttime = 43993}, autoShowGraph = false}
0000013 0x0000000000b42f48 in CGame::ClientReadNet (this=0x1e0e8a0) at /home/buildslave/full-linux/build/rts/Game/NetCommands.cpp:362
        inbuf = 0x7fffec001190 "\002\""
        dataLength = 1
        packetCode = 2 '\002'
        packet = {px = 0x7fffec0031e0, pn = {pi_ = 0x7fffec002300}}
        procstarttime = 43965
        __PRETTY_FUNCTION__ = "void CGame::ClientReadNet()"
0000014 0x0000000000ac197f in CGame::Update (this=0x1e0e8a0) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:884
        timeNow = 43965
        difTime = 109
        dif = 0.109000005
#15 0x00000000010d2449 in SpringApp::UpdateSim (this=0x7fffffffeb60, ac=0x1e0e8a0) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:1000
        ret = false
#16 0x00000000010d24c7 in SpringApp::Update (this=0x7fffffffeb60) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:1069
        updateSim = true
        ret = 1
#17 0x00000000010d26e9 in SpringApp::Run (this=0x7fffffffeb60, argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:1191
No locals.
#18 0x00000000010af42a in MainFunc (argc=2, argv=0x7fffffffed38, ret=0x7fffffffec0c) at /home/buildslave/full-linux/build/rts/System/Main.cpp:51
        app = {cmdline = 0x1c0cc10, lastRequiredDraw = 22090, static ogc = 0x0, binaryName = "/tmp/spring/tests/usr/local/bin/spring-headless"}
#19 0x00000000010af6c0 in Run (argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/Main.cpp:62
        ret = -1
        err = 0x159ee05
0000020 0x00000000010af759 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.
Attached Files
20111128_194048_Altair_Crossing-V1_84.0.1-69-g10b5646 develop.sdf (Attachment missing)
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Relationships

has duplicate 0002787 closed (validationtest) SIGSEV in SyncedFloat3.h:103 
related to 0002781 resolvedKloot SIGSEGV in spring 84.0.1-51-gaefca19 HEAD (MT-Sim) 

Activities

abma

2011-11-27 05:48

administrator   ~0007723

looks like https://github.com/spring/spring/commit/af351907c53c84812e868526bdb02d73ef9ba11f introduced this bug (validation test crashes since this commit...)

Kloot

2011-11-27 12:12

developer   ~0007726

magic numbers really suck

abma

2011-11-28 17:16

administrator   ~0007740

seems to be not fixed: see 0002787

Kloot

2011-11-28 18:52

developer   ~0007741

can you retry with 10b5646899b71f4c1f51eb5fb4a9b7fb2bfc6481 ?

(if you still crash, please attach a demo)

abma

2011-11-28 19:49

administrator   ~0007742

see attached demofile.

seems to crash only with spring-headless...

Kloot

2011-11-28 20:27

developer   ~0007745

thanks, should be fixed as of 4fc8edafb15487651fc9793f57142d7f9814ad81

Issue History

Date Modified Username Field Change
2011-11-27 05:42 abma New Issue
2011-11-27 05:46 abma Summary SIGFPE in SyncedFloat3.h:103 => SIGSEGV in SyncedFloat3.h:103
2011-11-27 05:48 abma Note Added: 0007723
2011-11-27 05:49 abma Relationship added related to 0002781
2011-11-27 12:12 Kloot Note Added: 0007726
2011-11-27 12:12 Kloot Status new => resolved
2011-11-27 12:12 Kloot Fixed in Version => 84.0.1
2011-11-27 12:12 Kloot Resolution open => fixed
2011-11-27 12:12 Kloot Assigned To => Kloot
2011-11-28 17:14 abma Relationship added related to 0002787
2011-11-28 17:15 abma Relationship replaced has duplicate 0002787
2011-11-28 17:16 abma Note Added: 0007740
2011-11-28 17:16 abma Status resolved => assigned
2011-11-28 17:26 abma Assigned To Kloot =>
2011-11-28 17:27 abma Status assigned => new
2011-11-28 18:52 Kloot Note Added: 0007741
2011-11-28 18:52 Kloot Status new => feedback
2011-11-28 19:43 abma File Added: 20111128_194048_Altair_Crossing-V1_84.0.1-69-g10b5646 develop.sdf
2011-11-28 19:49 abma Note Added: 0007742
2011-11-28 19:56 abma File Added: infolog.txt
2011-11-28 20:27 Kloot Note Added: 0007745
2011-11-28 21:00 Kloot Status feedback => resolved
2011-11-28 21:00 Kloot Assigned To => Kloot