SNA Server Access Violation in Function s1pucosp

Last reviewed: February 4, 1998
Article ID: Q180052
The information in this article applies to:
  • Microsoft SNA Server, versions 3.0, 3.0 Service Pack 1 (SP1), 3.0 SP2, and 4.0

SYMPTOMS

The SNA Server service (Snaservr.exe) may fail unexpectedly with an access violation. At the customer site where this problem was reported, the access violation would occur once every two weeks to one month. The access violation appears to be related to the use of pooled 3270 LUs that are configured to use associated printers.

When the problem occurs, all users connecting through SNA Server lose their host sessions and the SNA Server service no longer runs. The Windows NT application event log should indicate an Event 624, logged by SNA Server.

CAUSE

An uninitialized variable causes the SNA Server to attempt to access an invalid array index within an internal structure.

STATUS

Microsoft has confirmed this to be a problem in SNA Server version 3.0, 3.0 SP1, 3.0 SP2 and 4.0. A supported fix is now available for SNA Server 3.0 and 4.0 systems, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.

MORE INFORMATION

When this problem occurs, the following entry will be logged in the <Ntroot>\Drwtsn32.log file, indicating an access violation in function "s1pucosp":

   Application exception occurred:
        App: exe\snaservr.DBG (<process id>)
        Exception number: c0000005 (access violation)

   [...]

   State Dump for Thread Id <thread>

   eax=00000101 ebx=00000000 ecx=00000101 edx=00000000 esi=00000000
   edi=01969668
   eip=002c7856 esp=0125fee8 ebp=001c1748 iopl=0
   nv up ei pl zr na po nc
   cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000 efl=00000246


   function: s1pucosp
    002c7825 0fbfc1           movsx   eax,cx
   002c7828 8b14850ce23800                     ds:00000101=????????
                            mov     edx,[s1mode+0x380c (0038e20c)+eax*4]
   002c782f 6683ba0801000000 cmp     word ptr [edx+0x108],0x0
   002c7837 7426             jz      s1pucosp+0x107f (002c785f)
   002c7839 33d2             xor     edx,edx
   002c783b 0fbfc1           movsx   eax,cx
   002c783e 8b1c850ce23800                     ds:00000101=????????
                            mov     ebx,[s1mode+0x380c (0038e20c)+eax*4]
   002c7845 668b8b08010000   mov     cx,[ebx+0x108]  ds:00000108=????
   002c784c 0fbfc1           movsx   eax,cx
   002c784f 8b1c850ce23800                     ds:00000101=????????
                             mov     ebx,[s1mode+0x380c (0038e20c)+eax*4]
   FAULT ->002c7856 66399308010000   cmp     [ebx+0x108],dx
   ds:00000108=????

   *----> Stack Back Trace <----*

   Function Name
   snaservr!s1pucosp  (FPO: [EBP 0x000000ff
   snaservr!s1pucmgr  (FPO: [0,0,1])
   snaservr!s1pusvc  (FPO: [0,4,3])
   snaservr!s1pgdisp  (FPO: [1,0,0])
   snaservr!sbpsched  (FPO: [EBP 0x0125ffec
   snaservr!sbpgmain  (FPO: [0,0,0])
   snasvc!ServiceMainFunction  (FPO: [2,1,3
   advapi32!RegisterServiceCtrlHandlerA
   snaservr!<nosymbols>
Keywords          : kbbug3.00 kbbug3.00.sp1 snaserverservice kbbug3.00.sp2 kbbug4.00 kbnetwork
Version           : WINDOWS:3.0,3.0SP1,3.0SP2,4.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.