{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1ee3715682c613bb8009f4f9532746c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1ee3715682c613bb8009f4f9532746c1","url":"https://api.github.com/users/Southbank","login":"Southbank","id":1011222},"labels":[],"assignee":null,"updated_at":"2011-11-01T05:51:33Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/Zapotek/arachni/issues/94","body":"This is for the latest experimental branch (Arachni 0.4) on Cygwin. \r\n\r\nThere appears to be race condition that happens more often if the scanned site is relatively big with many issues (example: this always happen when I try a scan on \"http://google-gruyere.appspot.com/start\"):\r\n\r\n1) scan started\r\n2) after a while the scan is 100% done\r\n3) in the GUI you see (under scanner output): \"connection lost\"\r\n4) no reports are written and in the log file you only see:\r\n\r\nwebui started\r\nscheduler instance dispatched localhost:47035\r\nscheduler instance_owner_assigned\r\nscheduler scan started\r\nwebui zombie_cleanup\r\n\r\nMissing is the normal:\r\n\r\nreport saved.\r\n\r\nA quick fix is to increase the timing of the zombie scanning process (line 540 in server.rb), but this is no real solution and only minimizes the possibility that the race condition occurs.\r\n\r\nI have tried to investigate where the issue comes from, but cannot trace the origin. Might have something to do with the way Cygwin handles forks and threads but I have to delve deeper. Other possibility is that the check in line 624 of server.rb might be wrong: if the  framework in reality is 'busy', but there was a RPC exception, will 'busy' be set automatically to false? Haven't had the time to really investigate this. \r\n \r\n","html_url":"https://github.com/Zapotek/arachni/issues/94","number":94,"title":"Cygwin - zombie cleanup before reports saved ","id":2107585,"created_at":"2011-11-01T05:51:33Z"},"action":"opened"}