Description
Steps to reproduce:
- You will need Windows on ARM, see https://reactos.org/wiki/ARM_Port#Debugging_steps
 - If you intend to work on this, but don't have required environment, you can ask for help in the Mattermost chat
 - Build OSK application for ARM architecture and start it with WinDbg in WoA environment
 
					(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 ThePhysicist:
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
- is blocked by
 - 
                    
CORE-17613 osk!__rt_sdiv_worker crash on ARM (triggered by RTC)
-         
 - Resolved
 
 -         
 
- relates to
 - 
                    
CORE-17607 rapps!_rt_udiv64 Illegal instruction crash on ARM
-         
 - Resolved
 
 -