summaryrefslogtreecommitdiff
path: root/src/pal/inc
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2016-04-26 16:57:31 -0700
committerMike McLaughlin <mikem@microsoft.com>2016-04-29 12:11:25 -0700
commit9607acec3f53c4d7ac41b60d8a82affaee07832b (patch)
tree49a34563195e9989d54361824dc9e6fb83cb2340 /src/pal/inc
parentbdedbc29af654cb896157cc99f262f9fedba48f0 (diff)
downloadcoreclr-9607acec3f53c4d7ac41b60d8a82affaee07832b.tar.gz
coreclr-9607acec3f53c4d7ac41b60d8a82affaee07832b.tar.bz2
coreclr-9607acec3f53c4d7ac41b60d8a82affaee07832b.zip
Fix issue #4298 "SIGSEGV_libcoreclr.so!Debugger::GetArgCount"
The fix is to remove the call to TerminateDebugger in the EE shutdown path. The reason was to clean up the transport pipe files but that still happens in coreclr_uninitialize called by the host. Also added code to clean up the transport named pipes and semaphores on the debugger side when it detects that the target process has terminated before it sends the ExitProcess notification. Plumbed the cleanup call from dbi's ExitProcess code through the native pipe line to the transport and then to pipe code. Add PAL_CleanupTargetProcess for the "continue" named semaphore cleanup. Found and fixed a minor race in dbgshim register runtime startup.
Diffstat (limited to 'src/pal/inc')
-rw-r--r--src/pal/inc/pal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index 749f2b9bc3..7038d952fa 100644
--- a/src/pal/inc/pal.h
+++ b/src/pal/inc/pal.h
@@ -582,6 +582,13 @@ PALAPI
PAL_NotifyRuntimeStarted();
PALIMPORT
+VOID
+PALAPI
+PAL_CleanupTargetProcess(
+ IN int pid,
+ IN UINT64 disambiguationKey);
+
+PALIMPORT
void
PALAPI
PAL_InitializeDebug(