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

Debugger (vsdbg-ui) crashes on OSX when using 'embedded' symbols #1456

Closed
gregg-miskelly opened this issue May 4, 2017 · 11 comments
Closed
Assignees
Milestone

Comments

@gregg-miskelly
Copy link
Contributor

Environment data

C# Extension version: 1.9
Operating system: OSX

Steps to reproduce

  1. Create a new console app
  2. Open the .csproj and add this property: <DebugType>embedded</DebugType>
  3. F5

Expected behavior

Debugging works

Actual behavior

Get an error 'Debug adapter process has terminated unexpectedly'. If you look it crash reporter, you will see, for example that the crash is happening in MakeStream

...
Crashed Thread:        18

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000102031c
...
Thread 18 Crashed:
0   libsystem_malloc.dylib        	0x00007fffbbd8f27e malloc_zone_malloc + 103
1   libvsbaseservices.dylib       	0x000000010a7d63f8 HeapAlloc + 40
2   libvsdebugeng.impl.dylib      	0x000000010ab2c11e MakeStream(unsigned char const*, unsigned int, IStream**) + 46
3   libvsdebugeng.impl.dylib      	0x000000010ab03fc8 SymProvider::CDiaLoader::LoadSymbolsForModuleInstance(Microsoft::VisualStudio::Debugger::DkmModuleInstance*) + 312
4   libvsdebugeng.dylib           	0x000000010acd3cc2 dispatcher::DkmModuleInstance::FireCreateEvent() + 274
5   libvsdebugeng.dylib           	0x000000010acd3acd dispatcher::Clr::DkmClrModuleInstance::Create(_GUID const&, dispatcher::DkmString*, dispatcher::DkmString*, unsigned long, dispatcher::DkmModuleVersion*, dispatcher::Symbols::DkmSymbolFileId*, dispatcher::DkmModuleFlags, dispatcher::DkmModuleMemoryLayout, unsigned long, unsigned int, unsigned int, dispatcher::DkmString*, dispatcher::Clr::DkmClrRuntimeInstance*, _GUID const&, dispatcher::Clr::DkmClrModuleFlags, dispatcher::Clr::DkmClrAppDomain*, unsigned int, bool, dispatcher::Symbols::DkmModule*, dispatcher::DkmModuleInstance::MinidumpInfo const*, dispatcher::DkmDataItem const&, dispatcher::Clr::DkmClrModuleInstance**) + 957
6   libvsdebugeng.dylib           	0x000000010acd4175 ProcAEA58B7861C86E08A55546A1C4D0ACAD + 229
7   libvsdebugeng.impl.dylib      	0x000000010aa9512c ManagedDM::CDbiCallback::DoLoadModuleImpl(ManagedDM::CClrInstance*, unsigned int, Microsoft::VisualStudio::Debugger::Clr::DkmClrAppDomain*, ICorDebugModule*, Microsoft::VisualStudio::Debugger::DkmModuleFlags, Microsoft::VisualStudio::Debugger::DkmString*, Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance**, ManagedDM::CDMModule**) + 2604
8   libvsdebugeng.impl.dylib      	0x000000010aa95d4d ManagedDM::CDbiCallback::DoLoadModule(ICorDebugAppDomain*, ICorDebugModule*, Microsoft::VisualStudio::Debugger::DkmModuleFlags, Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance**) + 253
@gregg-miskelly
Copy link
Contributor Author

I have a PR out in our internal repo. So this should be fixed the next time we insert a new debugger.

@azinoviev
Copy link

@gregg-miskelly could you please provide a new beta with #1497 merged?

@gregg-miskelly
Copy link
Contributor Author

I believe Dustin is about to release a new beta that will have this. @DustinCampbell is that correct?

@DustinCampbell
Copy link
Member

You're welcome to @gregg-miskelly. I'm completely swamped with an issue at the moment.

@gregg-miskelly
Copy link
Contributor Author

@DustinCampbell will do.

@gregg-miskelly
Copy link
Contributor Author

@azinoviev Please try installing v1.10.0-beta4 and see if this resolves your issue. See here for instructions.

@azinoviev
Copy link

Thanks a lot! xUnit debugging works now :) A real lifesaver!

@gregg-miskelly
Copy link
Contributor Author

@azinoviev thanks for verifying!

@twgraham
Copy link

Gotta give my thanks on this too... between VSCode and JetBrains Rider, I had no way to debug my unit tests for a while. Thanks a lot!

@llint
Copy link

llint commented Jun 13, 2017

StackExchange.Redis 1.2.3 still seems to crash under Visual Studio for Mac 7.0.1 (build 24), it is now working properly under Visual Studio Code (on Mac).

@gregg-miskelly
Copy link
Contributor Author

@llint I believe the Visual Studio for Mac alpha channel has the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants