Project

General

Profile

Actions

Bug #6267

closed

Segmentation fault when exponentiating complex number

Added by pabloh (Pablo Herrero) about 12 years ago. Updated about 12 years ago.

Status:
Closed
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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0