Project

General

Profile

Bug #6267

Segmentation fault when exponentiating complex number

Added by pabloh (Pablo Herrero) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
Backport:
[ruby-core:44170]

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

segfaul.backtrace (7.49 KB) segfaul.backtrace backtrace pabloh (Pablo Herrero), 04/07/2012 08:15 AM

Also available in: Atom PDF