Run Spectrum in Valgrind¶
With some really nasty crashes, it becomes necessary to run spectrum in Valgrind. Since this will cause Spectrum to eat more memory and CPU, only do this when you report a bug and we ask you to do this. Once you have Valgrind installed, you can run Spectrum inside Valgrind.
You can start Valgrind with a command as simple as this:
valgrind --tool=memcheck /usr/bin/spectrum -n /etc/spectrum/yahoo.cfg &> /dev/null 2> valgrind.yahoo.log"
You should take care of running this command as the same user that spectrum usually runs, or else spectrumctl and the munin plugins will fail. If you are currently root, you normally would do something like this:
su spectrum -s /bin/bash -c "cd && valgrind --tool=memcheck /usr/bin/spectrum -n /etc/spectrum/yahoo.cfg &> /dev/null 2> valgrind.yahoo.log"
You will get some output into the log-file right away and at least right before spectrum crashes. As soon as this happens, send the logfile (valgrind.yahoo.log in the above example) back to us.