Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7587

rosautotest obtains realtime priority and blocks the system on MSVC build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • NTCore
    • None

    Description

      Steps:

      • Install MSVC build (e.g. r61005)
      • Repeatedly run tests using rosautotest, e.g. rosautotest user32 GetIconInfo in a looping batch file

      Expected:

      • Tests run repeatedly, and any crashes or irregularities are specific to the test(s) run

      Actual:
      The system hangs after a while. rosautotest has somehow gotten realtime priority. Since it polls the pipe for input, it takes all CPU time and the test cannot fill the pipe with data because it is never scheduled.

      kd> !process
      PROCESS b0f5c508  SessionId: 0  Cid: 02a4    Peb: 7ffba000  ParentCid: 0210
          DirBase: 179e2000  ObjectTable: e14cce38  HandleCount:  37.
          Image: rosautotest.exe
          VadRoot b0f7f2e8 Vads 263 Clone 0 Private 58. Modified 0. Locked 0.
          DeviceMap 00000000
          Token                             e14ce390
          ElapsedTime                       00:00:20.168
          UserTime                          00:00:00.000
          KernelTime                        00:00:00.000
          QuotaPoolUsage[PagedPool]         0
          QuotaPoolUsage[NonPagedPool]      0
          Working Set Sizes (now,min,max)  (3436544, 0, 300) (13746176KB, 0KB, 1200KB)
          PeakWorkingSetSize                3436544
          VirtualSize                       11 Mb
          PeakVirtualSize                   11 Mb
          PageFaultCount                    0
          MemoryPriority                    BACKGROUND
          BasePriority                      24
          CommitCharge                      2478
       
              THREAD b0f5c1f8  Cid 02a4.02a8  Teb: 7ffdf000 Win32Thread: b0f878d8 RUNNING on processor 0
       
      kd> kp
      ChildEBP RetAddr  
      f82ddd10 8048c860 nt!RtlpBreakWithStatusInstruction
      f82ddd44 8036c9c5 nt!KeUpdateSystemTime(struct _KTRAP_FRAME * TrapFrame = 0xf82ddd64, unsigned long Increment = 0x249c0, unsigned char Irql = 0x00 '')+0xd0 [p:\trunk_slave\x86_msvc\build\ntoskrnl\ke\time.c @ 102]
      f82ddd5c 8036e010 hal!HalpClockInterruptHandler(struct _KTRAP_FRAME * TrapFrame = 0xf82ddd64)+0xb5 [p:\trunk_slave\x86_msvc\build\hal\halx86\generic\timer.c @ 176]
      f82ddd5c 77f0c48e hal!HalpClockInterrupt+0x8f
      00e6f744 77f2c97d ntdll!KiFastSystemCallRet
      00e6f748 77d841e6 ntdll!NtWaitForSingleObject+0xc
      00e6f794 77d84152 kernel32!WaitForSingleObjectEx(void * hHandle = 0x000006a0, unsigned long dwMilliseconds = 0, int bAlertable = 0)+0x86 [p:\trunk_slave\x86_msvc\build\dll\win32\kernel32\client\synch.c @ 130]
      00e6f7a8 0040ad6d kernel32!WaitForSingleObject(void * hHandle = 0x000006a0, unsigned long dwMilliseconds = 0)+0x12 [p:\trunk_slave\x86_msvc\build\dll\win32\kernel32\client\synch.c @ 87]
      00e6faf4 0040b3a1 rosautotest!CWineTest::RunTest(class CTestInfo * TestInfo = 0x0003fda8)+0x19d [p:\trunk_slave\x86_msvc\build\modules\rostests\rosautotest\cwinetest.cpp @ 289]
      00e6fbc4 0040cb41 rosautotest!CWineTest::Run(void)+0x251 [p:\trunk_slave\x86_msvc\build\modules\rostests\rosautotest\cwinetest.cpp @ 375]
      00e6ff1c 0044fa95 rosautotest!wmain(int argc = 3, wchar_t ** argv = 0x0003ac70)+0x1c1 [p:\trunk_slave\x86_msvc\build\modules\rostests\rosautotest\main.cpp @ 69]
      00e6ffb4 0044f83f rosautotest!__tmainCRTStartup(void)+0x245 [p:\trunk_slave\x86_msvc\build\lib\sdk\crt\startup\crtexe.c @ 307]
      00e6ffc0 77d7e4d5 rosautotest!wmainCRTStartup(void)+0x1f [p:\trunk_slave\x86_msvc\build\lib\sdk\crt\startup\crtexe.c @ 196]
      00e6fff0 00000000 kernel32!BaseProcessStartup(<function> * lpStartAddress = 0x0044f820)+0x55 [p:\trunk_slave\x86_msvc\build\dll\win32\kernel32\client\proc.c @ 478]

      Attachments

        Activity

          People

            ThFabba ThFabba
            ThFabba ThFabba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: