You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fuzzing main loop handles all exceptions, but for SystemExit exception (that is being generated when exit() or sys.exit() is called) it just doesn't stop. So it's impossible to exit fuzzing application from another thread with exit() or sys.exit().
Workaround: brutally exit with os._exit() (it just doesn't raise SystemExit exception).
The text was updated successfully, but these errors were encountered:
678098
changed the title
Bug: fuzzing session prevents application from exiting with exit() or sys.exit()
Fuzzing session prevents application from exiting with exit() or sys.exit()Nov 19, 2021
Can you tell us where exactly the SystemExit exception is being caught?
I tried a raise SystemExit in _main_fuzz_loop but that exited the program just fine.
We catch Exception in some places, which I have to admit is not pretty, but doesn't catch BaseException which SystemExit or KeyboardInterrupt inherit from. I couldn't find any occurrences of base except: so SystemExit should work. https://docs.python.org/3/library/exceptions.html#Exception
Fuzzing main loop handles all exceptions, but for
SystemExit
exception (that is being generated whenexit()
orsys.exit()
is called) it just doesn't stop. So it's impossible to exit fuzzing application from another thread withexit()
orsys.exit()
.Workaround: brutally exit with
os._exit()
(it just doesn't raiseSystemExit
exception).The text was updated successfully, but these errors were encountered: