Project

General

Profile

Actions

Backport #6022

closed

DL on MinGW: bignum too big to convert into `long' (memory_status test)

Added by luislavena (Luis Lavena) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
[ruby-core:42629]

Description

Hello,

When executing tests for Ruby 1.9.3-p105, encountered this new failure:

C:/Users/Luis/Projects/oss/oneclick/rubyinstaller/sandbox/ruby19_build/.ext/common/dl/func.rb:55:in `call': bignum too big to convert into `long' (RangeError)
        from C:/Users/Luis/Projects/oss/oneclick/rubyinstaller/sandbox/ruby19_build/.ext/common/dl/func.rb:55:in `call'
        from C:/Users/Luis/Projects/oss/ruby/test/ruby/memory_status.rb:48:in `GetProcessMemoryInfo'
        from C:/Users/Luis/Projects/oss/ruby/test/ruby/memory_status.rb:54:in `memory_info'
        from C:/Users/Luis/Projects/oss/ruby/test/ruby/memory_status.rb:60:in `read_status'
        from C:/Users/Luis/Projects/oss/ruby/test/ruby/memory_status.rb:82:in `_update'
        from C:/Users/Luis/Projects/oss/ruby/test/ruby/memory_status.rb:93:in `initialize'
        from -e:2:in `new'
        from -e:2:in `'

This error was not present on previous 1.9.3-p0 release.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #5991: fiddle/conversion.c ignores unsigned qualifierClosedtenderlovemaking (Aaron Patterson)02/10/2012Actions

Updated by nobu (Nobuyoshi Nakada) almost 13 years ago

  • Status changed from Open to Feedback

Updated by luislavena (Luis Lavena) almost 13 years ago

Nobuyoshi Nakada wrote:

Could you try with https://bugs.ruby-lang.org/attachments/2444/fiddle.diff?

It worked, no bignum error anymore, down to:

ruby 1.9.3p116 (2012-02-15 revision 34607) [i386-mingw32]
10251 tests, 1907272 assertions, 5 failures, 1 errors, 93 skips

Actions #3

Updated by nobu (Nobuyoshi Nakada) almost 13 years ago

  • Status changed from Feedback to Closed

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


  • ext/fiddle/closure.c (callback): deal with unsinged integers.
    [ruby-core:42458][Bug #5991][Bug #6022]
  • ext/fiddle/conversions.c (value_to_generic, generic_to_value):
    ditto.
Actions #4

Updated by naruse (Yui NARUSE) almost 13 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193
  • Category deleted (ext)
  • Target version deleted (1.9.3)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0