Comments (5)
@SquilliamX Please upgrade (python3 -m pip install slither-analyzer -U
) as support was added in 0.10.1 #2219
from slither.
hello @0xalpharush , I did what you said and upgraded using the command python3 -m pip install slither-analyzer -U
, but am now receiving this error:
'forge clean' running (wd: /home/smartchain/code/audits/broken/slither-breaks/wallflower-contract-v2)
'forge config --json' running
'forge build --build-info --skip */test/** */script/** --force' running (wd: /home/smartchain/code/audits/broken/slither-breaks/wallflower-contract-v2)
ERROR:SlitherSolcParsing:
Failed to convert IR to SSA for Initializable contract. Please open an issue https://github.com/crytic/slither/issues.
Traceback (most recent call last):
File "/home/smartchain/.local/bin/slither", line 8, in <module>
sys.exit(main())
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/__main__.py", line 753, in main
main_impl(all_detector_classes=detectors, all_printer_classes=printers)
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/__main__.py", line 859, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/__main__.py", line 107, in process_all
) = process_single(compilation, args, detector_classes, printer_classes)
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/__main__.py", line 80, in process_single
slither = Slither(target, ast_format=ast, **vars(args))
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slither.py", line 199, in __init__
self._init_parsing_and_analyses(kwargs.get("skip_analyze", False))
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slither.py", line 219, in _init_parsing_and_analyses
raise e
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slither.py", line 215, in _init_parsing_and_analyses
parser.analyze_contracts()
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 593, in analyze_contracts
self._convert_to_slithir()
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 834, in _convert_to_slithir
raise e
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 829, in _convert_to_slithir
contract.convert_expression_to_slithir_ssa()
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/core/declarations/contract.py", line 1579, in convert_expression_to_slithir_ssa
func.generate_slithir_ssa(all_ssa_state_variables_instances)
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/core/declarations/function_contract.py", line 140, in generate_slithir_ssa
add_ssa_ir(self, all_ssa_state_variables_instances)
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 206, in add_ssa_ir
fix_phi_rvalues_and_storage_ref(
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 526, in fix_phi_rvalues_and_storage_ref
fix_phi_rvalues_and_storage_ref(
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 526, in fix_phi_rvalues_and_storage_ref
fix_phi_rvalues_and_storage_ref(
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 526, in fix_phi_rvalues_and_storage_ref
fix_phi_rvalues_and_storage_ref(
[Previous line repeated 4 more times]
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 496, in fix_phi_rvalues_and_storage_ref
variables = [
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 497, in <listcomp>
last_name(dst, ir.lvalue, init_local_variables_instances) for dst in ir.nodes
File "/home/smartchain/.local/lib/python3.10/site-packages/slither/slithir/utils/ssa.py", line 363, in last_name
assert candidates
AssertionError
from slither.
This looks like the same bug as #2160. Thanks for the thorough bug report and uploading a repo for us to triage with
Maybe related to the use of LibZip. You can try what I recommend there as a workaround: add --skip-assembly
to command
from slither.
This looks like the same bug as #2160. Thanks for the thorough bug report and uploading a repo for us to triage with
Maybe related to the use of LibZip. You can try what I recommend there as a workaround: add
--skip-assembly
to command
thanks, this is a great work around! And I am happy to upload the repo to help solve bugs and make our tools better!
from slither.
Will track in #2160
from slither.
Related Issues (20)
- Ok
- ok
- [Bug-Candidate]: Infunctional with the Base mainet HOT 2
- Bugs
- [Bug-Candidate]: slither.solc_parsing.exceptions.ParsingError: Type not found contract MockERC20 HOT 2
- Monthly issue metrics report
- βread_storage cannot determine the storage layout of custom type variables within a struct. HOT 1
- The function get_storage_slot in read_storage.py cannot accurately determine the slot where variables in the structure are located. HOT 1
- Compilation error HOT 1
- revert https://github.com/crytic/slither/pull/2417 HOT 1
- When handling internal function pointers, information loss can occur.
- Support Vyper `0.4.0`
- [Bug-Candidate]: Slither python API contract with remappings file HOT 6
- [Bug-Candidate]: Slither python API went wrong when multiple SPDX license HOT 3
- how to read caller function parameters HOT 1
- [False Negative]: Not show the correct report on unused imports HOT 4
- [Bug]: Missing quotes in case mapping key passed as a string HOT 2
- [Bug]: import missing middleware from `web3.middleware` in `slither-check-upgradeability` HOT 1
- [False Negative]: reentrancy-no-eth for interprocedural case HOT 1
- Monthly issue metrics report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slither.