Desmond File

Blog archive

Microsoft Cuzz: Fuzz Testing Goes Parallel

Wandering the Professional Developer Conference (PDC) show floor today, I ran across the Microsoft Research section, and spoke with Maden Musuvathi, a researcher in the Software Reliability Research group at Microsoft Research working on testing solutions for concurrent code. He was demoing a prototype product called Microsoft Cuzz -- shorthand for Concurrent Fuzz testing.

Of course, fuzz testing is used to smoke out flaws in code by blasting random or otherwise unexpected data input at application interfaces, with the goal of kicking off program failures that might otherwise go undetected. Cuzz does something similar, shaping thread interaction in concurrent C or C++ Win32 code to create conditions likely to produce hard to reproduce failures.

As Musuvathi explains. Cuzz determines the mathematical probability that a concurrent code failure will occur by observing the number of threads and the number of synchronizations. Other issues, such as locks, mutexes and complex synchronizations don't impact the calculated probability, Musuvathi said. Developers inject the Cuzz DLL into the binary executable and then run the test. Cuzz tracks each thread it activates, logging the thread activations that result in a crash.

Musuvathi said that developers at PDC have lamented the difficulty of finding and resolving concurrency-based flaws. It's a lament Microsoft's own teams have shared. Musuvathi said another concurrent code testing app -- called CHESS -- was initially developed to help parallel code projects at Microsoft, including Parallel LINQ and Task Parallel Library (TPL). Musuvathi described CHESS as a unit testing tool, whereas Cuzz can be broadly applied to detect hard-to-find flaws. Cuzz remains a project, but Musuvathi is hopeful that the tool can find its way into developers hands down the road. He also says the program will likely be advanced to address managed and 64-bit parallel code down the road.

Posted by Michael Desmond on 11/18/2009


comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube