microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 283 forks source link

optionally use garbage collector #803

Closed tim-thacker-nullify closed 9 months ago

tim-thacker-nullify commented 10 months ago

Use the existing run_gc_after_every_sequence setting to skip creation of the GarbageCollector class.

The constructor for this class calls multiprocessing.Lock() which requires the /dev/shm device file. If you want to run restler on a machine which doesn't have this device file you should be able to disable the garbage collector. in v9.0.0 this was possible by setting garbage_collection_interval to 0 but v9.0.1 was changed to always run the GarbageCollector constructor, which then calls multiprocessing.Lock() and crashes the program if /dev/shm does not exist.

marina-p commented 9 months ago

Thank you for fixing this!