2019-10-23 13:16 EDT


View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002361FSSCPmodelspublic2010-12-27 03:05
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version3.6.13 
Target VersionFixed in Version3.6.13 
Summary0002361: Out of range values of model_instance_num caught by Assert() in model_get_instance()
DescriptionFrom Lua originated calls to model_get_instance, the value of model_instance_num can be a large, out of range value.

Occurs with the new go_swift code.
Additional Information(gdb) bt
#0 0x98099176 in __kill ()
0000001 0x98099168 in kill$UNIX2003 ()
0000002 0x9812b89d in raise ()
0000003 0x981419bc in abort ()
0000004 0x000288d0 in WinAssert (text=0x50320c "model_instance_num < Polygon_model_instances.size()", filename=0x502814 "/Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/model/modelread.cpp", line=2840) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/windows_stub/stubs.cpp:95
0000005 0x0024abb2 in model_get_instance (model_instance_num=785251988) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/model/modelread.cpp:2840
0000006 0x002646b0 in model_collide (mc_info=0xbfffe028) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/model/modelcollide.cpp:836
0000007 0x0045af46 in l_Object_checkRayCollision_f (L=0x19404a70) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/parse/lua.cpp:4284
0000008 0x004a2be9 in luaD_precall (L=0x19404a70, func=0x2ecdfe58, nresults=1) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/ldo.c:319
0000009 0x004b898b in luaV_execute (L=0x19404a70, nexeccalls=5) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/lvm.c:590
0000010 0x004a2e5f in luaD_call (L=0x19404a70, func=0x2ecdfc9c, nResults=0) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/ldo.c:377
#11 0x00498bb3 in f_call (L=0x19404a70, ud=0xbfffe5dc) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/lapi.c:800
0000012 0x004a20b6 in luaD_rawrunprotected (L=0x19404a70, f=0x498b89 <f_call>, ud=0xbfffe5dc) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/ldo.c:116
0000013 0x004a31f2 in luaD_pcall (L=0x19404a70, func=0x498b89 <f_call>, u=0xbfffe5dc, old_top=156, ef=144) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/ldo.c:463
0000014 0x00498c50 in lua_pcall (L=0x19404a70, nargs=0, nresults=0, errfunc=12) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../lua/lapi.c:821
0000015 0x0045d305 in script_state::RunBytecodeSub (this=0x14f8460, in_lang=1, in_idx=5, format=0 '\000', data=0x0) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/parse/scripting.cpp:761
0000016 0x0045d513 in script_state::RunBytecode (this=0x14f8460, hd=@0x19433864, format=0 '\000', data=0x0) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/parse/scripting.cpp:802
0000017 0x0045f111 in ConditionedHook::Run (this=0x239e458, sys=0x14f8User460, action=3, format=0 '\000', data=0x0) at /Users/User/Documents/Coding/fs2open/trunk/fs2_open/projects/Xcode/../../code/parse/scripting.cpp:406
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0012576

Echelon9 (developer)

In the particular case:

model_instance_num=785251988, at the time when Polygon_model_instances.size() = 25

~0012579

Echelon9 (developer)

Resolved in r6893.
+Notes

-Issue History
Date Modified Username Field Change
2010-12-27 01:30 Echelon9 New Issue
2010-12-27 01:30 Echelon9 Status new => assigned
2010-12-27 01:30 Echelon9 Assigned To => Echelon9
2010-12-27 01:31 Echelon9 Note Added: 0012576
2010-12-27 01:32 Echelon9 Status assigned => acknowledged
2010-12-27 03:05 Echelon9 Note Added: 0012579
2010-12-27 03:05 Echelon9 Status acknowledged => resolved
2010-12-27 03:05 Echelon9 Fixed in Version => 3.6.13
2010-12-27 03:05 Echelon9 Resolution open => fixed
+Issue History