--mimepart_4cbb0f2d8b7f3_ef68029a7e225ac
Content-Type: text/plain
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline

Bug #3957: instance_exec and instance_eval crash ruby when passed '&variable' which stores a 'method(:whatever).to_param'
http://redmine.ruby-lang.org/issues/show/3957

Author: Lori Holden
Status: Open, Priority: Normal
Category: core, Target version: 1.9.2
ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

# results in a crash:
def a_method; end
a = method(:a_method).to_proc
instance_exec &a

# however works:
def a_method; end
instance_exec &(method(:a_method).to_proc)


----------------------------------------
http://redmine.ruby-lang.org

--mimepart_4cbb0f2d8b7f3_ef68029a7e225ac
Content-Type: text/plain; name=backtrace.txt
Content-Transfer-Encoding: Base64
Content-Disposition: attachment; filename=backtrace.txt

cnVieS0xLjkuMi1wMCA+IGRlZiBhX21ldGhvZDsgZW5kCiA9PiBuaWwgCnJ1
YnktMS45LjItcDAgPiBhID0gbWV0aG9kKDphX21ldGhvZCkudG9fcHJvYwog
PT4gIzxQcm9jOjB4MDAwMDAxMDEwZTRiOTAgKGxhbWJkYSk+IApydWJ5LTEu
OS4yLXAwID4gaW5zdGFuY2VfZXhlYyAmYQooaXJiKTo2OiBbQlVHXSB2bV9n
ZXRfY3JlZjogdW5yZWFjaGFibGUKcnVieSAxLjkuMnAwICgyMDEwLTA4LTE4
IHJldmlzaW9uIDI5MDM2KSBbeDg2XzY0LWRhcndpbjEwLjQuMF0KCi0tIGNv
bnRyb2wgZnJhbWUgLS0tLS0tLS0tLQpjOjAwMjQgcDotLS0tIHM6MDA4NSBi
OjAwODUgbDowMDAwODQgZDowMDAwODQgQ0ZVTkMgIDppbnN0YW5jZV9leGVj
CmM6MDAyMyBwOjAwMTIgczowMDgyIGI6MDA4MiBsOjAwMWRjOCBkOjAwMDA4
MSBFVkFMICAgKGlyYik6NgpjOjAwMjIgcDotLS0tIHM6MDA4MCBiOjAwODAg
bDowMDAwNzkgZDowMDAwNzkgRklO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