-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
AV debugging a console app on OSX #5435
Comments
cc @tzwlai Should this be fixed in RC2? |
I am not sure if this will turn out to be useful or not, but I caught this race once with PAL process logging enabled for both debugger and target processes. This starts from the CreateProcess of the target.
|
I have a core dump of the issue. The crash is while processing a MT_ReadMemory message. Issue appears to be that pMessage->m_pbDataBlock points to junk. |
Fix with PR dotnet/coreclr#3976 |
This is related to dotnet/coreclr#3987 |
Repo:
• Dotnet new (console app)
• Load in VS Code
• Set breakpoint on Console.WriteLine
• Start debugging
o Adjust launch.json
The crash is immediate before the break point is hit. I hit it 6 times in a row, and then it is hit and miss happening about 1 out of 4 times. I believe this is today’s dotnet-cli, so there is not a newer one.
Process: dotnet [1135]
Path: /usr/local/share/dotnet/dotnet
Identifier: dotnet
Version: 0
Code Type: X86-64 (Native)
Parent Process: clrdbg [1134]
Responsible: Electron [1058]
User ID: 501
Date/Time: 2016-03-24 08:40:51.490 -0700
OS Version: Mac OS X 10.11.3 (15D21)
Report Version: 11
Anonymous UUID: C338F9E8-014F-0911-4231-3B3EA16021B4
Sleep/Wake UUID: 5E4DE1D4-C3FC-4757-9165-216FE084E771
Time Awake Since Boot: 6600 seconds
Time Since Wake: 920 seconds
System Integrity Protection: enabled
Crashed Thread: 3
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Thread 3 Crashed:
0 libsystem_platform.dylib 0x00007fff8f1fdfbd platform_memmove$VARIANT$Haswell + 157
1 libcoreclr.dylib 0x000000010159836e DbgTransportSession::SendMessage(DbgTransportSession::Message, bool) + 302
2 libcoreclr.dylib 0x000000010159a29f DbgTransportSession::TransportWorker() + 3967
3 libcoreclr.dylib 0x0000000101598109 DbgTransportSession::TransportWorkerStatic(void_) + 9
4 libcoreclr.dylib 0x000000010152f178 CorUnix::CPalThread::ThreadEntry(void*) + 328
5 libsystem_pthread.dylib 0x00007fff8a2e3c13 _pthread_body + 131
6 libsystem_pthread.dylib 0x00007fff8a2e3b90 _pthread_start + 168
7 libsystem_pthread.dylib 0x00007fff8a2e1375 thread_start + 13
The text was updated successfully, but these errors were encountered: