Skip to content

Stack overflow in debug mode #312

@Ketasaja

Description

@Ketasaja

Overflows on 1.0.0-rc.5 and 0.19.0 with stacker, with no errors in release mode on either.

function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end

And the same for:

function f()
	for k, v in t do
		if v then
			
		end
	end
end

If it's helpful context, this variant doesn't overflow on 1.0.0-rc.5, or 0.19.0 with stacker, but does overflow on 0.19.0 without stacker.

function f()
	local x = {}

	if x then
		x = {}
	end
end

Full code:

use full_moon;

fn main() {
    full_moon::parse("function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions