[MacPorts] #56954: py-numpy: numpy.polyfit broken with +gfortran variant on High Sierra
MacPorts
noreply at macports.org
Fri Aug 10 19:41:42 UTC 2018
#56954: py-numpy: numpy.polyfit broken with +gfortran variant on High Sierra
-----------------------+-----------------------
Reporter: mojca | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-numpy |
-----------------------+-----------------------
Comment (by michaelld):
Following the instructions to set a breakpoint at `malloc_error_break`,
here's the backtrace for Python 2.7:
{{{
% lldb /opt/local/bin/python2.7
(lldb) target create "/opt/local/bin/python2.7"
Current executable set to '/opt/local/bin/python2.7' (x86_64).
(lldb) b malloc_error_break
Breakpoint 1: where = libsystem_malloc.dylib`malloc_error_break, address =
0x0000000000011962
(lldb) r test_numpy_10_13.py
Process 25452 launched: '/opt/local/bin/python2.7' (x86_64)
Process 25452 stopped
* thread #2, stop reason = exec
frame #0: 0x000000010000519c dyld`_dyld_start
dyld`_dyld_start:
-> 0x10000519c <+0>: popq %rdi
0x10000519d <+1>: pushq $0x0
0x10000519f <+3>: movq %rsp, %rbp
0x1000051a2 <+6>: andq $-0x10, %rsp
Target 0: (Python) stopped.
(lldb) c
Process 25452 resuming
Python(25452,0x7fff9cda4380) malloc: ***
mach_vm_map(size=18446744072618995712) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Process 25452 stopped
* thread #2, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x00007fff64772962 libsystem_malloc.dylib`malloc_error_break
libsystem_malloc.dylib`malloc_error_break:
-> 0x7fff64772962 <+0>: pushq %rbp
0x7fff64772963 <+1>: movq %rsp, %rbp
0x7fff64772966 <+4>: nop
0x7fff64772967 <+5>: nopl (%rax)
Target 0: (Python) stopped.
(lldb) bt
* thread #2, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0: 0x00007fff64772962 libsystem_malloc.dylib`malloc_error_break
frame #1: 0x00007fff6476fa08 libsystem_malloc.dylib`szone_error + 392
frame #2: 0x00007fff64771ed6 libsystem_malloc.dylib`mvm_allocate_pages
+ 256
frame #3: 0x00007fff64767475 libsystem_malloc.dylib`large_malloc + 464
frame #4: 0x00007fff6476339d
libsystem_malloc.dylib`szone_malloc_should_clear + 388
frame #5: 0x00007fff647631bd libsystem_malloc.dylib`malloc_zone_malloc
+ 103
frame #6: 0x00007fff647624c7 libsystem_malloc.dylib`malloc + 24
frame #7: 0x0000000104fb5a2f _umath_linalg.so`DOUBLE_lstsq + 735
frame #8: 0x0000000104934e27 umath.so`PyUFunc_GenericFunction + 19415
frame #9: 0x00000001049378be umath.so`ufunc_generic_call + 174
frame #10: 0x00000001000b0201 Python`PyObject_Call + 97
frame #11: 0x000000010015b9aa Python`PyEval_EvalFrameEx + 9130
frame #12: 0x00000001001593a4 Python`PyEval_EvalCodeEx + 2212
frame #13: 0x0000000100163f0d Python`fast_function + 109
frame #14: 0x000000010015b80c Python`PyEval_EvalFrameEx + 8716
frame #15: 0x00000001001593a4 Python`PyEval_EvalCodeEx + 2212
frame #16: 0x0000000100163f0d Python`fast_function + 109
frame #17: 0x000000010015b80c Python`PyEval_EvalFrameEx + 8716
frame #18: 0x00000001001593a4 Python`PyEval_EvalCodeEx + 2212
frame #19: 0x0000000100158af2 Python`PyEval_EvalCode + 34
frame #20: 0x0000000100186fed Python`PyRun_FileExFlags + 157
frame #21: 0x0000000100186b24 Python`PyRun_SimpleFileExFlags + 740
frame #22: 0x000000010019e71f Python`Py_Main + 3279
frame #23: 0x00007fff645ba015 libdyld.dylib`start + 1
(lldb)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56954#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list