Project

General

Profile

Bug #5773

bigdecimal comparison raises SystemStackError

Added by tenderlovemaking (Aaron Patterson) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.0.0dev (2011-12-15 trunk 34056) [x86_64-darwin11.2.0]
Backport:
[ruby-core:41710]

Description

Comparing an uninitialized BigDecimal to another will raise a SysteStackError exception. For example:

BigDecimal("1") == BigDecimal.allocate

I've attached a test case that demonstrates this bug.


Files

failing_test.patch (524 Bytes) failing_test.patch tenderlovemaking (Aaron Patterson), 12/18/2011 12:33 PM

Related issues

Blocked by Ruby master - Bug #5775: BigDecimal does not follow Allocation FrameworkClosed12/18/2011Actions

Associated revisions

Revision 9c00c123
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Revision 34070
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

History

#1

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34070.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow allocation framework right now. [ruby-core:41710] [Bug #5773]

Also available in: Atom PDF