summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2016-06-20 14:29:37 -0700
committerAditya Mandaleeka <adityam@microsoft.com>2016-06-20 14:29:37 -0700
commite42ea2920222716e9751f78fa72b3256f85d8d4e (patch)
treebf67591d0a0bacc7868dbed06ebba2cd4df2e6ab
parent1ad32ce9c82b0e5c1594ecec88423803045cc824 (diff)
downloadcoreclr-e42ea2920222716e9751f78fa72b3256f85d8d4e.tar.gz
coreclr-e42ea2920222716e9751f78fa72b3256f85d8d4e.tar.bz2
coreclr-e42ea2920222716e9751f78fa72b3256f85d8d4e.zip
Set coredump_filter to include shared library code.
-rwxr-xr-xtests/runtest.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 333945bf91..3d69bbdfc8 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -542,6 +542,14 @@ function set_up_core_dump_generation {
# On Linux, we'll enable core file generation unconditionally, and if a dump
# is generated, we will print some useful information from it and delete the
# dump immediately.
+
+ 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 0x3F > /proc/self/coredump_filter
+ fi
+
ulimit -c unlimited
fi
}