This document presents a novel algorithm named BugLoc for bug localization in multi-threaded applications using graph mining techniques. It addresses difficulties in identifying software bugs and their root causes by utilizing object templates for graph data management and substring analysis for frequent subgraph detection. Experimental results indicate that BugLoc is efficient, accurate, and scalable for large datasets in software development.