Closed picn0113 closed 3 years ago
I think this build does not include OpenBLAS because I have not built OpenBLAS.
Python 3.8.2 (default, Oct 2 2020, 10:45:41)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.show_config()
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/OpenBLAS/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/OpenBLAS/lib']
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/OpenBLAS/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/OpenBLAS/lib']
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
NOT AVAILABLE
openblas_clapack_info:
NOT AVAILABLE
flame_info:
NOT AVAILABLE
atlas_3_10_threads_info:
NOT AVAILABLE
atlas_3_10_info:
NOT AVAILABLE
atlas_threads_info:
NOT AVAILABLE
atlas_info:
NOT AVAILABLE
lapack_info:
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
lapack_opt_info:
NOT AVAILABLE
numpy_linalg_lapack_lite:
language = c
define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
>>> np.test('full',2)
NumPy version 1.21.0.dev0+20201210171108_bffb006
NumPy relaxed strides checking option: True
NumPy CPU features: nothing enabled
============================= test session starts ==============================
platform darwin -- Python 3.8.2, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /Users/*/numpy, configfile: pytest.ini
plugins: hypothesis-5.42.2
collected 11466 items
numpy/compat/tests/test_compat.py . [ 0%]
numpy/core/tests/test__exceptions.py ..... [ 0%]
numpy/core/tests/test_abc.py ..... [ 0%]
numpy/core/tests/test_api.py ........................................... [ 0%]
............ [ 0%]
numpy/core/tests/test_array_coercion.py ..........s....s.ss............. [ 0%]
.......................................ss.....s... [ 1%]
numpy/core/tests/test_arrayprint.py ..x.....F........................... [ 1%]
.......... [ 1%]
numpy/core/tests/test_casting_unittests.py ............................. [ 1%]
.................................... [ 2%]
numpy/core/tests/test_conversion_utils.py ........................... [ 2%]
numpy/core/tests/test_cpu_dispatcher.py . [ 2%]
numpy/core/tests/test_cpu_features.py sss [ 2%]
numpy/core/tests/test_cython.py ...... [ 2%]
numpy/core/tests/test_datetime.py ...................................... [ 2%]
........................................................................ [ 3%]
........................................................................ [ 4%]
...............................x..........x..x..........x... [ 4%]
numpy/core/tests/test_defchararray.py .................................. [ 4%]
................................................. [ 5%]
numpy/core/tests/test_deprecations.py .................................. [ 5%]
................ [ 5%]
numpy/core/tests/test_dtype.py ......................................... [ 6%]
...................................sssssssssx........................... [ 6%]
........................................................................ [ 7%]
..................s.. [ 7%]
numpy/core/tests/test_einsum.py ........................................ [ 7%]
... [ 8%]
numpy/core/tests/test_errstate.py .... [ 8%]
numpy/core/tests/test_extint128.py ............. [ 8%]
numpy/core/tests/test_function_base.py .............................. [ 8%]
numpy/core/tests/test_getlimits.py ............. [ 8%]
numpy/core/tests/test_half.py ................................ [ 8%]
numpy/core/tests/test_indexerrors.py ........ [ 8%]
numpy/core/tests/test_indexing.py ...................................... [ 9%]
............................ [ 9%]
numpy/core/tests/test_item_selection.py ..... [ 9%]
numpy/core/tests/test_longdouble.py .................................. [ 9%]
numpy/core/tests/test_machar.py . [ 9%]
numpy/core/tests/test_mem_overlap.py ........................ [ 10%]
numpy/core/tests/test_memmap.py ................... [ 10%]
numpy/core/tests/test_multiarray.py .................................... [ 10%]
.............................................................xx......... [ 11%]
..................................Fatal Python error: Segmentation fault
@picn0113, according to the test log NumPy CPU features: nothing enabled
, distutils/CCompilerOpt
wasn't able to detect the CPU arch which leads to disabling the current ARM SIMD optimization.
please, could you provide the build log and GDB backtrace of the segfault?
gdb --args python3 runtests.py -t numpy/core/tests/test_multiarray.py
(gdb) run
segfault should appear here
(gdb) backtrace
involved calls should appear here
please, could you verify #18001 via python3 -c "import numpy; numpy._pytesttester._show_numpy_info()"
?
You should see something like the following:
NumPy version 1.21.0.dev0+193.g2f5abf4d
NumPy relaxed strides checking option: True
NumPy CPU features: NEON NEON_FP16 NEON_VFPV4 ASIMD ASIMDHP? ASIMDDP?
I have no gdb available and can't find the log.
simd % /usr/bin/python3 -c "import numpy; numpy._pytesttester._show_numpy_info()"
NumPy version 1.21.0.dev0+191.g23d0c17de
NumPy relaxed strides checking option: True
NumPy CPU features: nothing enabled
Is this output from pr #18001?
can't find the log.
please, could you run the following command and provides URL for build_and_test.log
?
git clean -xdf
python3 runtests.py --show-build-log -t numpy/core/tests/test_multiarray.py -- -vv &> build_and_test.log
/usr/bin/python3 runtests.py -t numpy/core/tests/test_multiarray.py
This generates a log.
build.log.txt
Why should missing optimizations cause a segfault?
numpy % cc -print-target-triple
arm64-apple-darwin20.1.0
I think apple arm64 should be independence from other aarch64.
@mattip,
Why should missing optimizations cause a segfault?
no, the build log just discovered another bug, and according to build_and_test.log we need to dig from numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex_byte_swapping
@picn0113,
I think apple arm64 should be independence from other aarch64.
no, both of them are referring to the same thing "the 64-bit state of Armv8", Apple called it "arm64", LLVM/GCC "aarch64".
For Apple, if SSE3 is not detected, then it should be ARM, right?
@picn0113 , see comment, Distutils shouldn't test x86 features from the first place. thank you for your report. Is there any possibility to provide backtrace via LLDB
?
numpy/random/_bounded_integers.pxd.in has not changed
numpy/random/_philox.pyx has not changed
numpy/random/_bounded_integers.pyx.in has not changed
numpy/random/_sfc64.pyx has not changed
numpy/random/_mt19937.pyx has not changed
numpy/random/bit_generator.pyx has not changed
numpy/random/_bounded_integers.pyx has not changed
numpy/random/mtrand.pyx has not changed
numpy/random/_generator.pyx has not changed
numpy/random/_pcg64.pyx has not changed
numpy/random/_common.pyx has not changed
Cythonizing sources
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders/qx
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1
compile options: '-c'
clang: /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/source.c
clang /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/source.o -L/opt/OpenBLAS/lib -lopenblas -o /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp339wmrz1/a.out
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blas_info:
libraries blas not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blas_src_info:
NOT AVAILABLE
NOT AVAILABLE
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders/qx
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94
compile options: '-c'
clang: /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/source.c
clang /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/source.o -L/opt/OpenBLAS/lib -lopenblas -o /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmpb6mtuo94/a.out
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
NOT AVAILABLE
openblas_clapack_info:
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders/qx
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T
creating /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc
compile options: '-c'
clang: /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/source.c
clang /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/source.o -L/opt/OpenBLAS/lib -lopenblas -o /var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/tmp53sf08nc/a.out
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
NOT AVAILABLE
flame_info:
libraries flame not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries tatlas,tatlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries satlas,satlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries ptf77blas,ptcblas,atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries f77blas,cblas,atlas not found in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
gfortran: warning: this compiler does not support X86 (arch flags ignored)
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Running from numpy source directory.
/Users/*/numpy/numpy/distutils/system_info.py:1989: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
/Users/*/numpy/numpy/distutils/system_info.py:1989: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
/Users/*/numpy/numpy/distutils/system_info.py:1989: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
/Users/*/numpy/numpy/distutils/system_info.py:1849: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
/Users/*/numpy/numpy/distutils/system_info.py:1849: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
Warning: attempted relative import with no known parent package
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
Traceback (most recent call last):
File "setup.py", line 444, in <module>
setup_package()
File "setup.py", line 436, in setup_package
setup(**metadata)
File "/Users/*/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/Users/*/Library/Python/3.8/lib/python/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/*/numpy/numpy/distutils/command/build.py", line 61, in run
old_build.run(self)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/*/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/Users/*/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/Users/*/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/*/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 676, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
Something is broken and Apple doesn't allow to lldb system python.
This time I get something new:
Python 3.9.1 (default, Dec 11 2020, 10:13:38)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
NumPy version 1.21.0.dev0+200.gc9f9081fd
NumPy relaxed strides checking option: True
NumPy CPU features: nothing enabled
........................................................................ [ 0%]
......................................................x................. [ 1%]
........................................................................ [ 1%]
.........................x.............................................. [ 2%]
........................................................................ [ 2%]
..................sss................................................... [ 3%]
..................................................................s..... [ 4%]
........................................................................ [ 4%]
........................x..........x..x..........x...................... [ 5%]
......................................................................s. [ 5%]
........................................................................ [ 6%]
..............................................ssss...................... [ 6%]
..........x............................................................. [ 7%]
........................................................................ [ 8%]
........................................................................ [ 8%]
........................................................................ [ 9%]
........................................................................ [ 9%]
........................................................................ [ 10%]
........................................................................ [ 11%]
........................................................................ [ 11%]
........................................................................ [ 12%]
........................................................................ [ 12%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 14%]
..........................................................s............. [ 15%]
........................................................................ [ 15%]
........................................................................ [ 16%]
........xx.............................................................. [ 16%]
..................................................................s..... [ 17%]
........................................................................ [ 18%]
........................................................................ [ 18%]
........................................................................ [ 19%]
........................................................................ [ 19%]
........................................................................ [ 20%]
........................................................................ [ 20%]
........................................................................ [ 21%]
...............................................................x...x.... [ 22%]
........................................................................ [ 22%]
........................................................................ [ 23%]
..............................xx........................................ [ 23%]
........................................................................ [ 24%]
........................................................................ [ 25%]
........................................................................ [ 25%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 27%]
........................................................................ [ 27%]
........................................................................ [ 28%]
..............................s......................................... [ 29%]
........................................................................ [ 29%]
..................................................................s..... [ 30%]
........................................................................ [ 30%]
.............................ss......................................... [ 31%]
..s..................................................................... [ 32%]
........................................................................ [ 32%]
..ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 34%]
ssssssssssssssssssssssssssssssss........................................ [ 34%]
........................................................................ [ 35%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 37%]
........................................................................ [ 37%]
...........F............................................................ [ 38%]
.................ssssssssssss........................................... [ 39%]
........................................................................ [ 39%]
.................s...s...............s.ss.s..s.......s.................. [ 40%]
........................................................................ [ 40%]
........................................................................ [ 41%]
........................................................................ [ 41%]
........................................................................ [ 42%]
........................................................................ [ 43%]
.................................F...................................... [ 43%]
..........................F............................................. [ 44%]
...................F.........................F.........................F [ 44%]
.........................F.................................s...........s [ 45%]
ssssssssssssss...............sssssssssssssss............................ [ 45%]
........................................................................ [ 46%]
........................................................................ [ 47%]
........................................................................ [ 47%]
........................................................................ [ 48%]
...F......FF.........................................................Fatal Python error: Segmentation fault
It's homebrew's python3.9.
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8)
frame #0: 0xffffd7f6a9015ff8
error: memory read failed for 0xffffd7f6a9015e00
Target 0: (Python) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8)
* frame #0: 0xffffd7f6a9015ff8
frame #1: 0x00000001373d634c _test_ext_module_5405.cpython-39-darwin.so`string_callback_ + 44
frame #2: 0x00000001373d304c _test_ext_module_5405.cpython-39-darwin.so`f2py_rout__test_ext_module_5405_string_callback + 420
frame #3: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #4: 0x00000001001f8908 Python`call_function + 512
frame #5: 0x00000001001f63dc Python`_PyEval_EvalFrameDefault + 24064
frame #6: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #7: 0x000000010014e680 Python`method_vectorcall + 280
frame #8: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #9: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #10: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #11: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #12: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #13: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #14: 0x00000001001f88a8 Python`call_function + 416
frame #15: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #16: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #17: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #18: 0x00000001001f88a8 Python`call_function + 416
frame #19: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #20: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #21: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #22: 0x00000001001f88a8 Python`call_function + 416
frame #23: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #24: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #25: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #26: 0x000000010014c1f4 Python`_PyObject_FastCallDictTstate + 140
frame #27: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #28: 0x000000010019ac08 Python`slot_tp_call + 104
frame #29: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #30: 0x00000001001f8908 Python`call_function + 512
frame #31: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #32: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #33: 0x00000001001f88a8 Python`call_function + 416
frame #34: 0x00000001001f633c Python`_PyEval_EvalFrameDefault + 23904
frame #35: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #36: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #37: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #38: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #39: 0x00000001001f88a8 Python`call_function + 416
frame #40: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #41: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #42: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #43: 0x00000001001f88a8 Python`call_function + 416
frame #44: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #45: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #46: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #47: 0x00000001001f88a8 Python`call_function + 416
frame #48: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #49: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #50: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #51: 0x000000010014c1f4 Python`_PyObject_FastCallDictTstate + 140
frame #52: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #53: 0x000000010019ac08 Python`slot_tp_call + 104
frame #54: 0x000000010014c90c Python`_PyObject_Call + 172
frame #55: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #56: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #57: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #58: 0x00000001001f88a8 Python`call_function + 416
frame #59: 0x00000001001f63dc Python`_PyEval_EvalFrameDefault + 24064
frame #60: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #61: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #62: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #63: 0x00000001001f88a8 Python`call_function + 416
frame #64: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #65: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #66: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #67: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #68: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #69: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #70: 0x00000001001f88a8 Python`call_function + 416
frame #71: 0x00000001001f63dc Python`_PyEval_EvalFrameDefault + 24064
frame #72: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #73: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #74: 0x00000001001f88a8 Python`call_function + 416
frame #75: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #76: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #77: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #78: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #79: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #80: 0x00000001001f88a8 Python`call_function + 416
frame #81: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #82: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #83: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #84: 0x00000001001f88a8 Python`call_function + 416
frame #85: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #86: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #87: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #88: 0x00000001001f88a8 Python`call_function + 416
frame #89: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #90: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #91: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #92: 0x000000010014c1f4 Python`_PyObject_FastCallDictTstate + 140
frame #93: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #94: 0x000000010019ac08 Python`slot_tp_call + 104
frame #95: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #96: 0x00000001001f8908 Python`call_function + 512
frame #97: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #98: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #99: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #100: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #101: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #102: 0x00000001001f88a8 Python`call_function + 416
frame #103: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #104: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #105: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #106: 0x00000001001f88a8 Python`call_function + 416
frame #107: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #108: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #109: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #110: 0x00000001001f88a8 Python`call_function + 416
frame #111: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #112: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #113: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #114: 0x000000010014c1f4 Python`_PyObject_FastCallDictTstate + 140
frame #115: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #116: 0x000000010019ac08 Python`slot_tp_call + 104
frame #117: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #118: 0x00000001001f8908 Python`call_function + 512
frame #119: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #120: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #121: 0x00000001001f88a8 Python`call_function + 416
frame #122: 0x00000001001f63dc Python`_PyEval_EvalFrameDefault + 24064
frame #123: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #124: 0x00000001001f88a8 Python`call_function + 416
frame #125: 0x00000001001f63dc Python`_PyEval_EvalFrameDefault + 24064
frame #126: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #127: 0x00000001001f6668 Python`_PyEval_EvalFrameDefault + 24716
frame #128: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #129: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #130: 0x00000001001f88a8 Python`call_function + 416
frame #131: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #132: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #133: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #134: 0x00000001001f88a8 Python`call_function + 416
frame #135: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #136: 0x000000010014cb54 Python`function_code_fastcall + 112
frame #137: 0x000000010014e5f8 Python`method_vectorcall + 144
frame #138: 0x00000001001f88a8 Python`call_function + 416
frame #139: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #140: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #141: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #142: 0x000000010014c1f4 Python`_PyObject_FastCallDictTstate + 140
frame #143: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #144: 0x000000010019ac08 Python`slot_tp_call + 104
frame #145: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #146: 0x00000001001f8908 Python`call_function + 512
frame #147: 0x00000001001f6460 Python`_PyEval_EvalFrameDefault + 24196
frame #148: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #149: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #150: 0x00000001001f88a8 Python`call_function + 416
frame #151: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #152: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #153: 0x000000010014cad8 Python`_PyFunction_Vectorcall + 244
frame #154: 0x000000010014c24c Python`_PyObject_FastCallDictTstate + 228
frame #155: 0x000000010014cdf0 Python`_PyObject_Call_Prepend + 148
frame #156: 0x000000010019ac08 Python`slot_tp_call + 104
frame #157: 0x000000010014c3cc Python`_PyObject_MakeTpCall + 308
frame #158: 0x00000001001f8908 Python`call_function + 512
frame #159: 0x00000001001f6358 Python`_PyEval_EvalFrameDefault + 23932
frame #160: 0x00000001001f93a0 Python`_PyEval_EvalCode + 1932
frame #161: 0x00000001001f0514 Python`PyEval_EvalCode + 80
frame #162: 0x00000001002291e8 Python`run_eval_code_obj + 116
frame #163: 0x0000000100228474 Python`run_mod + 116
frame #164: 0x0000000100226dd8 Python`PyRun_InteractiveOneObjectEx + 684
frame #165: 0x000000010022657c Python`PyRun_InteractiveLoopFlags + 140
frame #166: 0x00000001002264ac Python`PyRun_AnyFileExFlags + 72
frame #167: 0x000000010023ec60 Python`Py_RunMain + 2072
frame #168: 0x000000010023ee20 Python`pymain_main + 324
frame #169: 0x000000010023ee9c Python`Py_BytesMain + 40
frame #170: 0x00000001828dcf54 libdyld.dylib`start + 4
Process: Python [21130]
Path: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.8.2 (3.8.2)
Build Info: python3-73040006000000~86
Code Type: ARM-64 (Native)
Parent Process: zsh [6809]
Responsible: Terminal [6766]
User ID: 501
Date/Time: 2020-12-15 18:37:35.031 +0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Anonymous UUID: FB53C1D2-12C6-73A2-3845-E08E24D498CE
Sleep/Wake UUID: BA5C9E5E-66B2-4DDF-A60B-2177924EFBB5
Time Awake Since Boot: 2000000 seconds
Time Since Wake: 1700000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x02000000000000a9 -> 0x00000000000000a9 (possible pointer authentication failure)
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0xa9:
-->
__TEXT 100a90000-100a94000 [ 16K] r-x/r-x SM=COW /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x000000018288fcec __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001828c0c24 pthread_kill + 292
2 libsystem_c.dylib 0x00000001827a04d0 raise + 32
3 libsystem_platform.dylib 0x0000000182908c44 _sigtramp + 56
4 com.apple.python3 0x0000000100f30694 func_traverse + 160
5 com.apple.python3 0x0000000100f30694 func_traverse + 160
6 com.apple.python3 0x000000010103aabc collect + 564
7 com.apple.python3 0x000000010103b890 _PyObject_GC_Alloc + 256
8 com.apple.python3 0x000000010103b954 _PyObject_GC_New + 28
9 com.apple.python3 0x0000000100f4a348 new_dict_with_shared_keys + 464
10 com.apple.python3 0x0000000100f4a5a8 _PyObjectDict_SetItem + 288
11 com.apple.python3 0x0000000100f59110 _PyObject_GenericSetAttrWithDict + 304
12 com.apple.python3 0x0000000100f5840c PyObject_SetAttr + 132
13 com.apple.python3 0x0000000100fb91f4 ast2obj_expr + 2160
14 com.apple.python3 0x0000000100fb9abc ast2obj_expr + 4408
15 com.apple.python3 0x0000000100fb786c ast2obj_stmt + 2704
16 com.apple.python3 0x0000000100fb8208 ast2obj_stmt + 5164
17 com.apple.python3 0x0000000100fb8760 ast2obj_stmt + 6532
18 com.apple.python3 0x0000000100fb5ab8 PyAST_mod2obj + 424
19 com.apple.python3 0x000000010101e454 Py_CompileStringObject + 136
20 com.apple.python3 0x0000000100fd4068 builtin_compile + 1140
21 com.apple.python3 0x0000000100f53fe8 cfunction_vectorcall_FASTCALL_KEYWORDS + 152
22 com.apple.python3 0x0000000100fdfc1c call_function + 288
23 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
24 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
25 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
26 com.apple.python3 0x0000000100fdfc1c call_function + 288
27 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
28 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
29 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
30 com.apple.python3 0x0000000100fdfc1c call_function + 288
31 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
32 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
33 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
34 com.apple.python3 0x0000000100fdfc1c call_function + 288
35 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
36 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
37 com.apple.python3 0x0000000100fdfc1c call_function + 288
38 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
39 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
40 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
41 com.apple.python3 0x0000000100fdfc1c call_function + 288
42 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
43 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
44 com.apple.python3 0x0000000100fdfc1c call_function + 288
45 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
46 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
47 com.apple.python3 0x0000000100fdfc1c call_function + 288
48 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
49 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
50 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
51 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
52 com.apple.python3 0x0000000100fdfc1c call_function + 288
53 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
54 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
55 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
56 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
57 com.apple.python3 0x0000000100fdfc1c call_function + 288
58 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
59 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
60 com.apple.python3 0x0000000100fdfc1c call_function + 288
61 com.apple.python3 0x0000000100fdd148 _PyEval_EvalFrameDefault + 23900
62 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
63 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
64 com.apple.python3 0x0000000100fdfc1c call_function + 288
65 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
66 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
67 com.apple.python3 0x0000000100f1547c PyVectorcall_Call + 104
68 com.apple.python3 0x0000000100fdd3d0 _PyEval_EvalFrameDefault + 24548
69 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
70 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
71 com.apple.python3 0x0000000100fdfc1c call_function + 288
72 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
73 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
74 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
75 com.apple.python3 0x0000000100fdfc1c call_function + 288
76 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
77 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
78 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
79 com.apple.python3 0x0000000100fdfc1c call_function + 288
80 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
81 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
82 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
83 com.apple.python3 0x0000000100f14eec _PyObject_FastCallDict + 116
84 com.apple.python3 0x0000000100f16680 _PyObject_Call_Prepend + 140
85 com.apple.python3 0x0000000100f6e574 slot_tp_call + 192
86 com.apple.python3 0x0000000100f15140 _PyObject_MakeTpCall + 372
87 com.apple.python3 0x0000000100fdfcbc call_function + 448
88 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
89 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
90 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
91 com.apple.python3 0x0000000100fdfc1c call_function + 288
92 com.apple.python3 0x0000000100fdd1dc _PyEval_EvalFrameDefault + 24048
93 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
94 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
95 com.apple.python3 0x0000000100fdfc1c call_function + 288
96 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
97 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
98 com.apple.python3 0x0000000100f1547c PyVectorcall_Call + 104
99 com.apple.python3 0x0000000100fdd3d0 _PyEval_EvalFrameDefault + 24548
100 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
101 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
102 com.apple.python3 0x0000000100fdfc1c call_function + 288
103 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
104 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
105 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
106 com.apple.python3 0x0000000100fdfc1c call_function + 288
107 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
108 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
109 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
110 com.apple.python3 0x0000000100fdfc1c call_function + 288
111 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
112 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
113 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
114 com.apple.python3 0x0000000100f14eec _PyObject_FastCallDict + 116
115 com.apple.python3 0x0000000100f16680 _PyObject_Call_Prepend + 140
116 com.apple.python3 0x0000000100f6e574 slot_tp_call + 192
117 com.apple.python3 0x0000000100f15140 _PyObject_MakeTpCall + 372
118 com.apple.python3 0x0000000100fdfcbc call_function + 448
119 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
120 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
121 com.apple.python3 0x0000000100f1547c PyVectorcall_Call + 104
122 com.apple.python3 0x0000000100fdd3d0 _PyEval_EvalFrameDefault + 24548
123 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
124 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
125 com.apple.python3 0x0000000100fdfc1c call_function + 288
126 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
127 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
128 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
129 com.apple.python3 0x0000000100fdfc1c call_function + 288
130 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
131 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
132 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
133 com.apple.python3 0x0000000100fdfc1c call_function + 288
134 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
135 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
136 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
137 com.apple.python3 0x0000000100f14eec _PyObject_FastCallDict + 116
138 com.apple.python3 0x0000000100f16680 _PyObject_Call_Prepend + 140
139 com.apple.python3 0x0000000100f6e574 slot_tp_call + 192
140 com.apple.python3 0x0000000100f15140 _PyObject_MakeTpCall + 372
141 com.apple.python3 0x0000000100fdfcbc call_function + 448
142 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
143 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
144 com.apple.python3 0x0000000100fdfc1c call_function + 288
145 com.apple.python3 0x0000000100fdd1dc _PyEval_EvalFrameDefault + 24048
146 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
147 com.apple.python3 0x0000000100fdfc1c call_function + 288
148 com.apple.python3 0x0000000100fdd1dc _PyEval_EvalFrameDefault + 24048
149 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
150 com.apple.python3 0x0000000100f1547c PyVectorcall_Call + 104
151 com.apple.python3 0x0000000100fdd3d0 _PyEval_EvalFrameDefault + 24548
152 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
153 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
154 com.apple.python3 0x0000000100fdfc1c call_function + 288
155 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
156 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
157 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
158 com.apple.python3 0x0000000100fdfc1c call_function + 288
159 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
160 com.apple.python3 0x0000000100f15b00 function_code_fastcall + 120
161 com.apple.python3 0x0000000100f180ac method_vectorcall + 156
162 com.apple.python3 0x0000000100fdfc1c call_function + 288
163 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
164 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
165 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
166 com.apple.python3 0x0000000100f14eec _PyObject_FastCallDict + 116
167 com.apple.python3 0x0000000100f16680 _PyObject_Call_Prepend + 140
168 com.apple.python3 0x0000000100f6e574 slot_tp_call + 192
169 com.apple.python3 0x0000000100f15140 _PyObject_MakeTpCall + 372
170 com.apple.python3 0x0000000100fdfcbc call_function + 448
171 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
172 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
173 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
174 com.apple.python3 0x0000000100fdfc1c call_function + 288
175 com.apple.python3 0x0000000100fdd164 _PyEval_EvalFrameDefault + 23928
176 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
177 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
178 com.apple.python3 0x0000000100f14eec _PyObject_FastCallDict + 116
179 com.apple.python3 0x0000000100f16680 _PyObject_Call_Prepend + 140
180 com.apple.python3 0x0000000100f6e574 slot_tp_call + 192
181 com.apple.python3 0x0000000100f15140 _PyObject_MakeTpCall + 372
182 com.apple.python3 0x0000000100fdfcbc call_function + 448
183 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
184 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
185 com.apple.python3 0x0000000100f15c80 _PyFunction_Vectorcall + 248
186 com.apple.python3 0x0000000100fdfc1c call_function + 288
187 com.apple.python3 0x0000000100fdd254 _PyEval_EvalFrameDefault + 24168
188 com.apple.python3 0x0000000100fe0c48 _PyEval_EvalCodeWithName + 3212
189 com.apple.python3 0x0000000100fd7358 PyEval_EvalCode + 60
190 com.apple.python3 0x000000010101cdac PyRun_FileExFlags + 280
191 com.apple.python3 0x000000010101c19c PyRun_SimpleFileExFlags + 248
192 com.apple.python3 0x0000000101039bb4 Py_RunMain + 1624
193 com.apple.python3 0x000000010103a038 pymain_main + 340
194 com.apple.python3 0x000000010103a0b4 Py_BytesMain + 40
195 libdyld.dylib 0x00000001828dcf54 start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000001 x3: 0x0000000182905ee7
x4: 0x0000000148047c18 x5: 0xa6bdfd22cdf36ef1 x6: 0x0000000000000600 x7: 0x0000000000000000
x8: 0x00000000000005b9 x9: 0x53a367bb668788ff x10: 0x0000000000001bbd x11: 0x00000001edddf94b
x12: 0x00000001edddf94b x13: 0x0000000000000004 x14: 0x0000000000000881 x15: 0x000000008000001f
x16: 0x0000000000000148 x17: 0x00000001e5ed6eb0 x18: 0x0000000000000000 x19: 0x000000000000000b
x20: 0x0000000100ea7d40 x21: 0x0000000000000303 x22: 0x0000000100ea7e20 x23: 0x0000000000000002
x24: 0x0000000101184960 x25: 0x000000010103c9ac x26: 0x0000000000000002 x27: 0x00000001011847c0
x28: 0x0000000110452c1e fp: 0x0000000148047b50 lr: 0x00000001828c0c24
sp: 0x0000000148047b30 pc: 0x000000018288fcec cpsr: 0x40000000
far: 0x0000000148047bb0 esr: 0x56000080
This is from Apple's console.
And with Python 3.8.2, the results vary.
@picn0113 thanks for all of that info! I don't suppose you have a debug python available easily on homebrew, that could be a useful try if you do. None of us have M1 hardware available right now (we will hopefully get someone to look at this soon, though).
The last stack traces seem to originate from within Python, which means that something went wrong earlier. Potentially quite a bit earlier. If you use runtests
(since you did earlier) and run:
python3 runtests.py -vv -t numpy/core/tests/test_multiarray.py
you could narrow down things further by copying the precise tests that crashed, e.g.:
python3 runtests.py -vv -t numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex_byte_swapping
I admit that probably doesn't help much on its own, but maybe it can at least help whoever ends up digging deeper to have a more minimal example/starting point.
I wish you have new hardware earlier.
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_empty_subscript PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_invalid_subscript PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_invalid_subscript_assignment PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_newaxis PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_invalid_newaxis PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestScalarIndexing::test_overlapping_assignment PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_from_attribute PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_from_string PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_void PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_structured_void_promotion[arr] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_structured_void_promotion[scalar] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_too_big_error PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_malloc_fails PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_zeros PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_zeros_obj PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_zeros_obj_obj PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_zeros_like_like_zeros PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_empty_unicode PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_sequence_non_homogeneous PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_non_sequence_sequence PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_no_len_object_type PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_false_len_sequence PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_false_len_iterable PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_failed_len_sequence PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_array_too_big PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_ragged_ndim_object PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_ragged_shape_object PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_array_of_ragged_array PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestCreation::test_deep_nonragged_object PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_subarray_field_access PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_subarray_comparison PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_casting PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_objview PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_setfield PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_setfield_object PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_zero_width_string PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_base_attr PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_assignment PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_scalar_assignment PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_structuredscalar_indexing PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_multiindex_titles PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestStructured::test_structured_asarray_is_view PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_test_interning PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_sum PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_count_nonzero PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_count_nonzero_unaligned PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_cast_from_void PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_cast_from_unicode XFAIL [ 16%]
numpy/core/tests/test_multiarray.py::TestBool::test_cast_from_bytes XFAIL [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_create PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_sort PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_argsort PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_partition PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_argpartition PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_resize PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_view PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_dumps PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_pickle PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestZeroSizeFlexible::test_pickle_with_buffercallback PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_all_where PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_any_where PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_compress PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_choose PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_prod PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_repeat PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_reshape PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_round PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_squeeze PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_transpose PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[uint8] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[uint16] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[uint32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[uint64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[float16] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[float32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[float64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_unsigned[float128] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[int8] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[int16] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[int32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[int64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[float16] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[float32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[float64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_signed[float128] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[real-float32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[real-float64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[real-float128] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[imag-float32] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[imag-float64] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex[imag-float128] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_complex_byte_swapping FAILED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_string[bytes_] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_string[str_] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_object PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_structured PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_time[datetime64[D]] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_time[timedelta64[D]] PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_axis PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_size_0 PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_bad_ordering PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_void_sort PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_raises PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_degraded PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_copy PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_sort_order PASSED [ 16%]
numpy/core/tests/test_multiarray.py::TestMethods::test_argsort Fatal Python error: Segmentation fault
I think the swing between test_sort_complex_byte_swapping
and test_argsort
is caused by gfortran.
1.21.0.dev0+343.g098a3b417 without OpenBLAS still vary.
@seiko2plus I don't know why there's no change with Apple's 3.8.2?
@picn0113, #18001 should fix enabling SIMD optimization but not fixing the current crush, it actually another bug discovered by your build log. unfortunately, I don't have access to M1 to verify the changes or to trace errors.
I don't know why there's no change with Apple's 3.8.2?
Do you mean you still see no features enabled? similar to the following:
NumPy CPU features: nothing enabled
if yes, then please provides me the last build log.
@picn0113, Thank you a lot, #18001 fixed aarch64 detection but we're facing another issue here. I'm not sure exactly what's going on. Clang 64-bit ARM supposed to enable NEON/ASIMD by default without any flags, please could you run clang -v
?
@picn0113, I did some search, It seems to me you're using Rosetta and there's nothing to do here. You should try to install miniforge3 to get a native build.
numpy % clang -v
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: arm64-apple-darwin20.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compile options: '-Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/Users/*/miniforge3/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c'
clang: numpy/core/src/npymath/npy_math.c
clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.c
clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_complex.c
clang: numpy/core/src/npymath/halffloat.c
In file included from numpy/core/src/npymath/npy_math.c:9:
numpy/core/src/npymath/npy_math_internal.h.src:539:21: warning: incompatible pointer types passing 'npy_longdouble *' (aka 'double *') to parameter of type 'long double *' [-Wincompatible-pointer-types]
return modfl(x, iptr);
^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:394:52: note: passing argument to parameter here
extern long double modfl(long double, long double *);
^
1 warning generated.
llvm-ar: adding 4 object files to build/temp.macosx-11.0-arm64-3.9/libnpymath.a
error: Command "/Users/runner/miniforge3/conda-bld/python-split_1607475479093/_build_env/bin/llvm-ar rcs build/temp.macosx-11.0-arm64-3.9/libnpymath.a build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math.o build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.o build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_complex.o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath/halffloat.o" failed with exit status 127
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: aarch64
Compiler : clang
CPU baseline :
Requested : 'min'
Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD
Flags : none
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : ASIMDHP ASIMDDP
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/qx/xnxcrrlj4p52w9zy976f5prw0000gn/T/pip-req-build-mxqfip55/build/temp.macosx-11.0-arm64-3.9/ccompiler_opt_cache_clib.py
There is no/Users/runner
.
@picn0113, I'm going to dig on it , I have now a remote access to DTK.
llvm-ar: adding 4 object files to build/temp.macosx-11.0-arm64-3.9/libnpymath.a error: Command "/Users/runner/miniforge3/conda-bld/python-split_1607475479093/_build_env/bin/llvm-ar rcs build/temp.macosx-11.0-arm64-3.9/libnpymath.a build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math.o build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.o build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_complex.o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath/halffloat.o" failed with exit status 127
This error caused by default config of conda python build, you can override it via:
export AR=/usr/bin/ar
compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/Users/*/miniforge3/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c'
extra options: '-Werror'
clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd/_simd.dispatch.c
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 16]
SIMD_IMPL_INTRIN_2IMM(shri_u16, vu16, vu16, 16)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:152:1: note: expanded from here
npyv_shri_u16
^
numpy/core/src/common/simd/neon/operators.h:37:49: note: expanded from macro 'npyv_shri_u16'
#define npyv_shri_u16(VEC, C) ((C) == 0 ? VEC : vshrq_n_u16(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:24005:24: note: expanded from macro 'vshrq_n_u16'
__ret = (uint16x8_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 49); \
^ ~~~~
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 16]
SIMD_IMPL_INTRIN_2IMM(shri_s16, vs16, vs16, 16)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:79:1: note: expanded from here
npyv_shri_s16
^
numpy/core/src/common/simd/neon/operators.h:38:49: note: expanded from macro 'npyv_shri_s16'
#define npyv_shri_s16(VEC, C) ((C) == 0 ? VEC : vshrq_n_s16(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:24077:23: note: expanded from macro 'vshrq_n_s16'
__ret = (int16x8_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 33); \
^ ~~~~
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 32]
SIMD_IMPL_INTRIN_2IMM(shri_u32, vu32, vu32, 32)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:32:1: note: expanded from here
npyv_shri_u32
^
numpy/core/src/common/simd/neon/operators.h:39:49: note: expanded from macro 'npyv_shri_u32'
#define npyv_shri_u32(VEC, C) ((C) == 0 ? VEC : vshrq_n_u32(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:23969:24: note: expanded from macro 'vshrq_n_u32'
__ret = (uint32x4_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 50); \
^ ~~~~
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 32]
SIMD_IMPL_INTRIN_2IMM(shri_s32, vs32, vs32, 32)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:189:1: note: expanded from here
npyv_shri_s32
^
numpy/core/src/common/simd/neon/operators.h:40:49: note: expanded from macro 'npyv_shri_s32'
#define npyv_shri_s32(VEC, C) ((C) == 0 ? VEC : vshrq_n_s32(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:24041:23: note: expanded from macro 'vshrq_n_s32'
__ret = (int32x4_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 34); \
^ ~~~~
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 64]
SIMD_IMPL_INTRIN_2IMM(shri_u64, vu64, vu64, 64)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:200:1: note: expanded from here
npyv_shri_u64
^
numpy/core/src/common/simd/neon/operators.h:41:49: note: expanded from macro 'npyv_shri_u64'
#define npyv_shri_u64(VEC, C) ((C) == 0 ? VEC : vshrq_n_u64(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:23987:24: note: expanded from macro 'vshrq_n_u64'
__ret = (uint64x2_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 51); \
^ ~~~~
numpy/core/src/_simd/_simd.dispatch.c.src:306:1: error: argument value 0 is outside the valid range [1, 64]
SIMD_IMPL_INTRIN_2IMM(shri_s64, vs64, vs64, 64)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/_simd/_simd_easyintrin.inc:93:11: note: expanded from macro 'SIMD_IMPL_INTRIN_2IMM'
) npyv_##NAME(arg1.data.IN0, 0); \
^ ~
<scratch space>:185:1: note: expanded from here
npyv_shri_s64
^
numpy/core/src/common/simd/neon/operators.h:42:49: note: expanded from macro 'npyv_shri_s64'
#define npyv_shri_s64(VEC, C) ((C) == 0 ? VEC : vshrq_n_s64(VEC, C))
^ ~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/arm_neon.h:24059:23: note: expanded from macro 'vshrq_n_s64'
__ret = (int64x2_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 35); \
^ ~~~~
6 errors generated.
error: Command "clang -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/*/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/*/miniforge3/include -arch arm64 -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/Users/*/miniforge3/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c build/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd/_simd.dispatch.c -o build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd/_simd.dispatch.o -MMD -MF build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/_simd/_simd.dispatch.o.d -Werror" failed with exit status 1
@picn0113, this another bug in _simd testing unit, you can disable it through build option --simd-test=" "
. there's also another bus error you will face it after completing the build.
..................................................................................................................................................................................F......FF................ [ 48%]
......................................Fatal Python error: Bus error
Current thread 0x0000000104987d40 (most recent call first):
File "/Users/sayed/me/numpy/build/testenv/lib/python3.9/site-packages/numpy/f2py/tests/test_callback.py", line 103 in check_function
File "/Users/sayed/me/numpy/build/testenv/lib/python3.9/site-packages/numpy/f2py/tests/test_callback.py", line 68 in test_all
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/sayed/mambaforge/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
File "/Users/sayed/me/numpy/build/testenv/lib/python3.9/site-packages/numpy/_pytesttester.py", line 209 in __call__
File "/Users/sayed/me/numpy/runtests.py", line 358 in main
File "/Users/sayed/me/numpy/runtests.py", line 642 in <module>
I will release patches to fixing them soon.
Okay. Thank you @seiko2plus.
I get a segfault from _mac_os_check and I'm not even on ARM. This whole macos/brew/compiler/python3 combination keeps biting me everytime whenever I update something.
There are a few PRs linked which are merged, and this is a very early M1 report, so closing. Please open a new issue if it persists.
Steps to reproduce:
Error message:
Python 3.8.2 (default, Oct 2 2020, 10:45:41) [Clang 12.0.0 (clang-1200.0.32.27)] on darwin Type "help", "copyright", "credits" or "license" for more information.
NumPy version 1.21.0.dev0+20201209183119_bffb006 NumPy relaxed strides checking option: True NumPy CPU features: nothing enabled ........................................................................ [ 0%] .......................................................x................ [ 1%] ........................................................................ [ 1%] ..........................x.....F....................................... [ 2%] ........................................................................ [ 2%] ...................sss.................................................. [ 3%] ........................................................................ [ 4%] ........................................................................ [ 4%] .........................x..........x..x..........x..................... [ 5%] ........................................................................ [ 5%] ........................................................................ [ 6%] ...............................................ssss..................... [ 6%] ...........x............................................................ [ 7%] ........................................................................ [ 8%] ........................................................................ [ 8%] ........................................................................ [ 9%] ........................................................................ [ 9%] ........................................................................ [ 10%] ........................................................................ [ 11%] ........................................................................ [ 11%] ........................................................................ [ 12%] ........................................................................ [ 12%] ........................................................................ [ 13%] ........................................................................ [ 13%] ........................................................................ [ 14%] ........................................................................ [ 15%] ........................................................................ [ 15%] ........................................................................ [ 16%] .........xx...........................................Fatal Python error: Segmentation fault
no gdb