[#35027] [Ruby 1.9-Bug#4352][Open] [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s) — "James M. Lawrence" <redmine@...>

Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)

16 messages 2011/02/01

[#35114] [Ruby 1.9-Bug#4373][Open] http.rb:677: [BUG] Segmentation fault — Christian Fazzini <redmine@...>

Bug #4373: http.rb:677: [BUG] Segmentation fault

59 messages 2011/02/06

[#35171] [Ruby 1.9-Bug#4386][Open] encoding: directive does not affect regex expressions — mathew murphy <redmine@...>

Bug #4386: encoding: directive does not affect regex expressions

9 messages 2011/02/09

[#35237] [Ruby 1.9-Bug#4400][Open] nested at_exit hooks run in strange order — Suraj Kurapati <redmine@...>

Bug #4400: nested at_exit hooks run in strange order

12 messages 2011/02/15

[ruby-core:35192] [Ruby 1.9-Bug#4389][Open] "pointer being freed was not allocated" error after setting instance variable in metaclass for Thread.current

From: Delano Mandelbaum <redmine@...>
Date: 2011-02-11 08:49:32 UTC
List: ruby-core #35192
Bug #4389: "pointer being freed was not allocated" error after setting instance variable in metaclass for Thread.current
http://redmine.ruby-lang.org/issues/show/4389

Author: Delano Mandelbaum
Status: Open, Priority: Normal
Target version: 1.9.2
ruby -v: ruby 1.9.2p136 (2010-12-25) [x86_64-darwin10.6.0] 

To recreate:

  class Thread
    def metaclass
      class << self; self; end; 
    end
  end
  Thread.current.metaclass.instance_variable_set("@data", :data)
  exit

Result:
ruby(28425,0x7fff70bc9ca0) malloc: *** error for object 0x100400000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Ruby 1.8.7, 1.9.1 are not affected.

Reproduced on:
Darwin hostname 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
Linux hostname 2.6.32.16-linode28 #1 SMP Sun Jul 25 21:32:42 UTC 2010 i686 GNU/Linux


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

In This Thread

Prev Next