Troubleshooting

[ Start > CaudiumWiki > Troubleshooting ] [ Edit this Page | Viewing Version 1 ]


Check the debug logs

Sometimes, the answers are fairly easy to find. Usually, when Caudium runs into problems, it will dump backtraces into the debug log (usually logs/debug/default.1). This file is always a good first place to look for answers.

Thread Dump

To trigger a thread status dump (sort of like a backtrace for each running thread), you can perform the following:

kill -5 <caudiumpid>

Sending this signal to Caudium should cause the current thread state to be written to the default debug log (usually logs/debug/default.1). This is often very helpful for seeing what each thread is up to, and may provide clues to the problem.

Attach GDB to the process

Running a system call trace

Most UNIX-like operating systems provide a facility for inspecting system calls made by a process in real time. This can often be useful in tracking down I/O related problems.

  • Solaris users can use "truss" or "dtrace" (Solaris 10+)
  • Darwin and OSX users can use "ktrace" or "dtrace" (OSX 10.5+)
  • BSD users can use "ktrace"
  • Linux users can use "strace"

Powered by PikeWiki2

 
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University