[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61443] [ruby-trunk - Bug #9628] [Open] Simple and isolated segfault in 2.1.0 and 2.1.1 on Mac OS X 10.9.2 (via rbenv)

From: tom@...
Date: 2014-03-12 22:52:32 UTC
List: ruby-core #61443
Issue #9628 has been reported by Tom Mornini.

----------------------------------------
Bug #9628: Simple and isolated segfault in 2.1.0 and 2.1.1 on Mac OS X 10.9.2 (via rbenv)
https://bugs.ruby-lang.org/issues/9628

* Author: Tom Mornini
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] and ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Example code and output for 2.0.0-p451, 2.1.0 and 2.1.1:

  https://gist.github.com/tmornini/9518056

Code:

#!/usr/bin/env ruby

module Subledger
  class Error < StandardError
    def to_s
      "#{message}, HTTP status #{status_code}"
    end
  end

  class BadRequest                   < Error
    def status_code; 400; end
  end

  fail BadRequest, 'explanation'
end




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

In This Thread

Prev Next