Stairs create unknown sector types

All versions of the Doom engine contain an error in the  function which leaves several fields in the   thinker structure uninitialized. This structure tracks moving sector floors, remembering facts such as their destination height, speed, crushing properties, and for "lower-and-change" types, what sector special and flat to which the sector should change.

By leaving the,  ,  , and   fields of this structure uninitialized, this error causes the   function to later read effectively random values out of these fields. If the value of the  field just happens to be , the random special and flat texture will be propagated to the sector. Since there is only one possible value out of 65536 that will result in this behavior, this problem is of extreme rarity, and may not be witnessed even once during literal years of gameplay.

This elusive glitch may cause the game to crash by attempting to load an invalid flat. More often, however, it causes the game to exit when the player steps on the offending sector. The error message "P_PlayerInSpecialSector: unknown type ###," with "###" being a seemingly random number, will appear at the DOS prompt.

thumb|300px|right|This problem can also occur in [[Strife, which was based on Doom II 1.666.]] In this video, a descending set of stairs in Tarnhill that lead to the Front Base have suffered this malfunction on a single sector in the set. It has taken on a yellow-and-black-striped texture, and has the unknown sector type 102. The game exits as soon as the player steps into this sector. Unfortunately, due to Strife's hub system, this error has been saved permanently into the player's save file and will continue to act as an obstruction to progress.

This bug was first discovered and repaired by authors of the Boom source port, but knowledge of it remained low even afterward.