So you have a bug. Woo! Now what? Reproducible? Run it from command-line and/or with debugging on. Redirect errors to a file. Debugging builds. gdb.