Project

General

Profile

Backport #8266

Backport r40216 (fiddle's mprotect)

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

Status:
Closed
Priority:
Normal
[ruby-dev:47262]

Description

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

Associated revisions

Revision aa69372c
Added by nagachika (Tomoyuki Chikanaga) over 6 years 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

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

Revision 40290
Added by nagachika (Tomoyuki Chikanaga) over 6 years 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 nagachika (Tomoyuki Chikanaga) over 6 years ago

  • Status changed from Open to Assigned
  • Assignee set to nagachika (Tomoyuki Chikanaga)

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

#2

Updated by nagachika (Tomoyuki Chikanaga) over 6 years 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