#vulnerable code 
                                public void run() {
        try {
            _run();
        }
        catch (Throwable e) {
            Logs.get().error("something happen", e);
        }
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public void run() {
        try {
            if (execute()) {
                synchronized (lock) {
                    lock.wait();
                }
            }
            // 收尾
            _shutdown();
        }
        catch (Throwable e) {
            Logs.get().error("something happen", e);
        }
    }