Skip to content

Commit 6fefa10

Browse files
committed
Add lsof and find debug for macOS Named Pipe investigation
1 parent 4f69b93 commit 6fefa10

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/cross-platform-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,19 @@ jobs:
310310
if (-not $pipeReady) {
311311
Write-Host "=== Named Pipe not found, checking process state ===" -ForegroundColor Red
312312
Write-Host "Process running: $(-not $bgProcess.HasExited)"
313+
Write-Host "Background pwsh PID: $($bgProcess.Id)"
313314
314-
# Debug: List pipe-related files
315+
# Debug: List pipe-related files and sockets
315316
if (-not $IsWindows) {
316317
Write-Host "=== /tmp pipe files (PowerShell) ===" -ForegroundColor Yellow
317318
Get-ChildItem /tmp -Filter "CoreFxPipe_*" -ErrorAction SilentlyContinue | ForEach-Object { Write-Host $_.FullName }
318319
Write-Host "=== /tmp (native ls) ===" -ForegroundColor Yellow
319-
bash -c "ls -la /tmp/ | grep -i 'corefx\|pipe\|mcp' || echo 'No matching files'"
320+
bash -c "ls -la /tmp/ | grep -i 'corefx\|pipe\|mcp\|communication' || echo 'No matching files'"
320321
bash -c "ls -la /tmp/ | head -20"
322+
Write-Host "=== lsof for background pwsh ===" -ForegroundColor Yellow
323+
bash -c "lsof -p $($bgProcess.Id) 2>/dev/null | grep -i 'unix\|pipe\|socket' | head -20 || echo 'No sockets found'"
324+
Write-Host "=== All CoreFx sockets (find) ===" -ForegroundColor Yellow
325+
bash -c "find /tmp /var/folders -name '*CoreFx*' -o -name '*PowerShell*' 2>/dev/null | head -10 || echo 'None found'"
321326
}
322327
323328
# Kill process first, then read outputs

0 commit comments

Comments
 (0)