Skip to content
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
Closed

Assertion failure in mrb_gc_mark #3720

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

Comments

@clayton-shopify
Copy link
Contributor

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 as completed in b200c74 Jun 21, 2017
@matz matz mentioned this issue Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant