I’m just starting with C programming (following along with ‘C The Hard Way’) – anytime I try to run valgrind I’m getting Segmentation fault in terminal right off the bat.
I’ve installed and reinstalled valgrind
Any suggestions here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Valgrind should never segfault – every (even buggy) program should be run and problems intercepted.
If you get segfaults even for innocuous commands like
valgrind true, I suggest you to download precompiled valgrind binaries for your OS, presumably with its package manager. Similar problems with compilation sometimes happen (could be bugs in the compiler, incompatibilities between the sources and the compiler, bad libraries…). You probably don’t want to dig into this if you’re still learning.If valgrind merely reports a segfault in your program, post its messages. It means you have a bug in your program.