z3jiang / mcvm

A fork of the Sable/mcvm to add in online, low overhead hotspot profiler
Other
2 stars 0 forks source link

random segfault when function param defined but not passed #2

Open z3jiang opened 11 years ago

z3jiang commented 11 years ago

for example

function test()
helperfunc();
end
function helperfunc(val)
if val > 0
end
end

causes core dump, and the stack shows very weird locations

z3jiang commented 11 years ago

related to commit fed8cc926ea5f3cb0bf775c9e404dccfd211578b which checks for this condition and throws meaningful error instead of let it segfault

z3jiang commented 11 years ago

related to commit bf132653618b9e952fa5a16cfd035c990140d70b