From e42ea2920222716e9751f78fa72b3256f85d8d4e Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Mon, 20 Jun 2016 14:29:37 -0700 Subject: Set coredump_filter to include shared library code. --- tests/runtest.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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 } -- cgit v1.2.3