Segmentation fault when exponentiating complex number
A segfault is raised when running the following script, with any exponent greater or equal to 5:
It only seems to happen when exponentiating pure imaginary numbers and if 'mathn/coplex' is loaded, otherwise it works just fine.
Updated by naruse (Yui NARUSE) over 9 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r35262.
Pablo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- complex.c (nucomp_expt): the result of f_complex_new2 may be a fixnum with mathn. [ruby-core:44170] [Bug #6267]