-
Jeff-Chow000
我在ubuntu18.04系统使用trt_onnx2部署panoptic_fcn模型,在所有图片都推理完后,报错double free or corruption (out),通过gdb和valgrind定位bug是与thor::dl有关:
查看回源代码trt_onnx2-master/examples/demo_panopticfcn.cc,发现相关的只调用了thor::dl::COCO_CLASSES,我把thor::dl::COCO_CLASSES的数据直接copy到demo_panopticfcn.cc,不再从thor/dl include,也注释掉#include "thor/dl.h",这个bug就消失了,具体原因猜测是thor/dl中存在内存释放问题,不打算深究了,反映出来,希望管理员测试一下是什么问题,看看有什么解决方案。 -