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

Failed to start target application on Windows due to initial heap allocation failing with STATUS_INVALID_SYSTEM_SERVICE #2447

Open
mikeheck opened this issue Mar 23, 2022 · 8 comments

Comments

@mikeheck
Copy link

<Application Test.exe (15952). Out of memory. Program aborted. Source I, type 0x0000000000000001, code 0x00000000c000001c.>
Dr. Memory failed to start the target application, perhaps due to
interference from invasive security software.
Try disabling other software or running in a virtual machine.
WARNING: Examine the following unusual libraries in this process to help identify
invasive software that may have affected the target application:

C:\WINDOWS\System32\umppc15005.dll

Please file a bug about this at http://drmemory.org/issues
WARNING: application exited with abnormal code 0xffffffff

@PapaNoyel
Copy link

Got the exact same problem. I guess we don't have any news about this ?

@derekbruening
Copy link
Contributor

Please provide the information in the template which you are not supposed to be able to file a bug without filling in (there is a Github bug that lets you bypass if you authenticate late): https://github.com/DynamoRIO/drmemory/issues/new?assignees=&labels=&template=bug_report.md&title=

For:

Out of memory. Program aborted. Source I, type 0x0000000000000001, code 0x00000000c000001c

Source I is OOM_INIT which is the very first allocation.

type 0x1 is VMM_HEAP.

The failure code is:

#define STATUS_INVALID_SYSTEM_SERVICE    ((NTSTATUS)0xC000001CL)

Must be an unusual kernel or something: but you never provided any info on the OS version. Please fill out the template.

@derekbruening derekbruening changed the title Failed to start target application on Windows Failed to start target application on Windows due to initial heap allocation failing with STATUS_INVALID_SYSTEM_SERVICE Apr 6, 2022
@PapaNoyel
Copy link

PapaNoyel commented Apr 7, 2022

Hi !
I'll gladly complete it :

Describe the bug
Launching Dr.Memory from CLI or Visual Studio open a window with the following message :

<Application Test.exe (15952). Out of memory. Program aborted. Source I, type 0x0000000000000001, code 0x00000000c000001c.>

Dr. Memory failed to start the target application, perhaps due to
interference from invasive security software.
Try disabling other software or running in a virtual machine.
WARNING: Examine the following unusual libraries in this process to help identify
invasive software that may have affected the target application:

C:\WINDOWS\System32\umppc15005.dll
Please file a bug about this at http://drmemory.org/issues
WARNING: application exited with abnormal code 0xffffffff

To Reproduce
Steps to reproduce the behavior:

  1. The HelloWorld example of Visual Studio 2019 trigger this.

  2. Using the "External tools" feature of Visual Studio 2019 with :

    • Title : Dr. Memory
    • Command : C:\Program Files (x86)\Dr. Memory\bin\drmemory.exe
    • Arguments : -visual_studio -- $(TargetPath)
    • Initial Directory : $(TargetDir)
      [x] Use Output window
      [ ] Prompt for arguments
      [ ] Treat output as Unicode
      [x] Close on exit
  3. Dropping the executable produced by VS on the Dr Memory exe link is outputting the same.

Please also answer these questions drawn from https://drmemory.org/page_help.html#sec_narrow :

  • Does the problem go away when running in light mode (pass -light to Dr. Memory) : No
  • Does the problem go away when running with the options -leaks_only -no_count_leaks -no_track_allocs : No
  • Does the problem go away when running under plain DynamoRIO : No
  • What happens with the debug version of Dr. Memory and of its underlying engine DynamoRIO : See the attached screenshot

Expected behavior
Execution of Dr.Memory

Versions

  • Dr Memory version : DrMemory-Windows-2.5.0
  • OS Version : Windows 10 Business 21H2
  • 32-bit or 64-bit : 64

Additional context
Add any other context about the problem here.

debug mode :
image

@derekbruening
Copy link
Contributor

Thank you for the information. So plain DynamoRIO fails to allocate memory which from the STATUS_INVALID_SYSTEM_SERVICE code sounds like the kernel no longer supports NtAllocateVirtualMemory. Such a problem would be expected to result in failure running any application on that kernel.

Unfortunately I can't reproduce this: I have a machine with Windows 21H2 (OS Build 19044.1586)

04:17 PM ~/drmemory/releases/DrMemory-Windows-2.5.0
% bin64/drmemory.exe -batch -- ../../git/build_x64_dbg/tests/hello.exe
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running "../../git/build_x64_dbg/tests/hello.exe"
~~Dr.M~~ Using system call file D:\derek\drmemory\releases\DrMemory-Windows-2.5.0\drmemory\logs\symcache\syscalls_x64.txt
Hello world!
~~Dr.M~~
~~Dr.M~~ NO ERRORS FOUND:
...

Wondering if there is some App Compatibility layer or security software or something on your machine which would explain the differing behavior.

@PapaNoyel
Copy link

Thanks ! I've also tried on a personnal computer and it succeed on the Hello World example...
On the problematic computer I can run my code fine on Visual, do you know of a Windows security policy that may prevent the use of NtAllocateVirtualMemory ?

I've the exact same build of Windows. I'll also get in touch with my IT service to know if they have an idea about this.
Will come back to give some updates if I happen to have some !

@derekbruening
Copy link
Contributor

@prasun3
Copy link

prasun3 commented Feb 9, 2024

Looks like this issues was also reported here https://groups.google.com/g/DynamoRIO-Users/c/gKF6RqG6wqI

@derekbruening
Copy link
Contributor

At least one explanation for this has been found: interoperability problems with CrowdStrike Falcon: DynamoRIO/dynamorio#7024.

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

4 participants