Skip to content

Assertion failure in mrb_gc_mark #3720

Description

@clayton-shopify

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions