[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
V2UgYXJlIHBsZWFzZWQgdG8gYW5ub3VuY2UgdGhlIHJlbGVhc2Ugb2YgUnVieSAzLjAuMC4gRnJv
4 messages
2020/12/25
[ruby-core:101510] [Ruby master Bug#9246] NoMemoryError is occurred by simple addition of BigDecimal
From:
muraken@...
Date:
2020-12-18 14:31:18 UTC
List:
ruby-core #101510
Issue #9246 has been updated by mrkn (Kenta Murata).
Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Status changed from Assigned to Closed
This no longer occurs with the latest version of bigdecimal.
----------------------------------------
Bug #9246: NoMemoryError is occurred by simple addition of BigDecimal
https://bugs.ruby-lang.org/issues/9246#change-89294
* Author: mrkn (Kenta Murata)
* Status: Closed
* Priority: Normal
* Assignee: mrkn (Kenta Murata)
* ruby -v: ruby 2.1.0dev (2013-12-13 trunk 44155) [x86_64-darwin12.0]
----------------------------------------
I think the following case should raise Overflow exception.
$ ruby -rbigdecimal -ve 'p BigDecimal("1E1024819115206086200") + BigDecimal(2)'
ruby 2.1.0dev (2013-12-13 trunk 44155) [x86_64-darwin12.0]
ruby(35690,0x7fff7a1fc180) malloc: *** mmap(size=506083513682018304) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ruby(35690,0x7fff7a1fc180) malloc: *** mmap(size=506083513682018304) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
-e:1:in `+': failed to allocate memory (NoMemoryError)
from -e:1:in `<main>'
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>