Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[9.0-staging] Unable to open dump json file #114693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
carlossanlop opened this issue Apr 15, 2025 · 5 comments
Open

[9.0-staging] Unable to open dump json file #114693

carlossanlop opened this issue Apr 15, 2025 · 5 comments
Labels
arch-arm64 area-Infrastructure-coreclr Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro)
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Apr 15, 2025

@hoyosjs Unable to access the dump json file.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016432
Build error leg or test failing: profiler/handles/handles/handles.sh

Error Message

{
  "ErrorMessage" : "Problem launching createdump",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}

During a test timeout, successfully collect a dump file for it:

 Starting:    profiler.handles.XUnitWrapper (parallel test collections = on [2 threads], stop on fail = off)
   profiler.handles.XUnitWrapper: [Long Running Test] 'profiler/handles/handles/handles.sh', Elapsed: 00:03:59
   profiler.handles.XUnitWrapper: [Long Running Test] 'profiler/handles/handles/handles.sh', Elapsed: 00:06:00
   profiler.handles.XUnitWrapper: [Long Running Test] 'profiler/handles/handles/handles.sh', Elapsed: 00:08:00
Attempting to collect crash dump: /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp
Invoking: sudo /root/helix/work/correlation/createdump --crashreport --name "/home/helixbot/dotnetbuild/dumps/crashdump_48.dmp" 48 --withheap
   profiler.handles.XUnitWrapper: [Long Running Test] 'profiler/handles/handles/handles.sh', Elapsed: 00:10:00
createdump stdout:
[createdump] Gathering state for process 48 corerun
[createdump] Writing crash report to file /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp.crashreport.json
[createdump] Crash report successfully written
[createdump] Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp
[createdump] Written 97964032 bytes (23917 pages) to core file
[createdump] Target process is alive
[createdump] Dump successfully written in 340ms

createdump stderr:

Invoking: sudo ls -l /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp.crashreport.json
stdout: -rw------- 1 root root 29218 Apr 15 04:39 /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp.crashreport.json

But then when we try to access the crashreport.json, access is denied:

=========================================
Error reading /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp.crashreport.json: System.UnauthorizedAccessException: Access to the path '/home/helixbot/dotnetbuild/dumps/crashdump_48.dmp.crashreport.json' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.ReadAllText(String path, Encoding encoding)
   at CoreclrTestLib.CoreclrTestWrapperLib.TryPrintStackTraceFromCrashReport(String crashReportJsonFile, TextWriter outputWriter)
Collected crash dump: /home/helixbot/dotnetbuild/dumps/crashdump_48.dmp
    profiler/handles/handles/handles.sh [FAIL]
      Problem launching createdump (may not have execute permissions): execve(���ϰ) FAILED No such file or directory (2)
      
      Assert failure(PID 57 [0x00000039], Thread: 64 [0x0040]): !PreemptiveGCDisabled()
          File: /__w/1/s/src/coreclr/vm/threads.cpp:911
          Image: /root/helix/work/correlation/corerun

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016432
Error message validated: [[Long Running Test] 'profiler/handles/handles/handles.sh']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/15/2025 3:41:30 PM UTC

Report

Build Definition Test Pull Request
1016432 dotnet/runtime profiler/handles/handles/handles.sh

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016432
Error message validated: [Access to the path '.*crashreport.json' is denied.]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 4/22/2025 8:52:38 PM UTC

Report

Build Definition Test Pull Request
1016432 dotnet/runtime profiler/handles/handles/handles.sh

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016432
Error message validated: [Problem launching createdump]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/22/2025 8:55:30 PM UTC

Report

Build Definition Test Pull Request
1016432 dotnet/runtime profiler/handles/handles/handles.sh

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Report

Build Definition Test Pull Request
1027223 dotnet/runtime profiler/handles/handles/handles.sh
1024239 dotnet/runtime profiler/handles/handles/handles.sh
1023233 dotnet/runtime profiler.handles.WorkItemExecution
1016432 dotnet/runtime profiler/handles/handles/handles.sh

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 4
@carlossanlop carlossanlop added arch-arm64 Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro) labels Apr 15, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 15, 2025
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@tommcdon
Copy link
Member

@mdh1418

@tommcdon tommcdon removed the untriaged New issue has not been triaged by the area owner label Apr 16, 2025
@tommcdon tommcdon added this to the 10.0.0 milestone Apr 16, 2025
@mdh1418
Copy link
Member

mdh1418 commented Apr 21, 2025

The profiler test itself passed Profilee STDOUT: PROFILER TEST PASSES, but for some reason the process isn't exiting given theres no Expected: 100\nActual:100 that is supposed to output in the test script.

This happens occasionally, and is not clear how to reproduce, I don't believe this is specific to the handles profiler test at all, but something going awry with the child process exiting.

There's some extra logging that we've added to CoreclrTestWrapperLib that didn't make it to release/9.0-staging, so for example, if the environment var for USER is not set, that might be why the crashdump couldn't be opened. @kunalspathak Do you know what's responsible for setting the USER env var?

@mdh1418
Copy link
Member

mdh1418 commented Apr 22, 2025

The test timeout is not unique: #66174 #107067

Closing the profiler/handles/handles/handles.sh side of this issue.

@mdh1418 mdh1418 changed the title [9.0] profiler handles.sh long running test then unable to open dump json file [9.0-staging] Unable to open dump json file Apr 22, 2025
@mdh1418 mdh1418 removed their assignment Apr 22, 2025
Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm64 area-Infrastructure-coreclr Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro)
Projects
Status: No status
Development

No branches or pull requests

3 participants