summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityamandaleeka@users.noreply.github.com>2016-06-20 16:35:14 -0700
committerGitHub <noreply@github.com>2016-06-20 16:35:14 -0700
commit742df17fff977695cd36337169b16af0057ad723 (patch)
treeac81fd1a030640df9a9bb21acbeaf4b41ee0a421
parentcbddfc0dfd42077a23def2118636fe5061c6093a (diff)
parente42ea2920222716e9751f78fa72b3256f85d8d4e (diff)
downloadcoreclr-742df17fff977695cd36337169b16af0057ad723.tar.gz
coreclr-742df17fff977695cd36337169b16af0057ad723.tar.bz2
coreclr-742df17fff977695cd36337169b16af0057ad723.zip
Merge pull request #5888 from adityamandaleeka/generate_core_dumps_runtest
Set coredump_filter to include shared library code in CI core dumps
-rwxr-xr-xtests/runtest.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 530f261fca..827d70757e 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
}