tap: crash in multi-thread environment