SoftwareUnderstanding / inspect4py

Static code analysis package for Python repositories
https://inspect4py.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
28 stars 10 forks source link

Core dumped error when running control flow commands #320

Closed dgarijo closed 2 years ago

dgarijo commented 2 years ago

See for example:

code_inspector -i ../test_repos/somef -o test_dir -cf

Output:

Creating cf /home/dgarijo/Documents/GitHub/code_inspector/test_dir/somef/control_flow
Creating jsDir:test_dir/somef/json_files
Creating cf /home/dgarijo/Documents/GitHub/code_inspector/test_dir/experiments/control_flow
Creating jsDir:test_dir/experiments/json_files
Creating cf /home/dgarijo/Documents/GitHub/code_inspector/test_dir/helper_scripts/control_flow
Creating jsDir:test_dir/helper_scripts/json_files
Segmentation fault (core dumped)

The problem is that the script fails silently and stops with the rest. It's ok if it fails, but it should continue processing the rest of the files.

rosafilgueira commented 2 years ago

Dindt get that error : code_inspector -i ../test_repos/somef -o test_dir -cf

Screen Shot 2022-01-24 at 12 30 30
dgarijo commented 2 years ago

Further inspection of this issue uncovered that cdmcfparser 2.3.2 is not supported for Python>=3.9. The newest version is cdmcfparser 2.2.3, which is causing the error.

I will open a separate issue to address this problem.