Lobsters - 03 Dec 2026

Page 10 of 10

The automatic steps stop at bvt. The only mention of setting tst in tools is in a usage example. A person had to take it farther. The scripts don't expand those abbreviations. Elsewhere BVT is build verification test. IDW, according to Chen, means Internal Developer Workstation, "builds stable enough to be self-hosted by the development team". For the rest I'd be guessing. Microsoft's August 2001 PressPass account says a daily build went "to the 'Build Verification and Test' Lab for review and identification of new bugs caused by the changes". That lab had people in it. An SP1 script mails it "Build is ready for BVT", and assignbvt.pl, which could have set tests running by itself, is disabled in every branch's settings. You get another view of the BVT in the source of the products it tested. Passport has an assert commented out with "BVT Break!!!". IE's window tracing is marked "DISABLED BY DEFAULT (1) for perf reasons (2) to pass BVT on initial checkin".

How much of this was still running? For the CRC check on builds going to Microsoft Japan we have the answer in writing. It "was turned off accidentally for over a month and nobody noticed, so going to comment it out for now". There's also missingfilecheck.cmd. It refers to four scripts that are missing from the tree, and in the tree nothing calls it.

You could fail a test well before your change got near a lab. Under inetsrv/iis/svcs/cmp/checkin the IIS team's ASP smoke tests print the filename followed by FAIL. Their instructions say "You will need to correct your problem before checking in". An IIS that wouldn't shut down afterwards failed too. There are developer regression tests, or DRTs, in the shell, COM, WMI, ADSI and network redirector. For IE's HTML engine Trident you went to the Gauntlet, itself an HTML application at inetcore/mshtml/tools/whistgaunt.hta. Its wizard took your change, queued it on a server and had it built, tested and checked in on your behalf. Options commented out since suggest it once could have merged several people's changes too. Before getting past the mail page you had to give it four quite human pieces of information: who tested it, who reviewed the code, a summary, and the binaries affected.

case 2:

fRet = fRet || VerifyValue(mail_tester, 'value', '', 'Tested By');

fRet = fRet || VerifyValue(mail_codereview, 'value', '', 'Code Reviewer');

fRet = fRet || VerifyValue(mail_summary, 'value', '', 'Summary');

fRet = fRet || VerifyValue(mail_binaries, 'value', '', 'Binaries Affected');

break;

In other words, a developer was asking a web page for permission to check in. One option in the Gauntlet still said "Do a full ssync and clean build". Ssync is what a sync was called back in SLM.

On x86 razzle.cmd also put PREfast in everybody's path and updated it when a later version had been synced. This is the checker Microsoft later shipped with its compilers as /analyze. The other name that comes up is PREfix, the Microsoft Research simulator that looked at a whole program. Its public header supplies macros to tell it when a path is impossible. About 200 lines of comments are concerned with satisfying one checker or the other. ZDNet reported on a Lucovsky memo in February 2000. It said Windows 2000 was going out with "over 63,000 potential known defects" and more than 65,000 potential issues reported by PREfix, and that new code for Whistler, as XP was then called, wouldn't be checked in until they were fixed.

Near the end you can put the machine's version of events beside the testers' version. Microsoft's PressPass piece says they were down to three bugs by 17 August 2001 and "the final build was finished at 3 a.m. Saturday morning". Four CD burners turned out 1,000 copies for the testers in 12-minute passes. The testers signed off 4,300 items individually on an internal website. One team leader had pledged to eat a real bug for every 250 the developers fixed in a day.

Who wrote it, and when

How much of this was the work of any particular person? One courtesy the NT team did the reader before anybody had thought of a leak was to put an Author field in each file, usually along with a date. You can read much of the kernel in the order in which it was made.

/*++

Copyright (c) 1989 Microsoft Corporation

Module Name:

eventobj.c

Abstract:

This module implements the kernel event objects. Functions are

provided to initialize, pulse, read, reset, and set event objects.

Author:

David N. Cutler (davec) 27-Feb-1989

Read the dates on Dave Cutler's dispatcher objects. Events on 27 February 1989, semaphores the day after, timers on 2 March. On the 4th he did threads, the 5th APCs, the 6th DPCs and the 7th processes. Gary Kimura, Mark Lucovsky, Lou Perazzoli and Steve Wood have files dated that year too. Eleven years later Cutler is doing the AMD64 kernel, starting with initkr.c on 22 April 2000 and on into 2001, on a processor still in simulation. One register has to be written before another "to work around a bug in the simulator". Forrest Foltz, porting the HAL, gets as far as "The simulator takes about a day to go through this, so for right" and never finishes the thought. And in one place the date is whatever you make of "2-Feby-2000".

You might expect the first 64-bit Windows to be in the directory for the first 64-bit XP you could buy. Instead look beside alpha. The memory manager in axp64 has an entry by Landy Wang on 2 June 1998, "Modifications for full 3-level 64-bit NT." Someone took the trouble to draw where the addresses went.

Virtual Memory Layout on the AXP64 is:

+------------------------------------+

0000000000000000 | User mode addresses - 4tb |

| |

000003FFFFFEFFFF | | MM_HIGHEST_USER_ADDRESS

+------------------------------------+

000003FFFFFF0000 | 64k No Access Region | MM_USER_PROBE_ADDRESS

+------------------------------------+

That is virtual address space for a program, with another terabyte reserved elsewhere in the map for the system cache. The machine could have a great deal less physical RAM. Raymond Chen recalls that the initial work on 64-bit Windows, code name Sundown, ran on Alpha because those processors already existed while Intel's Itanium was still a simulator. You can see the distinction in Microsoft's April 1999 WinHEC demonstration, first Windows 2000 on a Merced emulator, then a physical four-processor Alpha with seven gigabytes of RAM. A December 2001 account confirms that the internal 64-bit Alpha builds were never released. The shipping XP 64-Bit Edition targeted Itanium. The folder preserves the real hardware platform on which the common Windows codebase first made that transition.

Some teams, mostly the graphics people and the 16-bit kernel, used an editor macro that stamped the exact time into their history blocks, down to the second. There are 370 unique stamps in the tree's C, header and assembly files, and 361 of them have a weekday that matches the calendar, a fair check on the dates an editor supplied. Fifty-eight fall between midnight and five in the morning, and fifty-seven of those belong to two people, Charles Whitmer and David Weise. Weise, whom Larry Osterman called the person "most responsible for the success of Windows 3.0", wrote a signal handler for the 16-bit kernel at 00:36 on Christmas Day 1989, months before Windows 3.0 shipped, and at 01:03 on 6 February 1990 he left a history note over one of its memory routines.

; History: ;

; ;

; Tue 06-Feb-1990 01:03:54 -by- David N. Weise [davidw] ;

; I got no clue what the history of this thing is, all I know is ;

; that I got to fix it fast to prevent selector leak. ;

;-----------------------------------------------------------------------;

"I got no clue what the history of this thing is, all I know is that I got to fix it fast to prevent selector leak." The stamp on the fix itself is forty-three minutes later.

Counts by hour

| HOUR | WHITMER | WEISE | OTHERS | ALL |

|---|---|---|---|---|

The clock can show you a whole succession of people in one function. HmgLock is the lock on GDI handles. Patrick Haluptzok wrote it in 1991, Charles Whitmer rewrote it in assembly in August 1992 ("The common case falls straight through"), and Cutler added routines in September. A year later, in September 1993, Michael Abrash "Tuned ASM code". It would be about a year and a half before he went to id Software to work on Quake. In June 1995 Andrew Goossen "Rewrote for Kernel Mode" as graphics was being moved into the kernel for NT 4.0. That's five names in four years.

The credits nobody saw

The people who wrote Windows wanted their names on the screen, and in this part of the tree there are at least five credit rolls, all of them hidden or switched off one way or another.

Next to the Beziers screensaver sits a file called winbez.pts that the build doesn't use. Every byte in it is inverted, so a search for text finds nothing. Flip the bits back and you get 468 names, sorted by first name, from Aaron Contorer to Zvi Berkovich, with Bill Gates, David Cutler, Helen Custer, Michael Abrash, James 'J' Allard and Jim Allchin somewhere in between (and no Steve Ballmer). The Beziers saver that did ship still has a secret mode in its window setup. Set bit 14 of its Width setting and it draws a spinning, pulsing ball of 1,500 dots instead of curves. The code around the ball still has the scaffolding for turning the dots into letters, a font, an off-screen bitmap for text, a text target for every dot and a picker over a list of strings. The list is empty, and the step that draws a string and sends the dots to it is gone.

if (gczScreen & (1 << 14)) {

Init(hWnd);

} else {

ghbrushBack = GetStockObject(BLACK_BRUSH);

ghpenBez = CreatePen(PS_SOLID, 0, 0xff);

ghpenErase = CreatePen(PS_SOLID, 0, 0);

SelectObject(ghdc,ghpenBez);

SelectObject(ghdc,ghbrushBack);

vInitPalette(ghdc);

wTimer = SetTimer (hWnd, 1, 1, NULL);

}

The OpenGL 3D Text screensaver checked what you typed against a keyword table inverted the same way. "volcano" showed seventeen volcanoes of the Cascades, "i love nt" answered "good?", and "not evil" showed 813 names, which at nine or ten seconds a name could take over two hours. Video for Windows had a roll you opened by clicking A-V-I in Morse code on a playing video. The NT CD Player had one you reached, in mini mode with no disc in, by right-clicking its display with Ctrl and Shift held and then right-clicking again, "dedicated to Penelope Broomer". The ActiveMovie team built theirs as a DirectShow source filter that plays the credits as video.

None of those credit rolls can be reached in XP. The keyword table is compiled out, the OpenGL savers are out of the build and their Direct3D rewrites have no keywords. The Morse knock is compiled out too, and XP ships a different CD Player. The rewrites lost a joke as well. The OpenGL 3D Pipes, set to mixed joints, drew a Utah teapot instead of a joint about once in a thousand. BLUE_MOON was 153, the random number that got you the teapot.

#define BLUE_MOON 153

int

NORMAL_STATE::ChooseJointType( )

{

switch( jointStyle ) {

case ELBOWS:

return ELBOW_JOINT;

case BALLS:

return BALL_JOINT;

case EITHER:

// draw a teapot once in a blue moon

if( ss_iRand(1000) == BLUE_MOON )

return( TEAPOT );

The code that draws it is commented "Horrors! It's the teapot!", and XP's 3D Pipes doesn't have it.

Microsoft later banned easter eggs from Windows outright, and Larry Osterman explained why in terms of Trustworthy Computing. You should be able to trust that there is nothing on your computer nobody planned, and hidden code can introduce security bugs. Fair enough. It's still a bit sad, because these rolls are the only lists I know of with all those names in one place, and you need a leak to read them.

So I'll end with a short one that needs no decoding. Jim Horne, Wes Cherry, Robert Donner and Curt Johnson, David Norris and Hans Spiller, Chris Peters, Peter Alschitz, Mark Lucovsky, Lou Perazzoli, Robert Rounthwaite and the Microsoft Research spam team, David Weise, Charles Whitmer. And the people whose names turn up wherever Windows learned to read right to left. Samer Arafeh (the complex-script language pack in 1996, the kashida inserter in 1998, the Hijri adjustment in 1999), Mohamed Abdel-Hamid (the mirroring code, with his name spelled four different ways across the files, which anyone with an Arabic name will recognise), and Mohamed Sadek (GDI+'s bidirectional algorithm in 2000, and fifty-four comments signed with his Microsoft alias across the tree, two dozen of them in the shell, one of them over a table that nobody was to change without asking him first). And the testers in the compatibility database, whose names I left out on purpose, since none of them signed up to be in a blog post.

Notes and further reading

The copy I read is only part of the leak. By size, most of the 43 GB torrent was an archive of Microsoft patents, and most of the rest was older leaks (MS-DOS, NT 3.5 and 4, Windows 2000, Windows CE, the original Xbox, the Windows 10 Shared Source Kit and more) and some videos. The new part was one 2.9 GB archive holding two trees, XP SP1 and Windows Server 2003. I only read the XP one, and it isn't complete. Neither tree has Winlogon's source, so the XP that a developer compiled from it wouldn't install as it stood, while Server 2003, the more complete tree, did install once he put in a Winlogon from a retail copy. There's none of the activation code, as the licensing section says. There's no Pinball or Spider Solitaire, although shell/osshell/games/dirs lists both. The compiler source is missing too, along with a handful of scripts that the build calls. One community guide to building the leak reckons the XP and Server 2003 source together are about 70% of the real thing.

Every quote in the blog post was checked against the file it comes from. Its code blocks are copied straight out of the files with only tabs expanded and the common indentation taken off, and every count was made with rg over the tree. Where I say I couldn't find something, I mean I searched the tree and the web and came up empty, so it may still exist somewhere.

- Raymond Chen's The Old New Thing gives the other side of most of the compatibility stories here, and Joel Spolsky's How Microsoft Lost the API War has the SimCity story.

- Kuro5hin's We Are Morons: a quick look at the Win2k source (February 2004) has the comments before they were cleaned.

- Michael Keller's FreeCell FAQ covers the Internet FreeCell Project and game 11982.

- For Arabic typography, see my earlier article, the W3C's Arabic Layout Requirements, Edo Smitshuijzen's The big kashida secret, and Chromium's Intent to Prototype for kashida justification.

- Mehran Sahami, Susan Dumais, David Heckerman and Eric Horvitz wrote A Bayesian Approach to Filtering Junk E-Mail (1998), and Heckerman's memoir Heckerthoughts tells what happened to the research behind the Outlook Express filter.

- Mark Lucovsky's Windows: A Software Engineering Odyssey at the 2000 USENIX Windows Systems Symposium explains how the NT build lab worked before and after the lab branches. Microsoft's account covers XP's last weeks.

- Its two TechNet articles cover deploying Windows XP Product Activation, what activation sends and what SP1 changed.

#Programming #History #Microsoft

Previous page | More Lobsters | Headlines

Original: https://lr0.org/blog/p/winxp/