File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash
2
2
3
3
usage ()
4
4
{
@@ -134,6 +134,7 @@ if [ "$(uname -s)" == "Darwin" ]; then
134
134
if [[ ! -d " /cores" || ! " $( ls -A /cores) " ]]; then
135
135
ulimit -c unlimited
136
136
fi
137
+
137
138
elif [ " $( uname -s) " == " Linux" ]; then
138
139
# On Linux, we'll enable core file generation unconditionally, and if a dump
139
140
# is generated, we will print some useful information from it and delete the
169
170
170
171
# ======================= BEGIN Core File Inspection =========================
171
172
pushd $EXECUTION_DIR > /dev/null
173
+
174
+ if [[ $test_exitcode -ne 0 ]]; then
175
+ echo ulimit -c value: $( ulimit -c)
176
+ fi
177
+
172
178
if [[ " $( uname -s) " == " Linux" && $test_exitcode -ne 0 ]]; then
173
179
if [ -n " $HELIX_WORKITEM_PAYLOAD " ]; then
174
180
have_sleep=$( which sleep)
@@ -177,7 +183,13 @@ if [[ "$(uname -s)" == "Linux" && $test_exitcode -ne 0 ]]; then
177
183
sleep 10s
178
184
fi
179
185
fi
186
+
187
+ echo cat /proc/sys/kernel/core_pattern: $( cat /proc/sys/kernel/core_pattern)
188
+ echo cat /proc/sys/kernel/core_uses_pid: $( cat /proc/sys/kernel/core_uses_pid)
189
+ echo cat /proc/sys/kernel/coredump_filter: $( cat /proc/sys/kernel/coredump_filter)
190
+
180
191
echo Looking around for any Linux dump..
192
+
181
193
# Depending on distro/configuration, the core files may either be named "core"
182
194
# or "core.<PID>" by default. We read /proc/sys/kernel/core_uses_pid to
183
195
# determine which it is.
@@ -211,3 +223,4 @@ if [ "$test_exitcode" == "1" ]; then
211
223
else
212
224
exit $test_exitcode
213
225
fi
226
+
You can’t perform that action at this time.
0 commit comments