crytic / slither

Static Analyzer for Solidity and Vyper
https://blog.trailofbits.com/2018/10/19/slither-a-solidity-static-analysis-framework/
GNU Affero General Public License v3.0
5.26k stars 962 forks source link

[Bug-Candidate]: Read-only file system: '/interfaces' #1154

Closed revmischa closed 2 years ago

revmischa commented 2 years ago

Describe the issue:

slither 0xcfc1E0968CA08aEe88CbF664D4A1f8B881d90f37
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/slither/__main__.py", line 743, in main_impl
    ) = process_all(filename, args, detector_classes, printer_classes)
  File "/usr/local/lib/python3.9/site-packages/slither/__main__.py", line 73, in process_all
    compilations = compile_all(target, **vars(args))
  File "/usr/local/lib/python3.9/site-packages/crytic_compile/crytic_compile.py", line 637, in compile_all
    compilations.append(CryticCompile(target, **kwargs))
  File "/usr/local/lib/python3.9/site-packages/crytic_compile/crytic_compile.py", line 117, in __init__
    self._compile(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/crytic_compile/crytic_compile.py", line 548, in _compile
    self._platform.compile(self, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/crytic_compile/platform/etherscan.py", line 306, in compile
    filenames, working_dir = _handle_multiple_files(
  File "/usr/local/lib/python3.9/site-packages/crytic_compile/platform/etherscan.py", line 158, in _handle_multiple_files
    os.makedirs(path_filename.parent)
  File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/interfaces'

Code example to reproduce the issue:

slither 0xcfc1E0968CA08aEe88CbF664D4A1f8B881d90f37

Version:

0.8.2

Relevant log output:

No response

0xalpharush commented 2 years ago

EDIT: Thanks for alerting us of this! I was able to reproduce, and we have a fix.