参考链接

可是我使用这个方法编译运行程序出现了这个问题:

mf: erroneous reentrancy detected in `__mf_check' Aborted

网上找了很久,未果。还是用valgrind吧。