From 602f4678c1e764e4e4c4bcdf26a5f83abe39ecdb Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Fri, 7 Feb 2020 18:33:44 -0800 Subject: [PATCH] Capture file-backed mappings in Linux core dumps (#18897) --- eng/helix/content/runtests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/helix/content/runtests.sh b/eng/helix/content/runtests.sh index 663b20afb3..34078c763e 100644 --- a/eng/helix/content/runtests.sh +++ b/eng/helix/content/runtests.sh @@ -82,6 +82,13 @@ if [ $? -ne 0 ]; then done fi +if [ -e /proc/self/coredump_filter ]; then + # Include memory in private and shared file-backed mappings in the dump. + # This ensures that we can see disassembly from our shared libraries when + # inspecting the contents of the dump. See 'man core' for details. + echo -n 0x3F > /proc/self/coredump_filter +fi + $DOTNET_ROOT/dotnet vstest $test_binary_path -lt >discovered.txt if grep -q "Exception thrown" discovered.txt; then echo -e "${RED}Exception thrown during test discovery${RESET}".