Project

General

Profile

Actions

Bug #5773

closed

bigdecimal comparison raises SystemStackError

Added by tenderlovemaking (Aaron Patterson) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
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 1 (0 open1 closed)

Blocked by Ruby master - Bug #5775: BigDecimal does not follow Allocation FrameworkClosedmrkn (Kenta Murata)12/18/2011Actions
Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 13 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]
Actions

Also available in: Atom PDF

Like0
Like0