mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00

This is a workaround for what seems to be a deadlock in gperftools (seen in their 2.0 and 2.1 releases) that happens occasionally.
27 lines
542 B
Text
27 lines
542 B
Text
# Needs perftools support.
|
|
#
|
|
# @TEST-GROUP: leaks
|
|
#
|
|
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
|
#
|
|
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -b -r $TRACES/wikipedia.trace %INPUT
|
|
# @TEST-EXEC: btest-bg-wait 15
|
|
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
local s = "0123456789";
|
|
print s[1];
|
|
print s[1:2];
|
|
print s[1:6];
|
|
print s[0:20];
|
|
print s[-2];
|
|
print s[-3:1];
|
|
print s[-1:10];
|
|
print s[-1:0];
|
|
print s[-1:5];
|
|
print s[20:23];
|
|
print s[-20:23];
|
|
print s[0:5][2];
|
|
print s[0:5][1:3][0];
|
|
}
|