Debugging Windows Service Startup with Service Isolation

Tuesday, May 10, 2011

A year and a half ago I touched on the subject of debugging process startup, such as the startup of Windows Services, using the GFlags utility (the ImageFileExecutionOptions registry key). The general idea is to rely on the Windows loader to launch a debugger instead of the debugged process, and trace your way through the process startup code. Unfortunately, this relies on the debugged process to run in the same session as you—otherwise, you won’t be able to actually see the debugger. Starting from Windows Vista, Windows services are isolated into a separate session to which you...

Waltzing Through the Parallel Extensions June CTP: Synchronization Primitives

Wednesday, June 11, 2008

Just a few days ago, the Parallel Extensions team has released a new CTP of the Parallel Extensions for .NET 3.5, a.k.a. PFX.  This new CTP is not just a bunch of bug fixes - it's packed with new functionality for us to explore.  (I've written some introduction bits on the December '07 CTP in the past, so you might want to read them if you haven't played with the PFX yet.) In this post series, we will look at most of the interesting new functionality. Synchronization Primitives This release contains a significant number of synchronization-related primitives, providing better...
no comments

Next Generation Production Debugging: Demo 6

Thursday, April 10, 2008

This is the last in a series of posts summarizing my TechEd 2008 presentation titled "Next Generation Production Debugging".  Previous posts in the series: Introduction and first demo (or how to survive without a debugger) Taking dump files and opening them up; analyzing a memory leak Dissecting deadlocks (native and managed) Analyzing an invalid handle situation After spending some quality time with the debugger, analyzing an invalid handle situation, I approached the final demo.  In this particular case, the application is requested to perform some heavy processing operation on a set of images (I called...

Next Generation Production Debugging: Demo 4

Tuesday, April 8, 2008

After utilizing WinDbg and SOS to diagnose a memory leak in our application, I shifted focus to a whole different category of problems - deadlocks. By issuing the "Move" command on a particular picture in the client application, the user ends up with a non-responsive UI.  We can't tell for sure whether the reason for the hang is in the UI or in the WCF service being called without forcing our way in with a debugger. However, there's a basic way of diagnosing deadlocks on Windows Vista and Windows Server 2008, which is built in into the operating system...
2 comments

Next Generation Production Debugging: Slides, Code and Demo Transcripts (Demo 1)

Monday, April 7, 2008

To each and every one of you who attended my TechEd session - thanks!  There are so many interesting talks and I appreciate the fact you have chosen mine. As I promised, this post is a summary of slides, demo code and the transcripts of each demo I've shown throughout the session.  (As soon as the session recording will be available, I will update this post with a link to it.) I divided the demo transcripts into a series of posts because they are fairly long.  You can find everything I've written regarding the TechEd at the TechEd08 blog...

XPerf – Windows Performance Toolkit

Saturday, March 15, 2008

Event Tracing for Windows has been with us since Windows 2000.  It is an infrastructure for raising events from various system components, and has only been used by a small number of kernel-mode entities.  In Windows XP, MOF files (familiar from WMI provider metadata) were used to describe events.  Finally, in Windows Vista and Windows Server 2008 events were described by XML manifests, an investment was made in popularizing ETW, and hundreds of new event providers were added. What kind of information is generated by all these providers?  Well, first of all, there's the Windows Event Log which consumes...
6 comments

Windows Server 2008 Open House Presentation and Demos

Friday, March 14, 2008

Alon Fliess and I have presented at three Open House sessions at Microsoft on the subject of the upcoming Windows Server 2008.  My last session was February 21, several days after the RTM but still a few days before the Heroes Happen {Here} launch event. Several participants asked for the slides and demos (in past sessions as well), so I decided to upload everything to my SkyDrive for everyone's convenience.  The subjects covered in the latest presentation follow: Introduction to Windows Server 2008 - Reliability, Manageability, Optimizations Application Restart and Recovery - Utilizing the Restart Manager Kernel Transaction...
no comments