From f1f87e7b6fb1cd799eb08fa6f0f85686be068a73 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 23 Nov 2013 10:42:28 -0800 Subject: [PATCH] Workaround random headless timeouts on Android/etc. Seems like we have stack corruption, so probably it's not that XMM etc. need to be saved. Not sure what exactly is up. --- headless/Headless.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/headless/Headless.cpp b/headless/Headless.cpp index 36949853df..c825fc55c1 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -143,7 +143,9 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool time_update(); bool passed = true; - double deadline = time_now() + timeout; + // TODO: We must have some kind of stack overflow or we're not following the ABI right. + // This gets trashed if it's not static. + static double deadline = time_now() + timeout; coreState = CORE_RUNNING; while (coreState == CORE_RUNNING)