install valgrind, Fatal error at startup

后端 未结 3 628
深忆病人
深忆病人 2021-02-19 00:56

I am installing Valgrind but encounter some problems. The info of my platform:

Linux xx-ThinkPad-X61 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC          


        
相关标签:
3条回答
  • 2021-02-19 01:48

    Valgrind indicates it cannot work because it is missing the libc debug info, and it indicates which package has to be installed to solve that. In your case (Ubuntu), you must install libc6-dbg

    0 讨论(0)
  • 2021-02-19 01:49

    I also faced this error, but finally resolved in below manner.

    I am having 64 bit Ubuntu 14.04, and my executable is 32 bit. When I run my 32 bit executable with valgrind I got this same error. This error was not resolved even after installing libc6-dbg (using command apt-get install libc6-dbg).

    Later I found like whatever libc6-dbg present in my machine was 64 bit and valgrind requires a 32 bit libc6-dbg to run my 32 bit executable. After installing 32 bit libc6-dbg (using the command apt-get install libc6-dbg:i386) it started working.

    0 讨论(0)
  • 2021-02-19 01:52
    apt install -y libc6-dbg
    

    It worked for me. (Note: without :i386.)
    A hunch is that Valgrind might have upgraded to 64-bit since the answer by rashok was written.

    0 讨论(0)
提交回复
热议问题