Automatic bug detection and reporting tool