Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Error: DynamoRIO debug check failure: ...\core\win32\ntdll.c:5218 res >= 0 && len <= MAX_CONTEXT_SIZE #2208

Open
Robert-M-Muench opened this issue Jul 3, 2019 · 5 comments

Comments

@Robert-M-Muench
Copy link

Robert-M-Muench commented Jul 3, 2019

---------------------------
Dr. Memory Notice: D:\develop\rm-asset\nlpp\release\nlpp_debug_3.5.0.9.exe(5436)
---------------------------
Application D:\develop\rm-asset\nlpp\release\nlpp_debug_3.5.0.9.exe (5436).  Internal Error: DynamoRIO debug check failure: D:\drmemory_package\dynamorio\core\win32\ntdll.c:5218 res >= 0 && len <= MAX_CONTEXT_SIZE
(Error occurred @0 frags)
2.2.0-1-(Jul  1 2019 00:43:22) WinVer=105;Rel=1903;Build=18362;Edition=Core
-no_dynamic_options -logdir 'C:\Users\robby\AppData\Roaming\Dr. Memory\dynamorio' -client_lib 'C:\Program Files (x86)\DrMemory\bin\debug\drmemorylib.dll;0;-suppress `D:\develop\rm-asset\nlpp\release\suppress.txt` -logdir `C:\Users\robby\AppData\Roaming\Dr. Memory` -symcache_dir `C:\Users\robby\AppData\Roaming\Dr. Memory\
0x0077f5e4 0x665acc83
0x0077f718 0x667b2ba3
0x0077f754 0x66778c67
0x0077fc64 0x6676b977
0x0077fca4 0x664efe18
0x0077fcd8 0x66751342
0x0077fd44 0x66751ac8
C:\Program Files (x86)\DrMemory\bin\debug\drmemorylib.dll=0x73800000
C:\Program Files (x86)\DrMemory\bin\debug/dbghelp.dll=0x66b40000
C:\WINDOWS/system32/ADVAPI32.dll=0x029c0000
C:\WINDOWS/system32/sechost.dll=0x02b20000
C:\WINDOWS/system32/RPCRT4.dll=0x02e90000
C:\WINDOWS/system32/SspiCli.dll=0x02f50000
C:\WINDOWS/system32/CRYPTBASE.dll=0x02a40000
C:\WINDOWS/system32/bcryptPrimitives.dll=0x02f70000
C:\WINDOWS/system32/msvcrt.dll=0x02a60000
C:\W
---------------------------
OK   
---------------------------
@derekbruening
Copy link
Contributor

Please provide info on what processor is in the machine where this was hit. What is the return value of RtlGetExtendedContextLength() on that processor? I assume this only reproduces on that particular hardware.

@Robert-M-Muench
Copy link
Author

All running in a virtual machine on OSX: Intel Xeon W-2191B, 23GHz, 8GB assigned

I couldn't find any docs for RtlGetExtendedContextLength(), so what parameters to call it and what's the return type/value?

@derekbruening
Copy link
Contributor

Dr. Memory is calling it. It's the line in the assert: https://github.com/DynamoRIO/dynamorio/blob/master/core/win32/ntdll.c#L5217
Its value could be obtained by attached a debugger at the assert point (perhaps by asking for a pause there via -dr_ops "-msgbox_mask 12") or modifying the code to print it out. Presumably its value is larger than any seen by anyone else.

@Cecil-Huang
Copy link

Cecil-Huang commented Jul 19, 2019

I just got similar error on Windows 10 Enterprise version 1511 (Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz 3.41 GHz)
with -dr_debug
1563526053

with -debug option I got an assert error
spill.c:102: ok (fatal error: unable to reserve tls slots)

@derekbruening
Copy link
Contributor

DynamoRIO/dynamorio#2666 is the DR feature request to address these issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants