New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure in mrb_gc_mark #3720

Closed
clayton-shopify opened this Issue Jun 21, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@clayton-shopify
Contributor

clayton-shopify commented Jun 21, 2017

The following input demonstrates a crash, when supplied to mirb:

def a
x
ensure
e
end

k = Numeric.new  

def z;e;end

def e
h {}
end

def h
a
ensure
x
end

Symbol.all_symbols  []

t = Fiber.new do
u = k.to_s 
end


z.instance_exec  {}
z.instance_exec  {}


t.resume

z[0]

GC.start

Result:

Assertion failed: ((obj)->tt != MRB_TT_FREE), function mrb_gc_mark, file /Users/clayton/git/mruby/src/gc.c, line 714.
Abort trap: 6

This issue was reported by https://hackerone.com/ahihi

@matz matz closed this in b200c74 Jun 21, 2017

@matz matz referenced this issue Jul 4, 2017

Closed

1.3.0 Changes #3140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment