Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit ea8e099

Browse files
authored
Include dumpasync command when evaluating core dumps
dotnet/coreclr#18160 and dotnet/coreclr#18213 added a new `dumpasync` command to sos that will dump out data on async methods currently in use. Including this in the core dump analysis has similar value to dumping out all call stacks, in that it'll give us more details into what was going on in the process.
1 parent caada8c commit ea8e099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.DotNet.Build.Tasks/PackageFiles/RunnerTemplate.Unix.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ function print_info_from_core_file_using_lldb {
2424
# check for existence of lldb on the path
2525
hash lldb 2>/dev/null || { echo >&2 "lldb was not found. Unable to print core file."; return; }
2626

27-
# pe and clrstack are defined in libsosplugin.so
27+
# pe, clrstack, and dumpasync are defined in libsosplugin.so
2828
if [ ! -f $plugin_path_name ]; then
2929
echo $plugin_path_name cannot be found.
3030
return
3131
fi
3232

3333
echo ----- start =============== lldb Output =====================================================
34-
echo Printing managed exceptions and managed call stack.
35-
lldb -O "settings set target.exec-search-paths $RUNTIME_PATH" -o "plugin load $plugin_path_name" -o "clrthreads -managedexception" -o "pe -nested" -o "clrstack -all -a -f" -o "quit" --core $core_file_name $executable_name
34+
echo Printing managed exceptions, managed call stacks, and async state machines.
35+
lldb -O "settings set target.exec-search-paths $RUNTIME_PATH" -o "plugin load $plugin_path_name" -o "clrthreads -managedexception" -o "pe -nested" -o "clrstack -all -a -f" -o "dumpasync -roots" -o "quit" --core $core_file_name $executable_name
3636
echo ----- end =============== lldb Output =======================================================
3737
}
3838

0 commit comments

Comments
 (0)