jwilk / python-afl

American Fuzzy Lop fork server and instrumentation for pure-Python code
https://jwilk.net/software/python-afl
MIT License
350 stars 33 forks source link

test_fuzz: stray process left behind #4

Closed jwilk closed 8 years ago

jwilk commented 8 years ago

Sometimes test_fuzz.py leaves behind a stray process:

$ nosetests tests/test_fuzz.py
....
----------------------------------------------------------------------
Ran 4 tests in 0.533s

OK

$ ps -u $(whoami) -o pid,state,cmd | grep ' [T] '
7607 T /usr/bin/python /home/jwilk/python-afl/tests/target_persistent.py

CC: @danstender

danstender commented 8 years ago

I would have guessed it's the tests. Thx for getting into it. Dan

jwilk commented 8 years ago

Simpler reproducer:

$ mkdir in out
$ echo moo > in/moo
$ timeout 1 py-afl-fuzz -i in -o out python tests/target_persistent.py
jwilk commented 8 years ago

It's a bug in AFL proper: https://groups.google.com/d/topic/afl-users/E37s4YDti7o

I'll try to implement a work-around in the test suite.

jwilk commented 8 years ago

Work-around implemented in 6d6bac7bade633d9a898629e44e97c2709d5ba64.

I'll make a new release soon.

jwilk commented 8 years ago

I've just released python-afl 0.5.5, which includes the aforementioned work-around.