burningpony (Russell Osborne)
- Login: burningpony
- Registered on: 12/28/2016
- Last sign in: 08/31/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
04/30/2017
-
06:41 PM Ruby Bug #13528 (Closed): Calling #denominator on a whole number floating point number causes segfault with mathn loaded.
- Code to reproduce.
~~~ ruby
require "mathn"
(2.0).denominator
~~~
Repeatable in isolated docker container
~~~
docker run -it ruby:slim ruby -e 'require "mathn"; p (2.0).denominator;'
~~~
Stacktrace follows
~~~
-e:1...
12/29/2016
-
12:21 AM Ruby Bug #13084: String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
- Can be replicated on Linux via Docker
Below Segfaults
~~~
docker run -it ruby:slim ruby -e 'require "mathn"; p Rational("5/5");'
~~~
Below Returns Expected Result
~~~
docker run -it ruby:slim ruby -e 'p Rational("5/5");'
... -
12:06 AM Ruby Bug #13084 (Closed): String cast to Rational on 2.4.0p0 results in SegFault with Mathn required
- See the below example, while `mathn` is required recasting a string into a Rational causes a SegFault. Remove mathn and the code will not crash.
~~~ ruby
require 'mathn'
# Both result in Segfault
Rational("5/5")
"5/5".to_r
~~~...