Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HASH: Out of overflow pages. Increase page size #53

Open
mafangtao opened this issue Apr 26, 2023 · 1 comment
Open

HASH: Out of overflow pages. Increase page size #53

mafangtao opened this issue Apr 26, 2023 · 1 comment

Comments

@mafangtao
Copy link

panoramix 0x9Db7378614d8d9D7149c4eE4763F88c38F9B1517

---->

Traceback (most recent call last):
File "/opt/homebrew/bin/panoramix", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/main.py", line 79, in main
print_decompilation(args.address_or_bytecode, args)
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/main.py", line 51, in print_decompilation
decompilation = decompile_address(this_addr, function_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/decompiler.py", line 51, in decompile_address
return _decompile_with_loader(loader, only_func_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/decompiler.py", line 123, in _decompile_with_loader
loader.run(VM(loader, just_fdests=True))
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/loader.py", line 137, in run
make_abi(self.hash_targets)
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/utils/signatures.py", line 159, in make_abi
sig = fetch_sig(h)
^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/utils/helpers.py", line 151, in wrapper
ret = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/utils/supplement.py", line 68, in fetch_sig
check_supplements()
File "/opt/homebrew/lib/python3.11/site-packages/panoramix/utils/supplement.py", line 59, in check_supplements
out[selector] = abi
~~~^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shelve.py", line 125, in setitem
self.dict[key.encode(self.keyencoding)] = f.getvalue()
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_dbm.error: cannot add item to database

@radiofreejohn
Copy link

Not sure what platform you are on but the following worked for me:

  1. delete the cache file (it appears above the trace for me
2023-08-03 16:24:24,678 haruspex.local panoramix.utils.supplement[17763] INFO Loading /opt/homebrew/lib/python3.11/site-packages/panoramix/data/abi_dump.xz into /Users/john/Library/Caches/panoramix/abi_db.shelve...

Here the file is /Users/john/Library/Caches/panoramix/abi_db.shelve.db yours may be different.

  1. Install pythong-gdbm
    I'm using Homebrew, so it was just brew install python-gdbm

After that the program ran fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@radiofreejohn @mafangtao and others