Project

General

Profile

Actions

Bug #15755

closed

[BUG] Unnormalized Fixnum value on Enumerator::ArithmeticSequence#hash.to_s on Windows

Added by 5.5 (5 5) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]
[ruby-core:92190]

Description

To reproduce:

ruby -e "0.step.hash.to_s"

Result:

-e:1: [BUG] Unnormalized Fixnum value 0xb3735f03e7a21893
ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0010 e:000009 CFUNC  :to_s
c:0002 p:0010 s:0006 e:000005 EVAL   -e:1 [FINISH]
c:0001 p:0000 s:0003 E:001ee0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `to_s'

-- C level backtrace information -------------------------------------------
C:\WINDOWS\SYSTEM32\ntdll.dll(ZwWaitForSingleObject+0x14) [0x00007ffd02e2f6f4]
C:\WINDOWS\System32\KERNELBASE.dll(WaitForSingleObjectEx+0x93) [0x00007ffcff1783f3]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_print_backtrace+0x36) [0x000000006a5f8816]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_vm_bugreport+0x6d) [0x000000006a5f888d]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_bug+0x69) [0x000000006a619709]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_memerror+0x926) [0x000000006a61a24f]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_error_arity+0x125) [0x000000006a5dd415]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_vm_invoke_bmethod+0x14d3) [0x000000006a5e64c3]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_check_funcall+0x17f) [0x000000006a5ebcbf]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_vm_exec+0x27f) [0x000000006a5e44bf]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(rb_call_end_proc+0x1ec) [0x000000006a4b1c5c]
C:\Ruby26-x64\bin\x64-msvcrt-ruby260.dll(ruby_run_node+0x59) [0x000000006a4b59e9]
 [0x0000000000402d87]
 [0x00000000004013a5]
 [0x000000000040150b]
C:\WINDOWS\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x00007ffd002681f4]

-- Other runtime information -----------------------------------------------

* Loaded script: -e

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/encdb.so
    5 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/trans/transdb.so
    6 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/windows_31j.so
    7 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/rbconfig.rb
    8 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/compatibility.rb
    9 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/defaults.rb
   10 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/deprecate.rb
   11 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/errors.rb
   12 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/version.rb
   13 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/requirement.rb
   14 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/platform.rb
   15 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/basic_specification.rb
   16 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/stub_specification.rb
   17 C:/Ruby26-x64/lib/ruby/2.6.0/delegate.rb
   18 C:/Ruby26-x64/lib/ruby/2.6.0/uri/rfc2396_parser.rb
   19 C:/Ruby26-x64/lib/ruby/2.6.0/uri/rfc3986_parser.rb
   20 C:/Ruby26-x64/lib/ruby/2.6.0/uri/common.rb
   21 C:/Ruby26-x64/lib/ruby/2.6.0/uri/generic.rb
   22 C:/Ruby26-x64/lib/ruby/2.6.0/uri/file.rb
   23 C:/Ruby26-x64/lib/ruby/2.6.0/uri/ftp.rb
   24 C:/Ruby26-x64/lib/ruby/2.6.0/uri/http.rb
   25 C:/Ruby26-x64/lib/ruby/2.6.0/uri/https.rb
   26 C:/Ruby26-x64/lib/ruby/2.6.0/uri/ldap.rb
   27 C:/Ruby26-x64/lib/ruby/2.6.0/uri/ldaps.rb
   28 C:/Ruby26-x64/lib/ruby/2.6.0/uri/mailto.rb
   29 C:/Ruby26-x64/lib/ruby/2.6.0/uri.rb
   30 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/specification_policy.rb
   31 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/util/list.rb
   32 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/stringio.so
   33 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/specification.rb
   34 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/exceptions.rb
   35 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/singleton.rb
   36 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime.rb
   37 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb
   38 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/fiddle.so
   39 C:/Ruby26-x64/lib/ruby/2.6.0/fiddle/function.rb
   40 C:/Ruby26-x64/lib/ruby/2.6.0/fiddle/closure.rb
   41 C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb
   42 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/dll_directory.rb
   43 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/utf_16le.so
   44 C:/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/trans/utf_16_32.so
   45 C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/defaults/operating_system.rb
   46 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/util.rb
   47 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/bundler_version_finder.rb
   48 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/dependency.rb
   49 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_gem.rb
   50 C:/Ruby26-x64/lib/ruby/2.6.0/monitor.rb
   51 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb
   52 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_warn.rb
   53 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems.rb
   54 C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems/path_support.rb
   55 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/version.rb
   56 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/core_ext/name_error.rb
   57 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/levenshtein.rb
   58 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/jaro_winkler.rb
   59 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checker.rb
   60 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   61 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   62 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
   63 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
   64 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/key_error_checker.rb
   65 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/null_checker.rb
   66 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/formatters/plain_formatter.rb
   67 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r67466.


enumerator.c: force hash values fixable

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED

Updated by naruse (Yui NARUSE) over 5 years ago

  • Backport changed from 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE

ruby_2_6 r67516 merged revision(s) 67466.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0