ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [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)
       [not found] <redmine.issue-9628.20140312225232@ruby-lang.org>
@ 2014-03-12 22:52 ` tom
  2014-03-12 22:54 ` [ruby-core:61444] [ruby-trunk - Bug #9628] " tom
  2014-03-13  2:29 ` [ruby-core:61450] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: tom @ 2014-03-12 22:52 UTC (permalink / raw
  To: ruby-core

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:61444] [ruby-trunk - Bug #9628] Simple and isolated segfault in 2.1.0 and 2.1.1 on Mac OS X 10.9.2 (via rbenv)
       [not found] <redmine.issue-9628.20140312225232@ruby-lang.org>
  2014-03-12 22:52 ` [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) tom
@ 2014-03-12 22:54 ` tom
  2014-03-13  2:29 ` [ruby-core:61450] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: tom @ 2014-03-12 22:54 UTC (permalink / raw
  To: ruby-core

Issue #9628 has been updated by Tom Mornini.


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
~~~

----------------------------------------
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#change-45743

* 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:61450] [ruby-trunk - Bug #9628] Simple and isolated segfault in 2.1.0 and 2.1.1 on Mac OS X 10.9.2 (via rbenv)
       [not found] <redmine.issue-9628.20140312225232@ruby-lang.org>
  2014-03-12 22:52 ` [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) tom
  2014-03-12 22:54 ` [ruby-core:61444] [ruby-trunk - Bug #9628] " tom
@ 2014-03-13  2:29 ` nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: nagachika00 @ 2014-03-13  2:29 UTC (permalink / raw
  To: ruby-core

Issue #9628 has been updated by Tomoyuki Chikanaga.

Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED

Hello,
Thank you for your report.

I can shrink the reproducible script.
And I've confirmed that this issue was reproduced only with 2.1.x. It seems already fixed on trunk.

~~~
class MyError < StandardError
  def to_s
    message
  end
end

raise MyError, 'explanation'
~~~


----------------------------------------
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#change-45746

* 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: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-13  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-9628.20140312225232@ruby-lang.org>
2014-03-12 22:52 ` [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) tom
2014-03-12 22:54 ` [ruby-core:61444] [ruby-trunk - Bug #9628] " tom
2014-03-13  2:29 ` [ruby-core:61450] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).