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

osk!__rt_sdiv causes crash in Windows msvcrt.dll on ARM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Fix Version/s: 0.4.15
    • Component/s: CRT
    • Labels:
    • Environment:

      Windows 10 ARM

      Description

      Steps to reproduce:

      (60.848): Access violation - code c0000005 (first chance)
      msvcrt!memcpy_strict_align+0x13a:
      763fcac2 f903070d vst1.8      {d0},[r3]!              00000002=????????????????
      0:000> kp
       # Child-SP RetAddr  Call Site
      00 00e4f4f8 011c2b16 msvcrt!memcpy_strict_align+0x13a
      01 00e4f500 011c13ce osk!__rt_sdiv(int divisor = 0n89, int dividend = 0n711)+0x1e [sdk\lib\crt\math\arm\__rt_sdiv.c @ 24] 
      02 00e4f528 011c1602 osk!OSK_DlgInitDialog(struct HWND__ * hDlg = 0x00040134)+0x146 [base\applications\osk\main.c @ 198]
      

      See analysis of the problem discussion here: https://chat.reactos.org/reactos/pl/qxo7iqiypjbf5qf9mwufntdpfh

      Comment from Timo Kreuzer:

      Yes, __rt_sdiv is supposed to return the result in r0, r1, but the c compiler passes it as the first parameter. I can have a look.

      Full debug log from WinDbg: osk_arm_dbg.txt

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ThePhysicist Timo Kreuzer
                Reporter:
                binarymaster Stas'M
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: