pythonfuzz icon indicating copy to clipboard operation
pythonfuzz copied to clipboard

Does not seem to work on Python 3.8

Open AlexGustafsson opened this issue 5 years ago • 1 comments

Running the example given on the README gives me roughly the following output:

python3 example_application/fuzzing_tests/greeter_fuzzing.py 
#0 READ units: 0
Traceback (most recent call last):
  File "example_application/fuzzing_tests/greeter_fuzzing.py", line 18, in <module>
    fuzz()
  File "/Users/alexgustafsson/Documents/GitHub/anansi/example-application/venv/lib/python3.8/site-packages/pythonfuzz/main.py", line 28, in __call__
    f.start()
  File "/Users/alexgustafsson/Documents/GitHub/anansi/example-application/venv/lib/python3.8/site-packages/pythonfuzz/fuzzer.py", line 88, in start
    self._p.start()
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py", line 283, in _Popen
    return Popen(process_obj)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function fuzz at 0x106235940>: it's not the same object as __main__.fuzz

I'm using Python 3.8 on macOS.

AlexGustafsson avatar Jan 30 '20 14:01 AlexGustafsson

I can't reproduce this locally with Python3.8

Can you give it an other on the current master?

jvoisin avatar Jun 10 '20 16:06 jvoisin