==20969== Memcheck, a memory error detector ==20969== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==20969== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info ==20969== Command: /usr/local/bin/python3.8.5 /specific/a/netapp1/vol/vol0/courses/0368-2161/2021a/tmp/pycharm_project_HW2/Students_sol/HW2_205553753_205684426/kmeans_pp.py 2 6 2 10 /specific/a/netapp1/vol/vol0/courses/0368-2161/2021a/tmp/pycharm_project_HW2/input_files/input_6_2.txt ==20969== --20969-- Valgrind options: --20969-- -v --20969-- --suppressions=/specific/a/netapp1/vol/vol0/courses/0368-2161/2021a/tmp/pycharm_project_HW2/valgrind-python.supp --20969-- Contents of /proc/version: --20969-- Linux version 4.9.5-64-net1 (root@sys64-dev) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #1 SMP PREEMPT Wed Jan 25 21:01:00 IST 2017 --20969-- Arch and hwcaps: AMD64, amd64-cx16-rdtscp-sse3 --20969-- Page sizes: currently 4096, max supported 4096 --20969-- Valgrind library directory: /usr/lib/valgrind --20969-- Reading syms from /bin/bash --20969-- Considering /bin/bash .. --20969-- .. CRC mismatch (computed f0cec33e wanted fd1d45a3) --20969-- object doesn't have a symbol table --20969-- Reading syms from /lib/x86_64-linux-gnu/ld-2.19.so --20969-- Considering /lib/x86_64-linux-gnu/ld-2.19.so .. --20969-- .. CRC mismatch (computed 4cbae35e wanted 8d683c31) --20969-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so .. --20969-- .. CRC is valid --20969-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux --20969-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --20969-- .. CRC mismatch (computed 37cdde19 wanted adc367dd) --20969-- object doesn't have a symbol table --20969-- object doesn't have a dynamic symbol table --20969-- Scheduler: using generic scheduler lock implementation. --20969-- Reading suppressions file: /specific/a/netapp1/vol/vol0/courses/0368-2161/2021a/tmp/pycharm_project_HW2/valgrind-python.supp --20969-- Reading suppressions file: /usr/lib/valgrind/default.supp ==20969== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-20969-by-itayitzhak-on-nova ==20969== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-20969-by-itayitzhak-on-nova ==20969== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-20969-by-itayitzhak-on-nova ==20969== ==20969== TO CONTROL THIS PROCESS USING vgdb (which you probably ==20969== don't want to do, unless you know exactly what you're doing, ==20969== or are doing some strange experiment): ==20969== /usr/lib/valgrind/../../bin/vgdb --pid=20969 ...command... ==20969== ==20969== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==20969== /path/to/gdb /usr/local/bin/python3.8.5 ==20969== and then give GDB the following command ==20969== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=20969 ==20969== --pid is optional if only one valgrind process is running ==20969== --20969-- REDIR: 0x4019ca0 (strlen) redirected to 0x38068331 (???) --20969-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so --20969-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --20969-- .. CRC mismatch (computed 329d6860 wanted c0186920) --20969-- object doesn't have a symbol table --20969-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so --20969-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --20969-- .. CRC mismatch (computed 1fb85af8 wanted 2e9e3c16) --20969-- object doesn't have a symbol table ==20969== WARNING: new redirection conflicts with existing -- ignoring it --20969-- old: 0x04019ca0 (strlen ) R-> (0000.0) 0x38068331 ??? --20969-- new: 0x04019ca0 (strlen ) R-> (2007.0) 0x04c2e1a0 strlen --20969-- REDIR: 0x4019a50 (index) redirected to 0x4c2dd50 (index) --20969-- REDIR: 0x4019c70 (strcmp) redirected to 0x4c2f2f0 (strcmp) --20969-- REDIR: 0x401a9c0 (mempcpy) redirected to 0x4c31da0 (mempcpy) --20969-- Reading syms from /lib/x86_64-linux-gnu/libtinfo.so.5.9 --20969-- Considering /lib/x86_64-linux-gnu/libtinfo.so.5.9 .. --20969-- .. CRC mismatch (computed a766b3f6 wanted 5ffaddcc) --20969-- object doesn't have a symbol table --20969-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.19.so --20969-- Considering /lib/x86_64-linux-gnu/libdl-2.19.so .. --20969-- .. CRC mismatch (computed c1315e8c wanted 37097b60) --20969-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.19.so .. --20969-- .. CRC is valid --20969-- Reading syms from /lib/x86_64-linux-gnu/libc-2.19.so --20969-- Considering /lib/x86_64-linux-gnu/libc-2.19.so .. --20969-- .. CRC mismatch (computed 2b8f2acf wanted 60636809) --20969-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so .. --20969-- .. CRC is valid --20969-- REDIR: 0x52f1ba0 (strcasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x52f3e90 (strncasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x52f1370 (memcpy@GLIBC_2.2.5) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x52ef600 (rindex) redirected to 0x4c2da30 (rindex) --20969-- REDIR: 0x52ebef0 (__GI_strcmp) redirected to 0x4c2f200 (__GI_strcmp) --20969-- REDIR: 0x52ed900 (strlen) redirected to 0x4c2e0e0 (strlen) --20969-- REDIR: 0x52edd70 (__GI_strncmp) redirected to 0x4c2e930 (__GI_strncmp) --20969-- REDIR: 0x52ebc90 (__GI_strchr) redirected to 0x4c2db90 (__GI_strchr) --20969-- REDIR: 0x52f1400 (memset) redirected to 0x4c31350 (memset) --20969-- REDIR: 0x52f65c0 (__GI_memcpy) redirected to 0x4c2fc90 (__GI_memcpy) --20969-- REDIR: 0x52ed340 (strcpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x53019d0 (__strcpy_sse2_unaligned) redirected to 0x4c2e1c0 (strcpy) --20969-- REDIR: 0x52edd20 (strncmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x53a62f0 (__strncmp_ssse3) redirected to 0x4c2e8c0 (strncmp) --20969-- REDIR: 0xffffffffff600400 (???) redirected to 0x3806831d (???) --20969-- REDIR: 0x52f0250 (__GI_strstr) redirected to 0x4c32030 (__strstr_sse2) --20969-- REDIR: 0x52f0a50 (memchr) redirected to 0x4c2f390 (memchr) --20969-- REDIR: 0x52f86f0 (rawmemchr) redirected to 0x4c319f0 (rawmemchr) --20969-- REDIR: 0x52ebeb0 (strcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x52fcb60 (__strcmp_sse2_unaligned) redirected to 0x4c2f1b0 (strcmp) --20969-- REDIR: 0x52edac0 (strnlen) redirected to 0x4c2e080 (strnlen) --20969-- REDIR: 0x52f8900 (strchrnul) redirected to 0x4c319b0 (strchrnul) --20969-- REDIR: 0x536db90 (__strcpy_chk) redirected to 0x4c31a30 (__strcpy_chk) --20969-- REDIR: 0x52ebc60 (index) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0xffffffffff600000 (???) redirected to 0x38068313 (???) --20969-- REDIR: 0x52f6570 (memcpy@@GLIBC_2.14) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --20969-- REDIR: 0x52fce10 (__memcpy_sse2_unaligned) redirected to 0x4c2f6b0 (memcpy@@GLIBC_2.14) --20969-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so --20969-- Considering /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so .. --20969-- .. CRC mismatch (computed 8f42376f wanted a2433387) --20969-- Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so .. --20969-- .. CRC is valid --20969-- REDIR: 0x401ab10 (stpcpy) redirected to 0x4c31120 (stpcpy) Traceback (most recent call last): File "/specific/a/netapp1/vol/vol0/courses/0368-2161/2021a/tmp/pycharm_project_HW2/Students_sol/HW2_205553753_205684426/kmeans_pp.py", line 4, in import mykmeanssp as c_kmeans ModuleNotFoundError: No module named 'mykmeanssp' --20969-- Discarding syms at 0x5a9f5c0-0x5aa01b1 in /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so due to munmap() ==20969== ==20969== HEAP SUMMARY: ==20969== in use at exit: 0 bytes in 0 blocks ==20969== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==20969== ==20969== All heap blocks were freed -- no leaks are possible ==20969== ==20969== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==20969== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)