Skip to content

Commit

Permalink
XXX debug dotnet build-server shutdown hang
Browse files Browse the repository at this point in the history
Signed-off-by: WANG Xuerui <[email protected]>
  • Loading branch information
xen0n committed Sep 20, 2024
1 parent 23978ac commit 67e2670
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ build_vmr_stage1() {
group "building stage1"
pushd "$vmr_root" > /dev/null

if [[ -n $CI ]]; then
strace -f --syscall-limit=100000 -e t='!sched_yield' ./.dotnet/dotnet build-server shutdown || true
fi

local args=(
-so
--clean-while-building
Expand Down
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ main() {
prepare_sources
prepare_vmr_stage1 "$DOTNET_VMR_CHECKOUT"
maybe_dump_ccache_stats

if [[ -n $CI ]]; then
group "debug dotnet shm"
ls -alF /tmp
ls -alF /tmp/.dotnet || true

apt-get update && apt-get install strace
endgroup
fi

build_vmr_stage1 "$DOTNET_VMR_CHECKOUT"
unpack_sb_artifacts
prepare_vmr_stage2 "$DOTNET_VMR_CHECKOUT" "$_BUILT_VERSION"
Expand Down

0 comments on commit 67e2670

Please sign in to comment.