Backport #8266

Backport r40216 (fiddle's mprotect)

Added by Yui NARUSE about 1 year ago. Updated about 1 year ago.

[ruby-dev:47262]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

Description

r40216 を backport お願いします。
とりあえず segv はしなくなります。

Associated revisions

Revision 40290
Added by Tomoyuki Chikanaga about 1 year ago

merge revision(s) 40216: [Backport #8266]

* ext/fiddle/closure.c (initialize): check mprotect's return value.
  If mprotect is failed because of PaX or something, its function call
  will cause SEGV.
  http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130401T210301Z.diff.html.gz

History

#1 Updated by Tomoyuki Chikanaga about 1 year ago

  • Status changed from Open to Assigned
  • Assignee set to Tomoyuki Chikanaga

ありがとうございます。とりあえず rubyci で SEGV って出ると精神衛生上よくないので先んじて入れます。

#2 Updated by Tomoyuki Chikanaga about 1 year ago

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

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


merge revision(s) 40216: [Backport #8266]

* ext/fiddle/closure.c (initialize): check mprotect's return value.
  If mprotect is failed because of PaX or something, its function call
  will cause SEGV.
  http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130401T210301Z.diff.html.gz

Also available in: Atom PDF