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

Access violation in gdi32 code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Win32SS
    • None

    Description

      0.4.15-dev-3046-gf486f87-x86

      No steps to reproduce as this happened suddenly. I was working with Git Bash on ReactOS and tried to close it

      Call stack:

      kd> kp
       # ChildEBP RetAddr  
      ... (exception dispatching) ...
      0c f6e0167c 7c4c4fa2 nt!KiFastCallEntry+0x94
      0d 00f2fc44 7c4c4f1b gdi32!GdiGetHandleUserData(void * hGdiObj = 0xd9010226, unsigned long ObjectType = 0x10000, void ** UserData = 0x00f2fc5c)+0x32 [C:\rosgit\win32ss\gdi\gdi32\misc\misc.c @ 767] 
      0e 00f2fc68 7c4c41a2 gdi32!GdiGetDcAttr(struct HDC__ * hdc = 0xd9010226)+0x4b [C:\rosgit\win32ss\gdi\gdi32\include\gdi32p.h @ 465] 
      0f 00f2fc7c 7c4cb3a8 gdi32!GdiGetLDC(struct HDC__ * hdc = 0xd9010226)+0x22 [C:\rosgit\win32ss\gdi\gdi32\misc\misc.c @ 790] 
      10 00f2fca0 7a971d35 gdi32!DeleteDC(struct HDC__ * hdc = 0xd9010226)+0x48 [C:\rosgit\win32ss\gdi\gdi32\objects\dc.c @ 289] 
      11 00f2fcb0 7a96ea6f winsrv!OnNcDestroy(struct HWND__ * hWnd = 0x0003025a)+0x65 [C:\rosgit\win32ss\user\winsrv\consrv\frontends\gui\conwnd.c @ 1400] 
      12 00f2fd34 77a9e7fa winsrv!ConWndProc(struct HWND__ * hWnd = 0x0003025a, unsigned int msg = 0x82, unsigned int wParam = 0, long lParam = 0)+0x5f [C:\rosgit\win32ss\user\winsrv\consrv\frontends\gui\conwnd.c @ 2211] 
      13 00f2fd64 77a8cb16 user32!CALL_EXTERN_WNDPROC+0x1a
      14 00f2fe48 77a92790 user32!IntCallWindowProcW(int IsAnsiProc = 0, <function> * WndProc = 0x7a96ea10, struct _WND * pWnd = 0x00bd9e60, struct HWND__ * hWnd = 0x0003025a, unsigned int Msg = 0x82, unsigned int wParam = 0, long lParam = 0)+0x656 [C:\rosgit\win32ss\user\user32\windows\message.c @ 1547] 
      15 00f2fee8 7c9377dc user32!User32CallWindowProcFromKernel(void * Arguments = 0x00f2ff00, unsigned long ArgumentLength = 0x20)+0x360 [C:\rosgit\win32ss\user\user32\windows\message.c @ 3005] 
      16 00f2fff4 00000000 ntdll!KiUserCallbackDispatcher+0x2c
      

      The problem is in GdiGetHandleUserData, while trying to access an Entry.
      GdiHandleTable is not initialized for some reason (equals to 0), so this leads to an access violation

      Attachments

        Activity

          People

            Unassigned Unassigned
            extravert34 extravert34
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: