Project

General

Profile

Backport #6022

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

Added by luislavena (Luis Lavena) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
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 intolong' (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

Is duplicate of Ruby trunk - Bug #5991: fiddle/conversion.c ignores unsigned qualifierClosed02/10/2012Actions

Associated revisions

Revision 34be46a3
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

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

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision 34627
Added by nobu (Nobuyoshi Nakada) about 7 years ago

  • 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.

Revision a4debd6a
Added by naruse (Yui NARUSE) about 7 years ago

merge revision(s) 34626,34627:

* ext/fiddle/closure.c (callback): same as r34506.

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

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

Revision 34636
Added by naruse (Yui NARUSE) about 7 years ago

merge revision(s) 34626,34627:

* ext/fiddle/closure.c (callback): same as r34506.

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

History

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Feedback

Updated by luislavena (Luis Lavena) about 7 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

#3

Updated by nobu (Nobuyoshi Nakada) about 7 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.
#4

Updated by naruse (Yui NARUSE) about 7 years ago

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

Also available in: Atom PDF