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

Crash when attempting to load file #133

Open
jrozner opened this issue Nov 10, 2020 · 4 comments
Open

Crash when attempting to load file #133

jrozner opened this issue Nov 10, 2020 · 4 comments

Comments

@jrozner
Copy link

jrozner commented Nov 10, 2020

ropper --file sshd

[INFO] Load gadgets for section: PHDR
[ERROR] Please report this error on https://github.com/sashs/ropper
[ERROR] Traceback (most recent call last):
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/console.py", line 62, in cmd
    func(self, text)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/console.py", line 501, in __handleOptions
    self.__loadGadgets()
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/console.py", line 299, in __loadGadgets
    self.__searchGadgetsFor(self.currentFileName)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/console.py", line 303, in __searchGadgetsFor
    self.__rs.loadGadgetsFor(binary)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/service.py", line 640, in loadGadgetsFor
    load_gadgets(fc)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/service.py", line 625, in load_gadgets
    f.allGadgets = self.__ropper.searchGadgets(f.loader, instructionCount=self.options.inst_count, gtype=gtype,multiprocessing=self.options.multiprocessing)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/rop.py", line 286, in searchGadgets
    newGadgets = self._searchGadgetsForked(section=section, binary=binary, instruction_count=instructionCount, gtype=gtype)
  File "/Users/joe/pwn/lib/python3.9/site-packages/ropper/rop.py", line 375, in _searchGadgetsForked
    processes[cpu].start()
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
    return Popen(process_obj)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_io.TextIOWrapper' object
@abathur
Copy link

abathur commented Mar 8, 2021

I ran into this as well. I tried it with a few different python versions, and it looks like this behavior appears in python3.8, but is not present in python3.7.

@sashs
Copy link
Owner

sashs commented Apr 26, 2021

Hi. Thank you. I will check that.

@001SM
Copy link

001SM commented Apr 17, 2022

me too

@sashs
Copy link
Owner

sashs commented Aug 9, 2022

I cannot reproduce this issue.

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