Thanks to visit codestin.com
Credit goes to github.com

Skip to content

malloc issue with polyfit #12230

Closed
Closed
@astrofrog

Description

@astrofrog

I tried installing the latest developer version of numpy today and am running into an error related to memory allocation when running polyfit.

Reproducing code example:

>>> np.polyfit([1,2,3], [1.2, 3.3, 4.5],  deg=1)
python(87909,0x7fffaed02380) malloc: *** mach_vm_map(size=18446744071717433344) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
__main__:1: RankWarning: Polyfit may be poorly conditioned
array([5.50113414e-313, 1.34764833e-312])

Numpy/Python version information:

Platform: MacOS 10.13.6

Python:

Python 3.7.0 (default, Jun 28 2018, 07:39:16) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin

Numpy:

>>> np.__git_revision__
'2be154408c6a088a296da3cad274473ea7d03317'

2be1544

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions