[#45382] [ruby-trunk - Feature #6530][Open] Improve Racc documentation coverage — "zzak (Zachary Scott)" <zachary@...>
5 messages
2012/06/02
[#45431] [ruby-trunk - Bug #6548][Open] Rake doesn't ignore arguments after -- — "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>
12 messages
2012/06/05
[#45442] 1.8.7 to come this month — Urabe Shyouhei <shyouhei@...>
Hello. As I wrote before I will release a 1.8.7 patchlevel in this month.
5 messages
2012/06/06
[#45474] [ANN] Request for "slide-show" of your feature proposal — Yusuke Endoh <mame@...>
(Japanese later; 日本語が後にあります)
18 messages
2012/06/07
[#45483] Re: [ANN] Request for "slide-show" of your feature proposal
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2012/06/07
Is this what you were talking about?
[#46009] Re: [ANN] Request for "slide-show" of your feature proposal
— Aaron Patterson <tenderlove@...>
2012/06/30
On Thu, Jun 07, 2012 at 11:59:12PM +0900, Yusuke Endoh wrote:
[#46332] Re: [ANN] Request for "slide-show" of your feature proposal
— Roger Pack <rogerdpack2@...>
2012/07/11
> * at most THREE proposals per person
[#45552] [ruby-trunk - Bug #6571][Assigned] Time.mktime Y2K38 problem on 1.9.3p125 i386-mingw32 — "MartinBosslet (Martin Bosslet)" <Martin.Bosslet@...>
10 messages
2012/06/10
[#45563] [ruby-trunk - Bug #6573][Open] Webrick test failures — "bkabrda (Bohuslav Kabrda)" <bkabrda@...>
19 messages
2012/06/11
[#45589] Developers' meeting (7/21) — Yusuke Endoh <mame@...>
Hello, committers
10 messages
2012/06/12
[#45623] Re: Developers' meeting (7/21)
— Yusuke Endoh <mame@...>
2012/06/13
Four seats are now left.
[#45647] [ruby-trunk - Bug #6592][Open] test_call_double(DL::TestDL) fails on ARM HardFP — "vo.x (Vit Ondruch)" <v.ondruch@...>
15 messages
2012/06/14
[#45664] [ruby-trunk - Bug #6596][Open] New method for Arrays : Array#index — "robin850 (Robin Dupret)" <robin.dupret@...>
20 messages
2012/06/15
[#45694] [ruby-trunk - Feature #6602][Open] Tail call optimization: enable by default? — "ko1 (Koichi Sasada)" <redmine@...>
12 messages
2012/06/18
[#45715] [ruby-trunk - Feature #6609][Open] Toplevel as self extended module — "trans (Thomas Sawyer)" <transfire@...>
17 messages
2012/06/19
[#45732] [ruby-trunk - Bug #6614][Open] GC doesn't collect objects bound to (collectable) proc — "rogerdpack (Roger Pack)" <rogerpack2005@...>
9 messages
2012/06/20
[#45735] [ruby-trunk - Bug #6616][Open] MinGW: cannot build extensions or run tests due changes in exec_arg? — "luislavena (Luis Lavena)" <luislavena@...>
9 messages
2012/06/21
[#45749] [ruby-trunk - Bug #6616] MinGW: cannot build extensions or run tests due changes in exec_arg?
— "phasis68 (Heesob Park)" <phasis@...>
2012/06/21
[#45785] How can I contribute? — David Albert <davidbalbert@...>
Hello ruby-core,
6 messages
2012/06/22
[#45798] [ruby-trunk - Bug #6634][Open] Deadlock with join and ConditionVariable — "meh. (meh. I don't care)" <meh@...>
20 messages
2012/06/23
[#45805] [ruby-trunk - Feature #6636][Open] Enumerable#size — "marcandre (Marc-Andre Lafortune)" <ruby-core@...>
15 messages
2012/06/23
[#45822] [ruby-trunk - Feature #6641][Open] Hash.auto constructor — "trans (Thomas Sawyer)" <transfire@...>
9 messages
2012/06/25
[#45864] [ruby-trunk - Bug #6647][Open] Exceptions raised in threads should be logged — "headius (Charles Nutter)" <headius@...>
71 messages
2012/06/25
[#45866] [ruby-trunk - Bug #6647] Exceptions raised in threads should be logged
— "rue (Eero Saynatkari)" <redmine@...>
2012/06/25
[#45878] [ruby-trunk - Feature #6649][Open] Add new set_trace_func events "b-call", "b-return" — "ko1 (Koichi Sasada)" <redmine@...>
8 messages
2012/06/26
[#45887] [ruby-trunk - Bug #6650][Open] Fixing win32ole test errors — bosko (Boško Ivanišević) <bosko.ivanisevic@...>
10 messages
2012/06/26
[#45916] [ruby-trunk - Bug #6656][Open] Time#strftime('%Z') should return 'UTC' instead of 'GMT' — "stomar (Marcus Stollsteimer)" <redmine@...>
6 messages
2012/06/27
[#45922] Re: [ruby-trunk - Bug #6656][Open] Time#strftime('%Z') should return 'UTC' instead of 'GMT'
— Tanaka Akira <akr@...>
2012/06/28
2012/6/27 stomar (Marcus Stollsteimer) <[email protected]>:
[#45935] Re: [ruby-trunk - Bug #6656][Open] Time#strftime('%Z') should return 'UTC' instead of 'GMT'
— Marcus Stollsteimer <sto.mar@...>
2012/06/28
Am 28.06.2012 02:29, schrieb Tanaka Akira:
[#45940] Re: [ruby-trunk - Bug #6656][Open] Time#strftime('%Z') should return 'UTC' instead of 'GMT'
— Tanaka Akira <akr@...>
2012/06/28
2012/6/28 Marcus Stollsteimer <[email protected]>:
[#45925] Commit bit in GitHub mirror? — Luis Lavena <luislavena@...>
Hello,
6 messages
2012/06/28
[#45926] Re: Commit bit in GitHub mirror?
— Urabe Shyouhei <shyouhei@...>
2012/06/28
Hello, this is svn -> git gateway admin.
[#45958] [ruby-trunk - Feature #6668][Open] Multiple assignment should not return an Array object — "headius (Charles Nutter)" <headius@...>
7 messages
2012/06/29
[#47584] [ruby-trunk - Feature #6668] Multiple assignment should not return an Array object
— "headius (Charles Nutter)" <headius@...>
2012/09/19
[#45960] [ruby-trunk - Feature #6669][Open] A method like Hash#map but returns hash — "yhara (Yutaka HARA)" <redmine@...>
18 messages
2012/06/29
[#45983] [ruby-trunk - Bug #6675][Open] Raise exception when convert encoding of a character from GBK to UTF — "mghomn (Justin Peal)" <yujianbin@...>
5 messages
2012/06/30
[#46020] [ruby-trunk - Feature #6678][Open] Precedence of ^ operator — "trans (Thomas Sawyer)" <transfire@...>
6 messages
2012/06/30
[#46021] [ruby-trunk - Feature #6679][Open] Default Ruby source file encoding to utf-8 — "claytrump (Clay Trump)" <clay.trump@...>
21 messages
2012/06/30
[#46080] [ruby-trunk - Feature #6679][Assigned] Default Ruby source file encoding to utf-8
— "mame (Yusuke Endoh)" <mame@...>
2012/07/01
[#46653] [ruby-trunk - Feature #6679] Default Ruby source file encoding to utf-8
— "mame (Yusuke Endoh)" <mame@...>
2012/07/23
[ruby-core:45707] [ruby-trunk - Bug #6605][Open] Rational#round causes irb to crash when given a reasonably absurd precision value
From:
"jfredett (Joe Fredette)" <jfredett@...>
Date:
2012-06-19 03:47:20 UTC
List:
ruby-core #45707
Issue #6605 has been reported by jfredett (Joe Fredette).
----------------------------------------
Bug #6605: Rational#round causes irb to crash when given a reasonably absurd precision value
https://bugs.ruby-lang.org/issues/6605
Author: jfredett (Joe Fredette)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
Reproduction steps:
1) Open up an IRB, I'm using 1.9.3-p290 (see [1] for the `ruby -v` output)
2) Enter: Rational(1,2).round(2_097_171) into IRB
3) Notice the following stacktrace
1.9.3-p125-perf :001 > Rational(1,2).round(2_097_171)
(irb):1: warning: in a**b, b may be too big
(irb):1: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
-- Control frame information -----------------------------------------------
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :round
c:0023 p:0021 s:0082 b:0082 l:002688 d:000081 EVAL (irb):1
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :eval
c:0020 p:0028 s:0071 b:0071 l:000070 d:000070 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b/workspace.rb:80
c:0019 p:0033 s:0064 b:0063 l:000062 d:000062 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b/context.rb:254
c:0018 p:0031 s:0058 b:0058 l:0024d8 d:000057 BLOCK /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:159
c:0017 p:0042 s:0050 b:0050 l:000049 d:000049 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:273
c:0016 p:0011 s:0045 b:0045 l:0024d8 d:000044 BLOCK /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:156
c:0015 p:0144 s:0041 b:0041 l:000024 d:000040 BLOCK /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b/ruby-lex.rb:243
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b/ruby-lex.rb:229
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b/ruby-lex.rb:228
c:0008 p:0046 s:0022 b:0022 l:0024d8 d:0024d8 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:155
c:0007 p:0011 s:0019 b:0019 l:001a58 d:000018 BLOCK /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:70
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC :catch
c:0004 p:0183 s:0011 b:0011 l:001a58 d:001a58 METHOD /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/ir
b.rb:69
c:0003 p:0142 s:0006 b:0006 l:0009b8 d:0008d8 EVAL /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0009b8 d:0009b8 TOP
-- Ruby level backtrace information ----------------------------------------
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16:in `<main>'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:69:in `start'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:69:in `catch'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:155:in `eval_input'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch'/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top_level_stateme
nt'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_le
vel_statement'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:156:in `block in eval_input'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:273:in `signal_status'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb:159:in `block (2 levels) in eval_input'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/context.rb:254:in `evaluate'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
(irb):1:in `irb_binding'
(irb):1:in `round'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
* Loaded script: irb
* Loaded features:
0 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle 1 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/trans/transdb.bundle
2 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb.rb
3 /Users/jfredett/.rvm/scripts/irbrc.rb
4 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/extend-command.rb
5 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/input-method.rb
6 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/output-method.rb
7 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/workspace.rb
8 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/locale.rb
9 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/magic-file.rb
10 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/x86_64-darwin10.8.0/readline.bundle
11 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
12 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
13 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/x86_64-darwin10.8.0/rbconfig.rb
14 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/src_encoding.rb 15 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
16 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-token.rb
17 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
18 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
19 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/completion.rb
20 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/e2mmap.rb
21 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/notifier.rb
22 enumerator.so
23 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/inspector.rb
24 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems.rb
25 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
26 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb 27 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/init.rb
28 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
29 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
30 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/context.rb
31 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/ruby-lex.rb
32 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/1.9.1/irb/slex.rb
33 /Users/jfredett/.rvm/rubies/ruby-1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap
============
I haven't tried recreating this in a ruby script yet, just in IRB. Attached is my OSX crashlog.
I'll note that it doesn't seem to crash for large negative exponents, but it does go very slowly
(and with an exponent of ~ -2_900_000, it seems to hang and lock up the CPU on my i7 3ghz)
I think it's safe to say this is a pretty extreme edgecase. I only ran across it via some morbid
curiosity while implementing Rational#round in Rubinius.
[1] output of `ruby -v` : ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
[2] output of `uname -a` : Darwin jgf.home 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 i386 MacBookPro8,2 Darwin
--
http://bugs.ruby-lang.org/