Closed ghostwords closed 6 years ago
For me, this has been resolved by switching to a machine with more memory -- I haven't reproduced since moving to the 4GB droplet.
EDIT: This has now happened on the 4G droplet as well, though I think it was due to multiple docker images running at once. Still trying to figure out a good workaround.
Here's a quick way to reproduce the exception (from https://bugzilla.mozilla.org/show_bug.cgi?id=1401131):
def test_crash(driver):
driver.set_context("chrome")
driver.execute_script("""
// copied from crash me simple
Components.utils.import("resource://gre/modules/ctypes.jsm")
// ctypes checks for NULL pointer derefs, so just go near-NULL.
var zero = new ctypes.intptr_t(8);
var badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
var crash = badptr.contents;""")
This happened at the end of a crawl. All sites following the "failed to decode response" message failed; we should catch this and restart what needs to be restarted.