Project

General

Profile

Actions

Bug #2493

closed

double free bug

Added by barryboes (Barry Boes) over 14 years ago. Updated over 4 years ago.

Status:
Closed
ruby -v:
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-freebsd8.0]
[ruby-core:27215]

Description

=begin
mixing threads and forks results in double free crashes. Unfortunately I haven't been able to duplicate with less than 500K lines of code.

The original allocation happens here :
rb_thread_start_0
blk_copy_prev
frame_dup

I've attached a patch which fixes the problem for me, but I'm not familiar enough with
the undocumented ruby internals to be sure that it won't create a memory leak by not freeing
some things that should be. This patch needs expert review before accepting.

Thanks,
Barry
=end


Files

rubygc.patch (1.48 KB) rubygc.patch barryboes (Barry Boes), 12/19/2009 01:24 AM
Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)

=begin

=end

Actions #2

Updated by rogerdpack (Roger Pack) over 14 years ago

=begin
backtrace available?

=end

Actions #3

Updated by shyouhei (Shyouhei Urabe) over 13 years ago

=begin
Ping nobu, is this fixed?
=end

Actions #4

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0