Clion valgrind功能未显示其结果

时间:2019-03-24 14:40:38

标签: c ubuntu valgrind clion

我已经安装valgrind,如以下Ubuntu 18.04 LTS日志所示。然后,将其脚本路径放入Clion,但是每当我按下run-with-valgrind图标时,valgrind选项卡的内部都是空的。

soner@ubuntu:~$ sudo apt-get install valgrind
[sudo] password for soner: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  valgrind-dbg valgrind-mpi kcachegrind alleyoop valkyrie
The following NEW packages will be installed:
  valgrind
0 upgraded, 1 newly installed, 0 to remove and 150 not upgraded.
Need to get 14.3 MB of archives.
After this operation, 74.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 valgrind amd64 1:3.13.0-2ubuntu2.1 [14.3 MB]
Fetched 14.3 MB in 5s (2,707 kB/s)                     
Selecting previously unselected package valgrind.
(Reading database ... 130052 files and directories currently installed.)
Preparing to unpack .../valgrind_1%3a3.13.0-2ubuntu2.1_amd64.deb ...
Unpacking valgrind (1:3.13.0-2ubuntu2.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up valgrind (1:3.13.0-2ubuntu2.1) ...
soner@ubuntu:~$ dpkg --listfiles valgrind 
/.
/usr
/usr/bin
/usr/bin/callgrind_annotate
/usr/bin/callgrind_control
/usr/bin/cg_annotate
/usr/bin/cg_diff
/usr/bin/cg_merge
/usr/bin/ms_print
/usr/bin/valgrind
/usr/bin/valgrind-di-server
/usr/bin/valgrind-listener
/usr/bin/valgrind.bin
/usr/bin/vgdb
/usr/include
/usr/include/valgrind
/usr/include/valgrind/callgrind.h
/usr/include/valgrind/config.h
/usr/include/valgrind/drd.h
/usr/include/valgrind/helgrind.h
/usr/include/valgrind/libvex.h
/usr/include/valgrind/libvex_basictypes.h
/usr/include/valgrind/libvex_emnote.h
/usr/include/valgrind/libvex_guest_amd64.h
/usr/include/valgrind/libvex_guest_arm.h
/usr/include/valgrind/libvex_guest_arm64.h
/usr/include/valgrind/libvex_guest_mips32.h
/usr/include/valgrind/libvex_guest_mips64.h
/usr/include/valgrind/libvex_guest_offsets.h
/usr/include/valgrind/libvex_guest_ppc32.h
/usr/include/valgrind/libvex_guest_ppc64.h
/usr/include/valgrind/libvex_guest_s390x.h
/usr/include/valgrind/libvex_guest_x86.h
/usr/include/valgrind/libvex_ir.h
/usr/include/valgrind/libvex_s390x_common.h
/usr/include/valgrind/libvex_trc_values.h
/usr/include/valgrind/memcheck.h
/usr/include/valgrind/pub_tool_addrinfo.h
/usr/include/valgrind/pub_tool_aspacehl.h
/usr/include/valgrind/pub_tool_aspacemgr.h
/usr/include/valgrind/pub_tool_basics.h
/usr/include/valgrind/pub_tool_basics_asm.h
/usr/include/valgrind/pub_tool_clientstate.h
/usr/include/valgrind/pub_tool_clreq.h
/usr/include/valgrind/pub_tool_debuginfo.h
/usr/include/valgrind/pub_tool_deduppoolalloc.h
/usr/include/valgrind/pub_tool_errormgr.h
/usr/include/valgrind/pub_tool_execontext.h
/usr/include/valgrind/pub_tool_gdbserver.h
/usr/include/valgrind/pub_tool_guest.h
/usr/include/valgrind/pub_tool_hashtable.h
/usr/include/valgrind/pub_tool_libcassert.h
/usr/include/valgrind/pub_tool_libcbase.h
/usr/include/valgrind/pub_tool_libcfile.h
/usr/include/valgrind/pub_tool_libcprint.h
/usr/include/valgrind/pub_tool_libcproc.h
/usr/include/valgrind/pub_tool_libcsetjmp.h
/usr/include/valgrind/pub_tool_libcsignal.h
/usr/include/valgrind/pub_tool_machine.h
/usr/include/valgrind/pub_tool_mallocfree.h
/usr/include/valgrind/pub_tool_options.h
/usr/include/valgrind/pub_tool_oset.h
/usr/include/valgrind/pub_tool_poolalloc.h
/usr/include/valgrind/pub_tool_rangemap.h
/usr/include/valgrind/pub_tool_redir.h
/usr/include/valgrind/pub_tool_replacemalloc.h
/usr/include/valgrind/pub_tool_seqmatch.h
/usr/include/valgrind/pub_tool_signals.h
/usr/include/valgrind/pub_tool_sparsewa.h
/usr/include/valgrind/pub_tool_stacktrace.h
/usr/include/valgrind/pub_tool_threadstate.h
/usr/include/valgrind/pub_tool_tooliface.h
/usr/include/valgrind/pub_tool_transtab.h
/usr/include/valgrind/pub_tool_vki.h
/usr/include/valgrind/pub_tool_vkiscnums.h
/usr/include/valgrind/pub_tool_vkiscnums_asm.h
/usr/include/valgrind/pub_tool_wordfm.h
/usr/include/valgrind/pub_tool_xarray.h
/usr/include/valgrind/pub_tool_xtmemory.h
/usr/include/valgrind/pub_tool_xtree.h
/usr/include/valgrind/valgrind.h
/usr/include/valgrind/vki
/usr/include/valgrind/vki/vki-amd64-linux.h
/usr/include/valgrind/vki/vki-arm-linux.h
/usr/include/valgrind/vki/vki-arm64-linux.h
/usr/include/valgrind/vki/vki-darwin.h
/usr/include/valgrind/vki/vki-linux-drm.h
/usr/include/valgrind/vki/vki-linux.h
/usr/include/valgrind/vki/vki-mips32-linux.h
/usr/include/valgrind/vki/vki-mips64-linux.h
/usr/include/valgrind/vki/vki-posixtypes-amd64-linux.h
/usr/include/valgrind/vki/vki-posixtypes-arm-linux.h
/usr/include/valgrind/vki/vki-posixtypes-arm64-linux.h
/usr/include/valgrind/vki/vki-posixtypes-mips32-linux.h
/usr/include/valgrind/vki/vki-posixtypes-mips64-linux.h
/usr/include/valgrind/vki/vki-posixtypes-ppc32-linux.h
/usr/include/valgrind/vki/vki-posixtypes-ppc64-linux.h
/usr/include/valgrind/vki/vki-posixtypes-s390x-linux.h
/usr/include/valgrind/vki/vki-posixtypes-x86-linux.h
/usr/include/valgrind/vki/vki-ppc32-linux.h
/usr/include/valgrind/vki/vki-ppc64-linux.h
/usr/include/valgrind/vki/vki-s390x-linux.h
/usr/include/valgrind/vki/vki-scnums-amd64-linux.h
/usr/include/valgrind/vki/vki-scnums-arm-linux.h
/usr/include/valgrind/vki/vki-scnums-arm64-linux.h
/usr/include/valgrind/vki/vki-scnums-darwin.h
/usr/include/valgrind/vki/vki-scnums-mips32-linux.h
/usr/include/valgrind/vki/vki-scnums-mips64-linux.h
/usr/include/valgrind/vki/vki-scnums-ppc32-linux.h
/usr/include/valgrind/vki/vki-scnums-ppc64-linux.h
/usr/include/valgrind/vki/vki-scnums-s390x-linux.h
/usr/include/valgrind/vki/vki-scnums-solaris.h
/usr/include/valgrind/vki/vki-scnums-x86-linux.h
/usr/include/valgrind/vki/vki-solaris-repcache.h
/usr/include/valgrind/vki/vki-solaris.h
/usr/include/valgrind/vki/vki-x86-linux.h
/usr/include/valgrind/vki/vki-xen-domctl.h
/usr/include/valgrind/vki/vki-xen-evtchn.h
/usr/include/valgrind/vki/vki-xen-gnttab.h
/usr/include/valgrind/vki/vki-xen-hvm.h
/usr/include/valgrind/vki/vki-xen-memory.h
/usr/include/valgrind/vki/vki-xen-mmuext.h
/usr/include/valgrind/vki/vki-xen-physdev.h
/usr/include/valgrind/vki/vki-xen-schedop.h
/usr/include/valgrind/vki/vki-xen-sysctl.h
/usr/include/valgrind/vki/vki-xen-tmem.h
/usr/include/valgrind/vki/vki-xen-version.h
/usr/include/valgrind/vki/vki-xen-x86.h
/usr/include/valgrind/vki/vki-xen-xsm.h
/usr/include/valgrind/vki/vki-xen.h
/usr/lib
/usr/lib/valgrind
/usr/lib/valgrind/32bit-core-valgrind-s1.xml
/usr/lib/valgrind/32bit-core-valgrind-s2.xml
/usr/lib/valgrind/32bit-core.xml
/usr/lib/valgrind/32bit-linux-valgrind-s1.xml
/usr/lib/valgrind/32bit-linux-valgrind-s2.xml
/usr/lib/valgrind/32bit-linux.xml
/usr/lib/valgrind/32bit-sse-valgrind-s1.xml
/usr/lib/valgrind/32bit-sse-valgrind-s2.xml
/usr/lib/valgrind/32bit-sse.xml
/usr/lib/valgrind/64bit-avx-valgrind-s1.xml
/usr/lib/valgrind/64bit-avx-valgrind-s2.xml
/usr/lib/valgrind/64bit-avx.xml
/usr/lib/valgrind/64bit-core-valgrind-s1.xml
/usr/lib/valgrind/64bit-core-valgrind-s2.xml
/usr/lib/valgrind/64bit-core.xml
/usr/lib/valgrind/64bit-linux-valgrind-s1.xml
/usr/lib/valgrind/64bit-linux-valgrind-s2.xml
/usr/lib/valgrind/64bit-linux.xml
/usr/lib/valgrind/64bit-sse-valgrind-s1.xml
/usr/lib/valgrind/64bit-sse-valgrind-s2.xml
/usr/lib/valgrind/64bit-sse.xml
/usr/lib/valgrind/amd64-avx-coresse-valgrind.xml
/usr/lib/valgrind/amd64-avx-coresse.xml
/usr/lib/valgrind/amd64-avx-linux-valgrind.xml
/usr/lib/valgrind/amd64-avx-linux.xml
/usr/lib/valgrind/amd64-coresse-valgrind.xml
/usr/lib/valgrind/amd64-linux-valgrind.xml
/usr/lib/valgrind/arm-core-valgrind-s1.xml
/usr/lib/valgrind/arm-core-valgrind-s2.xml
/usr/lib/valgrind/arm-core.xml
/usr/lib/valgrind/arm-vfpv3-valgrind-s1.xml
/usr/lib/valgrind/arm-vfpv3-valgrind-s2.xml
/usr/lib/valgrind/arm-vfpv3.xml
/usr/lib/valgrind/arm-with-vfpv3-valgrind.xml
/usr/lib/valgrind/arm-with-vfpv3.xml
/usr/lib/valgrind/cachegrind-amd64-linux
/usr/lib/valgrind/cachegrind-x86-linux
/usr/lib/valgrind/callgrind-amd64-linux
/usr/lib/valgrind/callgrind-x86-linux
/usr/lib/valgrind/debian.supp
/usr/lib/valgrind/default.supp
/usr/lib/valgrind/drd-amd64-linux
/usr/lib/valgrind/drd-x86-linux
/usr/lib/valgrind/exp-bbv-amd64-linux
/usr/lib/valgrind/exp-bbv-x86-linux
/usr/lib/valgrind/exp-dhat-amd64-linux
/usr/lib/valgrind/exp-dhat-x86-linux
/usr/lib/valgrind/exp-sgcheck-amd64-linux
/usr/lib/valgrind/exp-sgcheck-x86-linux
/usr/lib/valgrind/getoff-amd64-linux
/usr/lib/valgrind/getoff-x86-linux
/usr/lib/valgrind/helgrind-amd64-linux
/usr/lib/valgrind/helgrind-x86-linux
/usr/lib/valgrind/i386-coresse-valgrind.xml
/usr/lib/valgrind/i386-linux-valgrind.xml
/usr/lib/valgrind/lackey-amd64-linux
/usr/lib/valgrind/lackey-x86-linux
/usr/lib/valgrind/libcoregrind-amd64-linux.a
/usr/lib/valgrind/libcoregrind-x86-linux.a
/usr/lib/valgrind/libreplacemalloc_toolpreload-amd64-linux.a
/usr/lib/valgrind/libreplacemalloc_toolpreload-x86-linux.a
/usr/lib/valgrind/libvex-amd64-linux.a
/usr/lib/valgrind/libvex-x86-linux.a
/usr/lib/valgrind/libvexmultiarch-amd64-linux.a
/usr/lib/valgrind/libvexmultiarch-x86-linux.a
/usr/lib/valgrind/massif-amd64-linux
/usr/lib/valgrind/massif-x86-linux
/usr/lib/valgrind/memcheck-amd64-linux
/usr/lib/valgrind/memcheck-x86-linux
/usr/lib/valgrind/mips-cp0-valgrind-s1.xml
/usr/lib/valgrind/mips-cp0-valgrind-s2.xml
/usr/lib/valgrind/mips-cp0.xml
/usr/lib/valgrind/mips-cpu-valgrind-s1.xml
/usr/lib/valgrind/mips-cpu-valgrind-s2.xml
/usr/lib/valgrind/mips-cpu.xml
/usr/lib/valgrind/mips-fpu-valgrind-s1.xml
/usr/lib/valgrind/mips-fpu-valgrind-s2.xml
/usr/lib/valgrind/mips-fpu.xml
/usr/lib/valgrind/mips-linux-valgrind.xml
/usr/lib/valgrind/mips-linux.xml
/usr/lib/valgrind/mips64-cp0-valgrind-s1.xml
/usr/lib/valgrind/mips64-cp0-valgrind-s2.xml
/usr/lib/valgrind/mips64-cp0.xml
/usr/lib/valgrind/mips64-cpu-valgrind-s1.xml
/usr/lib/valgrind/mips64-cpu-valgrind-s2.xml
/usr/lib/valgrind/mips64-cpu.xml
/usr/lib/valgrind/mips64-fpu-valgrind-s1.xml
/usr/lib/valgrind/mips64-fpu-valgrind-s2.xml
/usr/lib/valgrind/mips64-fpu.xml
/usr/lib/valgrind/mips64-linux-valgrind.xml
/usr/lib/valgrind/mips64-linux.xml
/usr/lib/valgrind/none-amd64-linux
/usr/lib/valgrind/none-x86-linux
/usr/lib/valgrind/power-altivec-valgrind-s1.xml
/usr/lib/valgrind/power-altivec-valgrind-s2.xml
/usr/lib/valgrind/power-altivec.xml
/usr/lib/valgrind/power-core-valgrind-s1.xml
/usr/lib/valgrind/power-core-valgrind-s2.xml
/usr/lib/valgrind/power-core.xml
/usr/lib/valgrind/power-fpu-valgrind-s1.xml
/usr/lib/valgrind/power-fpu-valgrind-s2.xml
/usr/lib/valgrind/power-fpu.xml
/usr/lib/valgrind/power-linux-valgrind-s1.xml
/usr/lib/valgrind/power-linux-valgrind-s2.xml
/usr/lib/valgrind/power-linux.xml
/usr/lib/valgrind/power-vsx-valgrind-s1.xml
/usr/lib/valgrind/power-vsx-valgrind-s2.xml
/usr/lib/valgrind/power-vsx.xml
/usr/lib/valgrind/power64-core-valgrind-s1.xml
/usr/lib/valgrind/power64-core-valgrind-s2.xml
/usr/lib/valgrind/power64-core.xml
/usr/lib/valgrind/power64-core2-valgrind-s1.xml
/usr/lib/valgrind/power64-core2-valgrind-s2.xml
/usr/lib/valgrind/power64-linux-valgrind-s1.xml
/usr/lib/valgrind/power64-linux-valgrind-s2.xml
/usr/lib/valgrind/power64-linux.xml
/usr/lib/valgrind/powerpc-altivec32l-valgrind.xml
/usr/lib/valgrind/powerpc-altivec32l.xml
/usr/lib/valgrind/powerpc-altivec64l-valgrind.xml
/usr/lib/valgrind/powerpc-altivec64l.xml
/usr/lib/valgrind/s390-acr-valgrind-s1.xml
/usr/lib/valgrind/s390-acr-valgrind-s2.xml
/usr/lib/valgrind/s390-acr.xml
/usr/lib/valgrind/s390-fpr-valgrind-s1.xml
/usr/lib/valgrind/s390-fpr-valgrind-s2.xml
/usr/lib/valgrind/s390-fpr.xml
/usr/lib/valgrind/s390x-core64-valgrind-s1.xml
/usr/lib/valgrind/s390x-core64-valgrind-s2.xml
/usr/lib/valgrind/s390x-core64.xml
/usr/lib/valgrind/s390x-generic-valgrind.xml
/usr/lib/valgrind/s390x-generic.xml
/usr/lib/valgrind/s390x-linux64-valgrind-s1.xml
/usr/lib/valgrind/s390x-linux64-valgrind-s2.xml
/usr/lib/valgrind/s390x-linux64.xml
/usr/lib/valgrind/vgpreload_core-amd64-linux.so
/usr/lib/valgrind/vgpreload_core-x86-linux.so
/usr/lib/valgrind/vgpreload_drd-amd64-linux.so
/usr/lib/valgrind/vgpreload_drd-x86-linux.so
/usr/lib/valgrind/vgpreload_exp-dhat-amd64-linux.so
/usr/lib/valgrind/vgpreload_exp-dhat-x86-linux.so
/usr/lib/valgrind/vgpreload_exp-sgcheck-amd64-linux.so
/usr/lib/valgrind/vgpreload_exp-sgcheck-x86-linux.so
/usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so
/usr/lib/valgrind/vgpreload_helgrind-x86-linux.so
/usr/lib/valgrind/vgpreload_massif-amd64-linux.so
/usr/lib/valgrind/vgpreload_massif-x86-linux.so
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/valgrind.pc
/usr/share
/usr/share/doc
/usr/share/doc/valgrind
/usr/share/doc/valgrind/AUTHORS
/usr/share/doc/valgrind/FAQ.txt.gz
/usr/share/doc/valgrind/NEWS.Debian.gz
/usr/share/doc/valgrind/README
/usr/share/doc/valgrind/README.Debian
/usr/share/doc/valgrind/README_MISSING_SYSCALL_OR_IOCTL.gz
/usr/share/doc/valgrind/changelog.Debian.gz
/usr/share/doc/valgrind/copyright
/usr/share/doc/valgrind/html
/usr/share/doc/valgrind/html/FAQ.html
/usr/share/doc/valgrind/html/QuickStart.html
/usr/share/doc/valgrind/html/bbv-manual.html
/usr/share/doc/valgrind/html/cg-manual.html
/usr/share/doc/valgrind/html/cl-format.html
/usr/share/doc/valgrind/html/cl-manual.html
/usr/share/doc/valgrind/html/design-impl.html
/usr/share/doc/valgrind/html/dh-manual.html
/usr/share/doc/valgrind/html/dist.authors.html
/usr/share/doc/valgrind/html/dist.html
/usr/share/doc/valgrind/html/dist.news.html
/usr/share/doc/valgrind/html/dist.news.old.html
/usr/share/doc/valgrind/html/dist.readme-android.html
/usr/share/doc/valgrind/html/dist.readme-android_emulator.html
/usr/share/doc/valgrind/html/dist.readme-developers.html
/usr/share/doc/valgrind/html/dist.readme-mips.html
/usr/share/doc/valgrind/html/dist.readme-missing.html
/usr/share/doc/valgrind/html/dist.readme-packagers.html
/usr/share/doc/valgrind/html/dist.readme-s390.html
/usr/share/doc/valgrind/html/dist.readme-solaris.html
/usr/share/doc/valgrind/html/dist.readme.html
/usr/share/doc/valgrind/html/drd-manual.html
/usr/share/doc/valgrind/html/faq.html
/usr/share/doc/valgrind/html/hg-manual.html
/usr/share/doc/valgrind/html/images
/usr/share/doc/valgrind/html/images/home.png
/usr/share/doc/valgrind/html/images/kcachegrind_xtree.png
/usr/share/doc/valgrind/html/images/next.png
/usr/share/doc/valgrind/html/images/prev.png
/usr/share/doc/valgrind/html/images/up.png
/usr/share/doc/valgrind/html/index.html
/usr/share/doc/valgrind/html/license.gfdl.html
/usr/share/doc/valgrind/html/license.gpl.html
/usr/share/doc/valgrind/html/licenses.html
/usr/share/doc/valgrind/html/lk-manual.html
/usr/share/doc/valgrind/html/manual-core-adv.html
/usr/share/doc/valgrind/html/manual-core.html
/usr/share/doc/valgrind/html/manual-intro.html
/usr/share/doc/valgrind/html/manual-writing-tools.html
/usr/share/doc/valgrind/html/manual.html
/usr/share/doc/valgrind/html/mc-manual.html
/usr/share/doc/valgrind/html/ms-manual.html
/usr/share/doc/valgrind/html/nl-manual.html
/usr/share/doc/valgrind/html/quick-start.html
/usr/share/doc/valgrind/html/sg-manual.html
/usr/share/doc/valgrind/html/tech-docs.html
/usr/share/doc/valgrind/html/vg_basic.css
/usr/share/doc/valgrind/valgrind_manual.pdf.gz
/usr/share/doc/valgrind/valgrind_manual.ps.gz
/usr/share/doc-base
/usr/share/doc-base/valgrind
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/valgrind
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/callgrind_annotate.1.gz
/usr/share/man/man1/callgrind_control.1.gz
/usr/share/man/man1/cg_annotate.1.gz
/usr/share/man/man1/cg_diff.1.gz
/usr/share/man/man1/cg_merge.1.gz
/usr/share/man/man1/ms_print.1.gz
/usr/share/man/man1/valgrind-listener.1.gz
/usr/share/man/man1/valgrind.1.gz
/usr/share/man/man1/vgdb.1.gz
/usr/share/man/man1/valgrind.bin.1.gz
soner@ubuntu:~$ 

Clion valgrind路径和标志:

Valgrind executable:
/usr/bin/valgrind
Analysis options:
--leak-check=full --leak-resolution=med --read-inline-info=yes  --track-origins=yes --vgdb=no

enter image description here

0 个答案:

没有答案