Project

General

Profile

Backport #7896

Can't test rb_iter_break with extensions

Added by naruse (Yui NARUSE) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:52607]

Description

If you test rb_iter_break() with some extension library like trunk's ext/-test-/iter/break.c, it will cause SEGV on 1.9.3.
It won't happen on 2.0 because r34369 is accidentally fix it with below patch.

I noticed this because RubySpec added a test for rb_spec_iter (4db31b04954118e66ac1d6353ebf4106cb2b419b) and hit this.

% svn di

Index: vm.c

--- vm.c (revision 39346)
+++ vm.c (working copy)
@@ -1370,6 +1370,7 @@
*th->cfp->sp++ = (GET_THROWOBJ_VAL(err));
#endif
}

  • th->state = 0; th->errinfo = Qnil; goto vm_loop_start; }

Associated revisions

Revision e525bcd1
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 39359
Added by naruse (Yui NARUSE) over 6 years ago

Add test for [Backport #7896] [ruby-core:52607]

Revision 857a2cee
Added by usa (Usaku NAKAMURA) over 6 years ago

  • vm.c (vm_exec): get rid of a SEGV when calling rb_iter_break() from some extention libraries. [Backport #7896] [ruby-core:52607]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 39381
Added by usa (Usaku NAKAMURA) over 6 years ago

  • vm.c (vm_exec): get rid of a SEGV when calling rb_iter_break() from some extention libraries. [Backport #7896] [ruby-core:52607]

Revision e2e5d3fd
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 39359:

    Add test for [Backport #7896] [ruby-core:52607]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by usa (Usaku NAKAMURA) over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39381.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • vm.c (vm_exec): get rid of a SEGV when calling rb_iter_break() from some extention libraries. [Backport #7896] [ruby-core:52607]

Also available in: Atom PDF