C stack overflow

[lua]
local Spawns = {
{ pos = Vector(-1728.682861, -1984.805786, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-1543.835449, -1992.070679, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-1475.661255, -1976.558838, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-1597.171143, -1140.046753, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-1703.600586, -1089.924072, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-2147.969971, -1090.700439, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-2317.720215, -1109.180664, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
{ pos = Vector(-2366.059570, -1368.396484, -131.968750), ang = Angle(0.000, 180.000, 0.000)},
}

function GM:PlayerSpawn(pl)
for k, v in pairs(Spawns) do
pl:SetPos(v.pos)
pl:SetAngles(v.ang)
pl:Spawn()
end
end
[/lua]



15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:06: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:23 ULib/server/hook.lua:111: C stack overflow
15:38:23 Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:23 C stack overflow
15:38:23 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:24 Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:24 C stack overflow
15:38:24 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:24 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:26 Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:26 C stack overflow
15:38:26 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:26 ULib/server/hook.lua:111: C stack overflow
15:38:27 Lua Error: C stack overflow
15:38:27 C stack overflow
15:38:27 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:27 C stack overflow
15:38:27 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:27 ULib/server/hook.lua:111: C stack overflow
15:38:27 Lua Error: C stack overflow
15:38:27 C stack overflow
15:38:27 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: C stack overflow
15:38:27 C stack overflow
15:38:27 Lua Error: L 05/08/2010 - 15:38:07: Lua Error: ULib/server/hook.lua:111: C stack overflow
15:38:27 ULib/server/hook.lua:111: C stack overflow
15:38:27 Lua Error: C stack overflow
15:38:27 C stack overflow
15:38:27 Lua Error: 
15:40:21 HLSW NOTE: Disconnected


Example of some of the spam.

You are calling Player.Spawn in the gamemode’s spawn function.

[editline]10:21PM[/editline]

Not a good idea.

[editline]10:23PM[/editline]

You are causing an infinite loop.

You also spawn the player in a loop. That’s not very good.

table.Random

and avoid infinite loops next time.