Actions
Bug #6267
closedSegmentation fault when exponentiating complex number
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
Backport:
Description
A segfault is raised when running the following script, with any exponent greater or equal to 5:
require "mathn/complex"
Complex(0,1)**5
It only seems to happen when exponentiating pure imaginary numbers and if 'mathn/coplex' is loaded, otherwise it works just fine.
Files
Updated by naruse (Yui NARUSE) about 12 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]
Updated by tadf (tadayoshi funaba) about 12 years ago
- Status changed from Closed to Open
the following still does
Complex(0,1)**2
Updated by naruse (Yui NARUSE) about 12 years ago
- Status changed from Open to Closed
tadf fixed it at r35265.
Actions
Like0
Like0Like0Like0