0.写在前面
tensorflow跑深度学习时在session.run的时候碰到了一个问题
Segmentation fault (core dumped)
网上的问题看了很多,我换过gcc版本,tf和cuda的版本,但都没有解决我的问题.
1.使用gdb
1.1启动gdb
gdb python
1.2运行调试程序
run file.py
可以看到我的问题出在了open3d上
2.open3d和tensorflow
既然问题定位到了open3d上,我又去找了这方面的问题,发现
使用不同CXX ABI编译的Python库可能会导致正则表达式中出现段错误
最后,我先导入tensorflow,再导入open3d解决了这个问题
参考
https://github.com/tensorflow/tensorflow/issues/19347
https://github.com/intel-isl/Open3D/pull/1262