Skip to content

Instantly share code, notes, and snippets.

@gmarkall
Created October 14, 2021 19:52
Show Gist options
  • Save gmarkall/353d7e164d39adf13822a3ec612fd048 to your computer and use it in GitHub Desktop.
Save gmarkall/353d7e164d39adf13822a3ec612fd048 to your computer and use it in GitHub Desktop.
Running test_ufuncs under valgrind with NumPy 1.21 and Numba PR #7483
$ PYTHONMALLOC=malloc valgrind-numba python -m numba.runtests numba.tests.test_ufuncs
==7578== Memcheck, a memory error detector
==7578== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7578== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==7578== Command: python -m numba.runtests numba.tests.test_ufuncs
==7578==
==7579== Warning: invalid file descriptor 1024 in syscall close()
==7579== Warning: invalid file descriptor 1025 in syscall close()
==7579== Warning: invalid file descriptor 1026 in syscall close()
==7579== Warning: invalid file descriptor 1027 in syscall close()
==7579== Use --log-fd=<number> to select an alternative log fd.
==7579== Warning: invalid file descriptor 1028 in syscall close()
==7579== Warning: invalid file descriptor 1029 in syscall close()
==7580== Warning: invalid file descriptor 1024 in syscall close()
==7580== Warning: invalid file descriptor 1025 in syscall close()
==7580== Warning: invalid file descriptor 1026 in syscall close()
==7580== Warning: invalid file descriptor 1027 in syscall close()
==7580== Use --log-fd=<number> to select an alternative log fd.
==7580== Warning: invalid file descriptor 1028 in syscall close()
==7580== Warning: invalid file descriptor 1029 in syscall close()
==7581== Warning: invalid file descriptor 1024 in syscall close()
==7581== Warning: invalid file descriptor 1025 in syscall close()
==7581== Warning: invalid file descriptor 1026 in syscall close()
==7581== Warning: invalid file descriptor 1027 in syscall close()
==7581== Use --log-fd=<number> to select an alternative log fd.
==7581== Warning: invalid file descriptor 1028 in syscall close()
==7581== Warning: invalid file descriptor 1029 in syscall close()
==7583== Warning: invalid file descriptor 1024 in syscall close()
==7583== Warning: invalid file descriptor 1025 in syscall close()
==7583== Warning: invalid file descriptor 1026 in syscall close()
==7583== Warning: invalid file descriptor 1027 in syscall close()
==7583== Use --log-fd=<number> to select an alternative log fd.
==7583== Warning: invalid file descriptor 1028 in syscall close()
==7583== Warning: invalid file descriptor 1029 in syscall close()
NUMBA_DEFAULT_NUM_THREADS
==7578== Conditional jump or move depends on uninitialised value(s)
==7578== at 0xF51DA00: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578== by 0x421F3C4: PyInit__mklinit (in /home/gmarkall/miniconda3/envs/numbanp121/lib/python3.9/site-packages/mkl/_mklinit.cpython-39-x86_64-linux-gnu.so)
==7578==
==7578== Conditional jump or move depends on uninitialised value(s)
==7578== at 0xF51DA16: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578== by 0x421F3C4: PyInit__mklinit (in /home/gmarkall/miniconda3/envs/numbanp121/lib/python3.9/site-packages/mkl/_mklinit.cpython-39-x86_64-linux-gnu.so)
==7578==
==7578== Conditional jump or move depends on uninitialised value(s)
==7578== at 0x4C39383: __strncpy_sse2_unaligned (vg_replace_strmem.c:567)
==7578== by 0xF51DA95: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578==
==7578== Conditional jump or move depends on uninitialised value(s)
==7578== at 0x4C393C9: __strncpy_sse2_unaligned (vg_replace_strmem.c:567)
==7578== by 0xF51DA95: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578==
==7578== Conditional jump or move depends on uninitialised value(s)
==7578== at 0x4C3940D: __strncpy_sse2_unaligned (vg_replace_strmem.c:567)
==7578== by 0xF51DA95: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578==
==7578== Use of uninitialised value of size 8
==7578== at 0xF51DAA4: _INTERNALf40e91f8::__kmp::init_dl_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0xF51D95A: __kmp::init_dynamic_link_data() (in /home/gmarkall/miniconda3/envs/numbanp121/lib/libiomp5.so)
==7578== by 0x40108D2: call_init (dl-init.c:72)
==7578== by 0x40108D2: _dl_init (dl-init.c:119)
==7578== by 0x401539E: dl_open_worker (dl-open.c:522)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x4014969: _dl_open (dl-open.c:605)
==7578== by 0x4E44F95: dlopen_doit (dlopen.c:66)
==7578== by 0x596F1EE: _dl_catch_exception (dl-error-skeleton.c:196)
==7578== by 0x596F27E: _dl_catch_error (dl-error-skeleton.c:215)
==7578== by 0x4E45744: _dlerror_run (dlerror.c:162)
==7578== by 0x4E45050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==7578== by 0x421F3C4: PyInit__mklinit (in /home/gmarkall/miniconda3/envs/numbanp121/lib/python3.9/site-packages/mkl/_mklinit.cpython-39-x86_64-linux-gnu.so)
==7578==
==7600== Warning: invalid file descriptor 1024 in syscall close()
==7600== Warning: invalid file descriptor 1025 in syscall close()
==7600== Warning: invalid file descriptor 1026 in syscall close()
==7600== Warning: invalid file descriptor 1027 in syscall close()
==7600== Use --log-fd=<number> to select an alternative log fd.
==7600== Warning: invalid file descriptor 1028 in syscall close()
==7600== Warning: invalid file descriptor 1029 in syscall close()
==7601== Warning: invalid file descriptor 1024 in syscall close()
==7601== Warning: invalid file descriptor 1025 in syscall close()
==7601== Warning: invalid file descriptor 1026 in syscall close()
==7601== Warning: invalid file descriptor 1027 in syscall close()
==7601== Use --log-fd=<number> to select an alternative log fd.
==7601== Warning: invalid file descriptor 1028 in syscall close()
==7601== Warning: invalid file descriptor 1029 in syscall close()
==7603== Warning: invalid file descriptor 1024 in syscall close()
==7603== Warning: invalid file descriptor 1025 in syscall close()
==7603== Warning: invalid file descriptor 1026 in syscall close()
==7603== Warning: invalid file descriptor 1027 in syscall close()
==7603== Use --log-fd=<number> to select an alternative log fd.
==7603== Warning: invalid file descriptor 1028 in syscall close()
==7603== Warning: invalid file descriptor 1029 in syscall close()
==7606== Warning: invalid file descriptor 1024 in syscall close()
==7606== Warning: invalid file descriptor 1025 in syscall close()
==7606== Warning: invalid file descriptor 1026 in syscall close()
==7606== Warning: invalid file descriptor 1027 in syscall close()
==7606== Use --log-fd=<number> to select an alternative log fd.
==7606== Warning: invalid file descriptor 1028 in syscall close()
==7606== Warning: invalid file descriptor 1029 in syscall close()
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 4118 tests in 12052.201s
OK
==7578==
==7578== HEAP SUMMARY:
==7578== in use at exit: 1,368,102,683 bytes in 16,982,050 blocks
==7578== total heap usage: 411,896,506 allocs, 394,914,456 frees, 64,118,312,690 bytes allocated
==7578==
==7578== LEAK SUMMARY:
==7578== definitely lost: 141,582 bytes in 1,180 blocks
==7578== indirectly lost: 1,870,438 bytes in 9,066 blocks
==7578== possibly lost: 78,444,516 bytes in 585,563 blocks
==7578== still reachable: 1,287,641,050 bytes in 16,386,237 blocks
==7578== of which reachable via heuristic:
==7578== newarray : 6,205 bytes in 53 blocks
==7578== multipleinheritance: 1,022,600 bytes in 1,205 blocks
==7578== suppressed: 5,097 bytes in 4 blocks
==7578== Rerun with --leak-check=full to see details of leaked memory
==7578==
==7578== Use --track-origins=yes to see where uninitialised values come from
==7578== For lists of detected and suppressed errors, rerun with: -s
==7578== ERROR SUMMARY: 88 errors from 6 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment