-
Notifications
You must be signed in to change notification settings - Fork 785
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
Will SEGV on Kernel#block_given? #3593
Comments
I found it from ruby/spec/core/kernel/block_given_spec.rb with And I could be confirmed But this short code didn't reproduce. module BlockGiven
class << self
define_method(:defined_block) do
block_given?
end
end
end
BlockGiven.defined_block{} |
Seems to be caused another problem. mrb_f_block_given_p_m kernel.c:173
|
Without reproducing info, it's quite difficult to fix the issue. ;-< |
matz
added a commit
that referenced
this issue
Apr 6, 2017
@matz You are right... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry no repro code.
But I found a possibility to SEGV point.
mruby/src/kernel.c
Line 160 in bd7bf26
The
e->cioff
will be-1
when unshared env.I don't now how to repro and what return value if unshared env.
The text was updated successfully, but these errors were encountered: