BUG: WinNT DDK SCSI Tape Class Driver Sample Causes System Crash

ID: Q170085


The information in this article applies to:


SYMPTOMS

The SCSI tape class driver shipped on the Windows NT DDK crashes the system if it is built and used without modification. The driver source is in \ddk\src\storage\class\scsitape and builds a binary called TAPE.SYS.

Note that this bug is only in the driver sample shipped on the Windows NT DDK. The TAPE.SYS driver shipped with the Windows NT operating system does not experience this problem.


CAUSE

The SCSI tape class driver is building with the wrong class driver library. The correct library should be OLDCLASS.LIB.


RESOLUTION

Modify the SCSI tape class driver SOURCES file. Change the line in the file from:


   TARGETLIBS=$(BASEDIR)\lib\*\$(DDKBUILDENV)\class.lib 

to:

   TARGETLIBS=$(BASEDIR)\lib\*\$(DDKBUILDENV)\oldclass.lib 

In order for TAPE.SYS to build, first build the OLDCLASS.LIB library. Run "build -cef" (or simply "bld") in \ddk\src\storage\class\oldclass. Then run "build -cef" (or "bld") in \ddk\src\storage\class\scsitape. This will create a valid version of TAPE.SYS.

Note that the Oldclass directory is not built by default when the Class directory is built. This is because the DIRS file does not include the Oldclass directory. If you wish to make Oldclass build whenever the Class directory is built, change the DIRS file in \ddk\src\storage\class to the following:

   DIRS= oldclass  \ 
         class     \ 
         scsicdrm  \ 
         scsicdwo  \ 
         scsidisk  \ 
         scsitape  \ 
         spti 


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

For specific information on building and debugging Windows NT device drivers, refer to the Windows NT DDK online documentation.


Keywords          : ntddkstorage 
Version           : 4.0
Platform          : NT WINDOWS 
Issue type        : kbbug 

Last Reviewed: March 4, 1999