我正在使用Ubuntu 17.10
Python版本:2.7.14 Anaconda
我安装了Matlab R2017b。我还安装了pymatlab-0.2.3
当我在python中运行以下命令时,我得到“分段错误(核心转储)”并且ipython关闭。
valgrind
此外,当我使用 gdb 对其进行调试时,它会提供以下堆栈跟踪:
$ valgrind ./bin/popen_ls_files > /dev/null
==7453== Memcheck, a memory error detector
==7453== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==7453== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==7453== Command: ./bin/popen_ls_files
==7453==
==7453==
==7453== HEAP SUMMARY:
==7453== in use at exit: 0 bytes in 0 blocks
==7453== total heap usage: 1,777 allocs, 1,777 frees, 148,929 bytes allocated
==7453==
==7453== All heap blocks were freed -- no leaks are possible
==7453==
==7453== For counts of detected and suppressed errors, rerun with: -v
==7453== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)