[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: okay, threading & sandbox r70 -- the latest patch

From: Yukihiro Matsumoto <matz@...>
Date: 2006-09-08 05:22:48 UTC
List: ruby-core #8808
Hi,

In message "Re: okay, threading & sandbox r70 -- the latest patch"
    on Tue, 5 Sep 2006 15:41:30 +0900, why the lucky stiff <ruby-core@whytheluckystiff.net> writes:

|We have previously talked about getting the sandbox to obey thread switching on
|this list and I have worked up a patch.
|
|Here is how the patch works:
| * three members are added to rb_thread_t:
|   * sandbox_save, a callback VALUE(*)(rb_thread_t *), which is called at the
|     end of rb_thread_save_context.
|   * sandbox_restore, a callback VALUE(*)(rb_thread_t *), which is called at
|     the end of rb_restore_context.
|   * sandbox, a VALUE for storing the thread's sandbox or, if none, Qnil.
| * curr_thread and main_thread are exposed, to allow assignment to the above.
|
|If any of you would like to try it with Ruby 1.8.5 instead, that patch is
|available in trunk at patch/ruby-1.8.5-sandbox_needs.patch.

Commit it both HEAD and 1.8, please.

							matz.

In This Thread