aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-05-24 19:58:43 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-05-24 19:58:43 +0200
commitafdde1f2e81c14fc6c0b110997c60bf491bf23b1 (patch)
tree7dc100af69eb0aba91de09f1adf3ae9e89a7a043 /searchlib
parent70fb7d3afb4960314aee74ae7c8f629e6867f0b3 (diff)
Increase stack size when using address sanitizer.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/query/streaming_query_large_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/tests/query/streaming_query_large_test.cpp b/searchlib/src/tests/query/streaming_query_large_test.cpp
index e2a49311aac..a76ec54098e 100644
--- a/searchlib/src/tests/query/streaming_query_large_test.cpp
+++ b/searchlib/src/tests/query/streaming_query_large_test.cpp
@@ -27,7 +27,11 @@ void setMaxStackSize(rlim_t maxStackSize)
// a stack overflow if the stack usage increases.
TEST("testveryLongQueryResultingInBug6850778") {
const uint32_t NUMITEMS=20000;
+#ifdef __SANITIZE_ADDRESS__
+ setMaxStackSize(12 * 1024 * 1024);
+#else
setMaxStackSize(4 * 1024 * 1024);
+#endif
QueryBuilder<SimpleQueryNodeTypes> builder;
for (uint32_t i=0; i <= NUMITEMS; i++) {
builder.addAnd(2);