Issue #6093 has been reported by Matt Bauer.

----------------------------------------
Bug #6093: Requiring mathn causes Float.to_d to SEG FAULT when used with BigDecimal
https://bugs.ruby-lang.org/issues/6093

Author: Matt Bauer
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.2.0]


To Reproduce:

require 'bigdecimal'
require 'bigdecimal/util'
require 'mathn'

10.0.to_d #=> Generates SEG FAULT (https://gist.github.com/1921116, https://gist.github.com/1921407)

Note only this combination of requires causes the SEG FAULT. If math isn't included, it will work as expected. I confirmed this works in 1.8.7-p249 and 1.9.2-p290 on the same platform.


-- 
http://bugs.ruby-lang.org/