You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/06/04 11:30:00 UTC

[jira] [Updated] (MATH-1262) Heap overflow in org.apache.commons.math4.special.BesselJ

     [ https://issues.apache.org/jira/browse/MATH-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Sadowski updated MATH-1262:
----------------------------------
    Fix Version/s:     (was: 4.0)
                   4.X

> Heap overflow in org.apache.commons.math4.special.BesselJ
> ---------------------------------------------------------
>
>                 Key: MATH-1262
>                 URL: https://issues.apache.org/jira/browse/MATH-1262
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Neil Walkinshaw
>            Priority: Minor
>              Labels: newbie, performance
>             Fix For: 4.X
>
>
> This test case:
> {code:java}
> import org.apache.commons.math4.special.BesselJ;
> public class BesselJHeapBug {
>     public static void main(String[] args) {
>         BesselJ.value(1182054491, 3.589635306407856E-8D);
>     }
> }
> {code}
> throws the following exception:
> {code}
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> 	at org.apache.commons.math4.special.BesselJ.rjBesl(BesselJ.java:247)
> 	at org.apache.commons.math4.special.BesselJ.value(BesselJ.java:161)
> 	at BesselJHeapBug.main(BesselJHeapBug.java:5)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)