Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:/opt/test_c# valgrind -v --show-leak-kinds=all --tool=memcheck --leak-check=full --track-origins=yes sox __input.wav __output.wav
- ==2312== Memcheck, a memory error detector
- ==2312== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==2312== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
- ==2312== Command: sox __input.wav __output.wav
- ==2312==
- --2312-- Valgrind options:
- --2312-- -v
- --2312-- --show-leak-kinds=all
- --2312-- --tool=memcheck
- --2312-- --leak-check=full
- --2312-- --track-origins=yes
- --2312-- Contents of /proc/version:
- --2312-- Linux version 3.16.0-31-generic (buildd@akateko) (gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6) ) #41-Ubuntu SMP Tue Feb 10 15:24:46 UTC 2015
- --2312-- Arch and hwcaps: X86, LittleEndian, x86-mmxext-sse1-sse2
- --2312-- Page sizes: currently 4096, max supported 4096
- --2312-- Valgrind library directory: /usr/lib/valgrind
- --2312-- Reading syms from /lib/i386-linux-gnu/ld-2.19.so
- --2312-- Considering /lib/i386-linux-gnu/ld-2.19.so ..
- --2312-- .. CRC mismatch (computed 645c3744 wanted ca32cc1b)
- --2312-- Considering /usr/lib/debug/lib/i386-linux-gnu/ld-2.19.so ..
- --2312-- .. CRC is valid
- --2312-- Reading syms from /usr/bin/sox
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux
- --2312-- Considering /usr/lib/valgrind/memcheck-x86-linux ..
- --2312-- .. CRC mismatch (computed c8c3d324 wanted 8c55ffe2)
- --2312-- object doesn't have a symbol table
- --2312-- object doesn't have a dynamic symbol table
- --2312-- Scheduler: using generic scheduler lock implementation.
- --2312-- Reading suppressions file: /usr/lib/valgrind/default.supp
- ==2312== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-2312-by-root-on-???
- ==2312== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-2312-by-root-on-???
- ==2312== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-2312-by-root-on-???
- ==2312==
- ==2312== TO CONTROL THIS PROCESS USING vgdb (which you probably
- ==2312== don't want to do, unless you know exactly what you're doing,
- ==2312== or are doing some strange experiment):
- ==2312== /usr/lib/valgrind/../../bin/vgdb --pid=2312 ...command...
- ==2312==
- ==2312== TO DEBUG THIS PROCESS USING GDB: start GDB like this
- ==2312== /path/to/gdb sox
- ==2312== and then give GDB the following command
- ==2312== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=2312
- ==2312== --pid is optional if only one valgrind process is running
- ==2312==
- --2312-- REDIR: 0x4017e80 (ld-linux.so.2:strlen) redirected to 0x38063622 (???)
- --2312-- REDIR: 0x4017c90 (ld-linux.so.2:index) redirected to 0x380635fd (???)
- --2312-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so
- --2312-- Considering /usr/lib/valgrind/vgpreload_core-x86-linux.so ..
- --2312-- .. CRC mismatch (computed 6f65b8f8 wanted 9003a50e)
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so
- --2312-- Considering /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so ..
- --2312-- .. CRC mismatch (computed 7434b5ae wanted ce5d33a5)
- --2312-- object doesn't have a symbol table
- ==2312== WARNING: new redirection conflicts with existing -- ignoring it
- --2312-- old: 0x04017e80 (strlen ) R-> (0000.0) 0x38063622 ???
- --2312-- new: 0x04017e80 (strlen ) R-> (2007.0) 0x0402d400 strlen
- --2312-- Reading syms from /usr/lib/i386-linux-gnu/libsox.so.2.0.1
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /lib/i386-linux-gnu/libm-2.19.so
- --2312-- Considering /lib/i386-linux-gnu/libm-2.19.so ..
- --2312-- .. CRC mismatch (computed f22a1de4 wanted 35513d2c)
- --2312-- Considering /usr/lib/debug/lib/i386-linux-gnu/libm-2.19.so ..
- --2312-- .. CRC is valid
- --2312-- Reading syms from /lib/i386-linux-gnu/libpthread-2.19.so
- --2312-- Considering /lib/i386-linux-gnu/libpthread-2.19.so ..
- --2312-- .. CRC mismatch (computed d46befc4 wanted 97a39524)
- --2312-- Considering /usr/lib/debug/lib/i386-linux-gnu/libpthread-2.19.so ..
- --2312-- .. CRC is valid
- --2312-- Reading syms from /lib/i386-linux-gnu/libc-2.19.so
- --2312-- Considering /lib/i386-linux-gnu/libc-2.19.so ..
- --2312-- .. CRC mismatch (computed 0aeb3a68 wanted 015e9038)
- --2312-- Considering /usr/lib/debug/lib/i386-linux-gnu/libc-2.19.so ..
- --2312-- .. CRC is valid
- --2312-- Reading syms from /usr/lib/i386-linux-gnu/libltdl.so.7.3.0
- --2312-- Considering /usr/lib/i386-linux-gnu/libltdl.so.7.3.0 ..
- --2312-- .. CRC mismatch (computed be67177d wanted 55870bae)
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /lib/i386-linux-gnu/libpng12.so.0.51.0
- --2312-- Considering /lib/i386-linux-gnu/libpng12.so.0.51.0 ..
- --2312-- .. CRC mismatch (computed ecfef107 wanted 4f1e7951)
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /lib/i386-linux-gnu/libz.so.1.2.8
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /usr/lib/i386-linux-gnu/libmagic.so.1.0.0
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /usr/lib/i386-linux-gnu/libgomp.so.1.0.0
- --2312-- Considering /usr/lib/i386-linux-gnu/libgomp.so.1.0.0 ..
- --2312-- .. CRC mismatch (computed f1170075 wanted 45e02ef9)
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /usr/lib/i386-linux-gnu/libgsm.so.1.0.12
- --2312-- object doesn't have a symbol table
- --2312-- Reading syms from /lib/i386-linux-gnu/libdl-2.19.so
- --2312-- Considering /lib/i386-linux-gnu/libdl-2.19.so ..
- --2312-- .. CRC mismatch (computed c2dc2589 wanted 1fc8fab6)
- --2312-- Considering /usr/lib/debug/lib/i386-linux-gnu/libdl-2.19.so ..
- --2312-- .. CRC is valid
- --2312-- REDIR: 0x41aec60 (libc.so.6:strnlen) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41b0c10 (libc.so.6:strncasecmp) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41b6980 (libc.so.6:memrchr) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41c9530 (libc.so.6:wcslen) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41af9e0 (libc.so.6:strstr) redirected to 0x4031450 (strstr)
- --2312-- REDIR: 0x41aee10 (libc.so.6:__GI_strrchr) redirected to 0x402cdc0 (__GI_strrchr)
- --2312-- REDIR: 0x41aeba0 (libc.so.6:__GI_strlen) redirected to 0x402d380 (__GI_strlen)
- --2312-- REDIR: 0x41aa550 (libc.so.6:malloc) redirected to 0x402a110 (malloc)
- --2312-- REDIR: 0x41aab00 (libc.so.6:free) redirected to 0x402b2f0 (free)
- --2312-- REDIR: 0x41b06e0 (libc.so.6:memset) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x425f3a0 (libc.so.6:__memset_sse2) redirected to 0x40307b0 (memset)
- --2312-- REDIR: 0x41aedc0 (libc.so.6:rindex) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41c7ef0 (libc.so.6:__strrchr_sse2_bsf) redirected to 0x402cd90 (rindex)
- --2312-- REDIR: 0x41aeb50 (libc.so.6:strlen) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41b6cf0 (libc.so.6:__strlen_sse2_bsf) redirected to 0x402d360 (strlen)
- --2312-- REDIR: 0x41b0bb0 (libc.so.6:strcasecmp) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x426f8f0 (libc.so.6:__strcasecmp_ssse3) redirected to 0x402dd80 (strcasecmp)
- --2312-- REDIR: 0x41ae400 (libc.so.6:strcmp) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x426ca90 (libc.so.6:__strcmp_ssse3) redirected to 0x402e4e0 (strcmp)
- --2312-- REDIR: 0x41aabb0 (libc.so.6:realloc) redirected to 0x402c210 (realloc)
- --2312-- REDIR: 0x41ae4d0 (libc.so.6:strcpy) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41b6eb0 (libc.so.6:__strcpy_ssse3) redirected to 0x402d440 (strcpy)
- --2312-- REDIR: 0x41adfe0 (libc.so.6:strcat) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41c2470 (libc.so.6:__strcat_ssse3) redirected to 0x402cff0 (strcat)
- --2312-- REDIR: 0x41b2b50 (libc.so.6:strchrnul) redirected to 0x4030e50 (strchrnul)
- --2312-- REDIR: 0x41b02f0 (libc.so.6:bcmp) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x4276cf0 (libc.so.6:__memcmp_ssse3) redirected to 0x4030080 (bcmp)
- --2312-- REDIR: 0x41ae1f0 (libc.so.6:index) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x41c7de0 (libc.so.6:__strchr_sse2_bsf) redirected to 0x402cfb0 (index)
- --2312-- REDIR: 0x4271e00 (libc.so.6:__strncasecmp_ssse3) redirected to 0x402dea0 (strncasecmp)
- --2312-- REDIR: 0x41b0dd0 (libc.so.6:__GI_memcpy) redirected to 0x402f040 (__GI_memcpy)
- --2312-- REDIR: 0x41aed00 (libc.so.6:strncmp) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x426df00 (libc.so.6:__strncmp_ssse3) redirected to 0x402db40 (strncmp)
- --2312-- REDIR: 0x41b0d70 (libc.so.6:memcpy) redirected to 0x4024590 (_vgnU_ifunc_wrapper)
- --2312-- REDIR: 0x42604b0 (libc.so.6:__memcpy_ssse3) redirected to 0x402ed40 (memcpy)
- ==2312==
- ==2312== HEAP SUMMARY:
- ==2312== in use at exit: 4,407 bytes in 6 blocks
- ==2312== total heap usage: 2,207 allocs, 2,201 frees, 70,666,526 bytes allocated
- ==2312==
- ==2312== Searching for pointers to 6 not-freed blocks
- ==2312== Checked 125,920 bytes
- ==2312==
- ==2312== 4 bytes in 1 blocks are still reachable in loss record 1 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x435BE11: ??? (in /usr/lib/i386-linux-gnu/libgomp.so.1.0.0)
- ==2312== by 0x4366C53: ??? (in /usr/lib/i386-linux-gnu/libgomp.so.1.0.0)
- ==2312== by 0x435A129: ??? (in /usr/lib/i386-linux-gnu/libgomp.so.1.0.0)
- ==2312== by 0x400ED26: call_init.part.0 (dl-init.c:78)
- ==2312== by 0x400EE13: call_init (dl-init.c:36)
- ==2312== by 0x400EE13: _dl_init (dl-init.c:126)
- ==2312== by 0x400104E: ??? (in /lib/i386-linux-gnu/ld-2.19.so)
- ==2312==
- ==2312== 559 bytes in 1 blocks are still reachable in loss record 2 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x402C328: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x40592F6: lsx_realloc (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x40669F0: lsx_usage_lines (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x406EACE: lsx_gain_effect_fn (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x4066769: sox_find_effect (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x8051C4B: ??? (in /usr/bin/sox)
- ==2312== by 0x8049E30: ??? (in /usr/bin/sox)
- ==2312== by 0x414DA82: (below main) (libc-start.c:287)
- ==2312==
- ==2312== 684 bytes in 1 blocks are still reachable in loss record 3 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x402C328: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x40592F6: lsx_realloc (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x40669F0: lsx_usage_lines (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x408E47E: lsx_vad_effect_fn (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x4066769: sox_find_effect (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x8051C4B: ??? (in /usr/bin/sox)
- ==2312== by 0x8049E30: ??? (in /usr/bin/sox)
- ==2312== by 0x414DA82: (below main) (libc-start.c:287)
- ==2312==
- ==2312== 775 bytes in 1 blocks are still reachable in loss record 4 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x402C328: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x40592F6: lsx_realloc (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x40669F0: lsx_usage_lines (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x407EF3E: lsx_rate_effect_fn (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x4066769: sox_find_effect (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x8051C4B: ??? (in /usr/bin/sox)
- ==2312== by 0x8049E30: ??? (in /usr/bin/sox)
- ==2312== by 0x414DA82: (below main) (libc-start.c:287)
- ==2312==
- ==2312== 988 bytes in 1 blocks are still reachable in loss record 5 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x402C328: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x40592F6: lsx_realloc (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x40669F0: lsx_usage_lines (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x409213E: lsx_spectrogram_effect_fn (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x4066769: sox_find_effect (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x8051C4B: ??? (in /usr/bin/sox)
- ==2312== by 0x8049E30: ??? (in /usr/bin/sox)
- ==2312== by 0x414DA82: (below main) (libc-start.c:287)
- ==2312==
- ==2312== 1,397 bytes in 1 blocks are still reachable in loss record 6 of 6
- ==2312== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x402C328: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==2312== by 0x40592F6: lsx_realloc (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x40669F0: lsx_usage_lines (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x406DBDE: lsx_flanger_effect_fn (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x4066769: sox_find_effect (in /usr/lib/i386-linux-gnu/libsox.so.2.0.1)
- ==2312== by 0x8051C4B: ??? (in /usr/bin/sox)
- ==2312== by 0x8049E30: ??? (in /usr/bin/sox)
- ==2312== by 0x414DA82: (below main) (libc-start.c:287)
- ==2312==
- ==2312== LEAK SUMMARY:
- ==2312== definitely lost: 0 bytes in 0 blocks
- ==2312== indirectly lost: 0 bytes in 0 blocks
- ==2312== possibly lost: 0 bytes in 0 blocks
- ==2312== still reachable: 4,407 bytes in 6 blocks
- ==2312== suppressed: 0 bytes in 0 blocks
- ==2312==
- ==2312== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
- ==2312== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement