Skip to content
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

.net8 prev 5 unassociated AOT processes crash when the debugger starts on the system. #87739

Closed
xljiulang opened this issue Jun 18, 2023 · 4 comments

Comments

@xljiulang
Copy link

Description

eventpipeinternal.cpp

已在 Lotus.exe 中执行断点指令(__debugbreak()语句或类似调用)。

Lotus.exe!RhEventPipeInternal_WaitForSessionSignal(unsigned __int64 sessionID, int timeoutMs) 行 41 C++
Lotus.exe!S_P_CoreLib_System_Diagnostics_Tracing_EventPipeInternal__EventActivityIdControl() 行 114 未知
Lotus.exe!S_P_CoreLib_System_Runtime_CompilerServices_TaskAwaiter___c___OutputWaitEtwEvents_b__12_0() 行 295 未知
Lotus.exe!S_P_CoreLib_System_Threading_Tasks_AwaitTaskContinuation__System_Threading_IThreadPoolWorkItem_Execute() 行 647 未知
Lotus.exe!S_P_CoreLib_System_Threading_ThreadPoolWorkQueue__Dispatch() 行 924 未知
Lotus.exe!S_P_CoreLib_System_Threading_ThreadPool__DispatchCallback() 行 376 未知

Reproduction Steps

  1. Run a aot process
  2. Debug some process
  3. aot process crash

Expected behavior

aot process will not crash

Actual behavior

aot process will crash

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 18, 2023
@ghost
Copy link

ghost commented Jun 18, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

eventpipeinternal.cpp

已在 Lotus.exe 中执行断点指令(__debugbreak()语句或类似调用)。

Lotus.exe!RhEventPipeInternal_WaitForSessionSignal(unsigned __int64 sessionID, int timeoutMs) 行 41 C++
Lotus.exe!S_P_CoreLib_System_Diagnostics_Tracing_EventPipeInternal__EventActivityIdControl() 行 114 未知
Lotus.exe!S_P_CoreLib_System_Runtime_CompilerServices_TaskAwaiter___c___OutputWaitEtwEvents_b__12_0() 行 295 未知
Lotus.exe!S_P_CoreLib_System_Threading_Tasks_AwaitTaskContinuation__System_Threading_IThreadPoolWorkItem_Execute() 行 647 未知
Lotus.exe!S_P_CoreLib_System_Threading_ThreadPoolWorkQueue__Dispatch() 行 924 未知
Lotus.exe!S_P_CoreLib_System_Threading_ThreadPool__DispatchCallback() 行 376 未知

Reproduction Steps

  1. Run a aot process
  2. Debug some process
  3. aot process crash

Expected behavior

aot process will not crash

Actual behavior

aot process will crash

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: xljiulang
Assignees: -
Labels:

untriaged, area-NativeAOT-coreclr

Milestone: -

@jkotas jkotas added the bug label Jun 18, 2023
@jkotas jkotas added this to the 8.0.0 milestone Jun 18, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jun 18, 2023
@vitek-karas
Copy link
Member

@LakshanF this is very likely something about event pipe - starting VS debugger turns on event collection system wide (although that should be ETW, so maybe it's something about the runtime event source).

@LakshanF
Copy link
Member

@xljiulang, thanks for reporting this issue! And apologies for the bad experience.

This part of the code was an unimplemented feature that is currently being worked on (PR #87785).

Would you mind giving detailed instructions on how you hit this issue please? I want to validate your scenario works with the new code. Thanks!

@LakshanF
Copy link
Member

This should be now fixed

@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants