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

Error on processing some linux files for is_valid #24

Closed
rvrecen opened this issue Feb 4, 2023 · 1 comment
Closed

Error on processing some linux files for is_valid #24

rvrecen opened this issue Feb 4, 2023 · 1 comment

Comments

@rvrecen
Copy link

rvrecen commented Feb 4, 2023

Unsure what source of this error is, not sure whether this is just outdated or if API in elftools has changed

Traceback (most recent call last):
  File "...\binaryninja\plugin.py", line 229, in _default_is_valid
    return is_valid(view_obj)
  File "...plugins\analysis_dwarf\__init__.py", line 106, in is_valid
    return raw and elf and ELFFile(reader).has_dwarf_info()
  File "...site-packages\elftools\elf\elffile.py", line 81, in __init__
    self.stream.seek(0, io.SEEK_END)
TypeError: BinaryReader.seek() takes 2 positional arguments but 3 were given

analysis_dwarf is renamed directory of dwarf_import, and this error triggers on loading elf-Linux-x64-bash

elf-Linux-x64-bash.zip

pyelftools==0.28

@KyleMiles
Copy link
Member

The file you provided does not include any DWARF information, as far as I can tell:

elf-Linux-x64-bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=3fbc74b2edb4842f494d8dd682ea61c60816eaf1, stripped

As a heads up, if you'd like to test it, we just released our new DWARF import plugin (now ships with the product, and automatically parses DWARF when available): Vector35/binaryninja-api#3206 (comment)

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

2 participants