target / strelka

Real-time, container-based file scanning at enterprise scale
Other
878 stars 113 forks source link

[BUG] ScanNf Segmentation Fault #392

Closed phutelmyer closed 1 year ago

phutelmyer commented 1 year ago

Describe the bug On testing of a new build, it seems as if "ScanNf" is incurring a segmentation fault.

Environment details

Pytest Output

#0 15.18 tests/test_scan_nf.py Fatal Python error: Segmentation fault
#0 15.19 
#0 15.19 Current thread 0x00007f7af1a19000 (most recent call first):
#0 15.19   File "/strelka/strelka/scanners/scan_nf.py", line 30 in scan
#0 15.19   File "/strelka/strelka/strelka.py", line 779 in scan_wrapper
#0 15.19   File "/strelka/strelka/tests/__init__.py", line 26 in run_test_scan
#0 15.19   File "/strelka/strelka/tests/test_scan_nf.py", line 22 in test_scan_nf_jpg
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/python.py", line 195 in pytest_pyfunc_call
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py", line 80 in _multicall
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py", line 112 in _hookexec
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py", line 433 in __call__
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/python.py", line 1789 in runtest
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 167 in pytest_runtest_call
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py", line 80 in _multicall
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py", line 112 in _hookexec
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py", line 433 in __call__
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 260 in <lambda>
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 339 in from_call
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 259 in call_runtest_hook
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 220 in call_and_report
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 131 in runtestprotocol
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 112 in pytest_runtest_protocol
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py", line 80 in _multicall
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py", line 112 in _hookexec
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py", line 433 in __call__
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/main.py", line 349 in pytest_runtestloop
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py", line 80 in _multicall
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py", line 112 in _hookexec
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py", line 433 in __call__
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/main.py", line 324 in _main
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/main.py", line 270 in wrap_session
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/main.py", line 317 in pytest_cmdline_main
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py", line 80 in _multicall
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py", line 112 in _hookexec
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py", line 433 in __call__
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/config/__init__.py", line 167 in main
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/_pytest/config/__init__.py", line 190 in console_main
#0 15.19   File "/usr/local/lib/python3.10/dist-packages/pytest/__main__.py", line 5 in <module>
#0 15.19   File "/usr/lib/python3.10/runpy.py", line 86 in _run_code
#0 15.19   File "/usr/lib/python3.10/runpy.py", line 196 in _run_module_as_main
#0 15.19 

Steps to reproduce Steps to reproduce the behavior:

  1. Run docker-compose -f build/docker-compose.yaml build

Expected behavior No error!

Screenshots If applicable, add screenshots to help explain your problem.

Release

Additional context Add any other context about the problem here.

phutelmyer commented 1 year ago

Fixed in #405