2025-07-21 18:16 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002942Spring engineGeneralpublic2012-11-11 23:06
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusresolvedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0002942: (headless) Conditional jump or move depends on uninitialised value, Camera.cpp:250
Descriptionvalgrind entry

==2574== Conditional jump or move depends on uninitialised value(s)
==2574== at 0xA2CAD2: luaV_execute(lua_State*, int) (lvm.cpp:577)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== by 0xA19AD7: luaB_pcall(lua_State*) (lbaselib.cpp:377)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== Uninitialised value was created by a stack allocation
==2574== at 0x49CB50: CCamera::CalcWindowCoordinates(float3 const&) const (Camera.cpp:250)
==2574==
==2574== Conditional jump or move depends on uninitialised value(s)
==2574== at 0xA2CCA8: luaV_execute(lua_State*, int) (lvm.cpp:585)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== by 0xA19AD7: luaB_pcall(lua_State*) (lbaselib.cpp:377)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== Uninitialised value was created by a stack allocation
==2574== at 0x49CB50: CCamera::CalcWindowCoordinates(float3 const&) const (Camera.cpp:250)
==2574==
==2574== Conditional jump or move depends on uninitialised value(s)
==2574== at 0xA18CCF: luaL_checknumber_noassert(lua_State*, int) (lauxlib.cpp:198)
==2574== by 0xA21F9D: math_abs(lua_State*) (lmathlib.cpp:27)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== by 0xA19AD7: luaB_pcall(lua_State*) (lbaselib.cpp:377)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== Uninitialised value was created by a stack allocation
==2574== at 0x49CB50: CCamera::CalcWindowCoordinates(float3 const&) const (Camera.cpp:250)
==2574==
==2574== Conditional jump or move depends on uninitialised value(s)
==2574== at 0xA18CE0: luaL_checknumber_noassert(lua_State*, int) (lauxlib.cpp:198)
==2574== by 0xA21F9D: math_abs(lua_State*) (lmathlib.cpp:27)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== by 0xA1D71D: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:116)
==2574== by 0xA1E571: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:463)
==2574== by 0xA17D80: lua_pcall(lua_State*, int, int, int) (lapi.cpp:833)
==2574== by 0xA19AD7: luaB_pcall(lua_State*) (lbaselib.cpp:377)
==2574== by 0xA1E18F: luaD_precall(lua_State*, lua_TValue*, int) (ldo.cpp:319)
==2574== by 0xA2C7CF: luaV_execute(lua_State*, int) (lvm.cpp:612)
==2574== by 0xA1E3BC: luaD_call(lua_State*, lua_TValue*, int) (ldo.cpp:377)
==2574== Uninitialised value was created by a stack allocation
==2574== at 0x49CB50: CCamera::CalcWindowCoordinates(float3 const&) const (Camera.cpp:250)
==2574==
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
child of 0002940closedabma valgrind errors: Invalid read of size 8 (zero-k) (found because game desynced) 
+Relationships

-Notes

~0008266

hoijui (reporter)

https://github.com/spring/spring/blob/19f7937c9392263a3fa277e032fc81e54f7ce027/rts/Game/Camera.cpp#L250

tip: reports like this will get unusable quite fast as soon as there is change in files, if not way to find the corresponding git revision is given

~0009348

abma (administrator)

new valgrind run needed... (imo this one is to old, maybe its already fixed)
+Notes

-Issue History
Date Modified Username Field Change
2012-02-03 20:43 abma New Issue
2012-02-03 20:43 abma Relationship added child of 0002940
2012-02-05 19:58 hoijui Note Added: 0008266
2012-11-11 23:06 abma Note Added: 0009348
2012-11-11 23:06 abma Status new => resolved
2012-11-11 23:06 abma Resolution open => unable to reproduce
2012-11-11 23:06 abma Assigned To => abma
+Issue History