drmemory.exe does nothing (windows 7 32 bits)

395 views
Skip to first unread message

Luca Olivetti

unread,
Nov 3, 2021, 6:30:50 AM11/3/21
to Dr. Memory Users
Hello,

I installed Dr.Memory in a virtual machine (virtualbox in case it's relevant), windows 7 (32 bits), service pack 1, build 7601.

When I invoke drmemory it does absolutely nothing, i.e.

drmemory  -version

gives no output

drmemory -help

ditto

drmemory -- winver.exe

the same

I tried both the 2.5.0 msi and the 2.4.0-2

Derek Bruening

unread,
Nov 3, 2021, 10:44:39 AM11/3/21
to drmemor...@googlegroups.com
 - Does the problem go away when running in light mode (pass `-light` to Dr. Memory)?
 - Does the problem go away when running with the options `-leaks_only -no_count_leaks -no_track_allocs`?
 - Does the problem go away when running under plain DynamoRIO?  Do this by running `dynamorio/bin32/drrun -- <application and args>` or `dynamorio/bin64/drrun -- <application and args>` depending on the bitwidth of your applicaiton.  (Ignore warnings about "incomplete installation".)
 - What happens with the debug version of Dr. Memory and of its underlying engine DynamoRIO?  Try this by passing `-debug -dr_debug -pause_at_assert`.  Are any messages reported?

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/8080bd3e-50b6-4042-9f81-11d537a02709n%40googlegroups.com.

Luca Olivetti

unread,
Nov 3, 2021, 11:56:22 AM11/3/21
to drmemor...@googlegroups.com
El 3/11/21 a les 15:44, 'Derek Bruening' via Dr. Memory Users ha escrit:

Thank you for your reply

Please try these steps 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, same behaviour (drmemory pauses for a few seconds then nothing, no message, no program is started)

 - 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?  Do this by running `dynamorio/bin32/drrun -- <application and args>` or `dynamorio/bin64/drrun -- <application and args>` depending on the bitwidth of your applicaiton.  (Ignore warnings about "incomplete installation".)

When I use drrun the message is " ERROR: unable to inject: exec of |(null)| failed"

 - What happens with the debug version of Dr. Memory and of its underlying engine DynamoRIO?  Try this by passing `-debug -dr_debug -pause_at_assert`.  Are any messages reported?


Same "ERROR: unable to inject: exec of |(null)| failed" message


Bye


On Wed, Nov 3, 2021 at 6:30 AM Luca Olivetti <oliv...@gmail.com> wrote:
Hello,

I installed Dr.Memory in a virtual machine (virtualbox in case it's relevant), windows 7 (32 bits), service pack 1, build 7601.

When I invoke drmemory it does absolutely nothing, i.e.

drmemory  -version

gives no output

drmemory -help

ditto

drmemory -- winver.exe

the same

I tried both the 2.5.0 msi and the 2.4.0-2

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/8080bd3e-50b6-4042-9f81-11d537a02709n%40googlegroups.com.
--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.

Derek Bruening

unread,
Nov 3, 2021, 1:15:23 PM11/3/21
to drmemor...@googlegroups.com
This is almost certainly an issue that is limited to VirtualBox or this particular guest setup.  In the past I recall issues with VirtualBox: some were VirtualBox bugs; some were DynamoRIO issues due to unusual behavior inside VirtualBox (e.g., https://github.com/DynamoRIO/drmemory/issues/1724).

One way forward is to walk through the drrun command in the debugger and see where it goes wrong.

Luca Olivetti

unread,
Nov 5, 2021, 3:35:00 PM11/5/21
to drmemor...@googlegroups.com
El 3/11/21 a les 18:15, 'Derek Bruening' via Dr. Memory Users ha escrit:

Hello, thank you


> This is almost certainly an issue that is limited to VirtualBox or this
> particular guest setup.

On this particular guest I disabled the dialog that says "this
application has crashed, finding a solution" (or something like that),
so that's probably why it fails silently.

On a guest running under vmware I see that dialog (so it doesn't seem
limited to virtualbox).

> In the past I recall issues with VirtualBox:
> some were VirtualBox bugs; some were DynamoRIO issues due to unusual
> behavior inside VirtualBox (e.g.,
> https://github.com/DynamoRIO/drmemory/issues/1724
> <https://github.com/DynamoRIO/drmemory/issues/1724>).
>
> One way forward is to walk through the drrun command in the debugger and
> see where it goes wrong.

I'm just trying to debug this:

https://lists.lazarus-ide.org/pipermail/lazarus/2021-October/239341.html

I'll see if I can run it under bare metal.

Bye
--
Luca

Luca Olivetti

unread,
Nov 23, 2021, 6:16:51 AM11/23/21
to drmemor...@googlegroups.com
El 3/11/21 a les 15:44, 'Derek Bruening' via Dr. Memory Users ha escrit:

Hello, I got hold of a physical machine, win7 64 bits (my app is 32bits).

Here if I invoke drmemory I get an error dialog saying

---------------------------
DynamoRIO Notice: c:\luca\rf185ctest.exe(5056)
---------------------------
Application c:\luca\rf185ctest.exe (5056). Unable to load client
library: import MoveFileExW not found in KERNELBASE.dll.
---------------------------
Aceptar
---------------------------

then one saying

---------------------------
DynamoRIO Notice: c:\luca\rf185ctest.exe(5056)
---------------------------
Application c:\luca\rf185ctest.exe (5056). Unable to load client
library: drmemorylib.dll: unable to process imports of client library..
---------------------------
Aceptar
---------------------------

then these messages in the console:

C:\Program Files (x86)\Dr. Memory\bin>drmemory.exe -- c:\luca\rf185ctest.exe
~~Dr.M~~ WARNING: unable to locate results file: can't open
C:\Users\sistemas\Ap
pData\Roaming\Dr. Memory/resfile.2288 (code=2).
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
identif
y
invasive software that may have affected the target application:

C:\Windows\system32\api-ms-win-crt-private-l1-1-0.dll
C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll
C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll
C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll
C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll
C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll
C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll
C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll
C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll
C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll

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



> Please try these steps from
> https://drmemory.org/page_help.html#sec_narrow
> <https://drmemory.org/page_help.html#sec_narrow> :
>  - Does the problem go away when running in light mode (pass `-light`
> to Dr. Memory)?

Same as above


>  - Does the problem go away when running with the options `-leaks_only
> -no_count_leaks -no_track_allocs`?

Same as above


>  - Does the problem go away when running under plain DynamoRIO?  Do
> this by running `dynamorio/bin32/drrun -- <application and args>` or
> `dynamorio/bin64/drrun -- <application and args>` depending on the
> bitwidth of your applicaiton.  (Ignore warnings about "incomplete
> installation".)

The application runs, but when it terminates I see a dialog:

---------------------------
DynamoRIO Notice: c:\luca\rf185ctest.exe(2248)
---------------------------
Application c:\luca\rf185ctest.exe (2248). DynamoRIO internal crash at
PC 0x00000000. Please report this at http://dynamorio.org/issues/.
Program aborted.
0xc0000005 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
Base: 0x74580000
Registers: eax=0x20c6d934 ebx=0x00000003 ecx=0x00010023 edx=0x00000000
esi=0x00000000 edi=0x00010023 esp=0x20c6d928 ebp=0x20c4a040
eflags=0x0001
version 8.0.18915, custom build
-no_dynamic_options -code_api -probe_api -stack_size 56K -max_elide_jmp
0 -max_elide_call 0 -no_inline_ignored_syscalls
-native_exec_default_list '' -no_native_exec_managed_code
-no_indcall2direct -no_aslr_dr
0x20c4a040 0x77c02100
0x77c020c0 0xfffffffe
0x77c04380 0x77c020c0
---------------------------
Aceptar
---------------------------

and no log file is created


>  - What happens with the debug version of Dr. Memory and of its
> underlying engine DynamoRIO?  Try this by passing `-debug -dr_debug
> -pause_at_assert`.  Are any messages reported?

dynamorio doesn't accept those options, with drmemory I get this dialog:

---------------------------
DynamoRIO Notice: c:\luca\rf185ctest.exe(1040)
---------------------------
Application c:\luca\rf185ctest.exe (1040). Internal Error: DynamoRIO
debug check failure:
D:\a\drmemory\drmemory\dynamorio\core\win32\module_shared.c:1203
NT_SUCCESS(res)
(Error occurred @0 frags in tid 4564)
version 8.0.18915, custom build
-logdir 'C:\Users\sistemas\AppData\Roaming\Dr. Memory\dynamorio'
-client_lib 'C:\Program Files (x86)\Dr.
Memory\bin\debug\drmemorylib.dll;0;-logdir
`C:\Users\sistemas\AppData\Roaming\Dr. Memory` -symcache_dir
`C:\Users\sistemas\AppData\Roaming\Dr. Memory\symcache`
-lib_blocklist_default `C:\Windows*.d??,C:\Program Files
0x0161f520 0x71ced209
0x0161f658 0x71f18dbc
0x0161f6cc 0x71eb837c
0x0161f6e0 0x71c2d35c
0x0161ffa0 0x71c2cf5d
0x0161ffa8 0x71c3e91b
0x0161ffc0 0x71e9f096
C:\Program Files (x86)\Dr.
Memory\dynamorio\lib32\debug\dynamorio.dll=0x71c20000
---------------------------
Aceptar
---------------------------

and the same messages on the console.

Bye


>
> On Wed, Nov 3, 2021 at 6:30 AM Luca Olivetti <oliv...@gmail.com
> <mailto:oliv...@gmail.com>> wrote:
>
> Hello,
>
> I installed Dr.Memory in a virtual machine (virtualbox in case it's
> relevant), windows 7 (32 bits), service pack 1, build 7601.
>
> When I invoke drmemory it does absolutely nothing, i.e.
>
> drmemory  -version
>
> gives no output
>
> drmemory -help
>
> ditto
>
> drmemory -- winver.exe
>
> the same
>
> I tried both the 2.5.0 msi and the 2.4.0-2
>
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Dr. Memory Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to drmemory-user...@googlegroups.com
> <mailto:drmemory-user...@googlegroups.com>.
> <https://groups.google.com/d/msgid/drmemory-users/8080bd3e-50b6-4042-9f81-11d537a02709n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Dr. Memory Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to drmemory-user...@googlegroups.com
> <mailto:drmemory-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/drmemory-users/CAO1ikSZf2Fy80YXO5ObzGNJc-r5EQOX2vDihtv58LoDYwmmGHg%40mail.gmail.com
> <https://groups.google.com/d/msgid/drmemory-users/CAO1ikSZf2Fy80YXO5ObzGNJc-r5EQOX2vDihtv58LoDYwmmGHg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Derek Bruening

unread,
Nov 30, 2021, 1:28:17 PM11/30/21
to drmemor...@googlegroups.com
On Tue, Nov 23, 2021 at 6:16 AM Luca Olivetti <oliv...@gmail.com> wrote:
El 3/11/21 a les 15:44, 'Derek Bruening' via Dr. Memory Users ha escrit:

Hello, I got hold of a physical machine, win7 64 bits (my app is 32bits).

Here if I invoke drmemory I get an error dialog saying

---------------------------
DynamoRIO Notice: c:\luca\rf185ctest.exe(5056)
---------------------------
Application c:\luca\rf185ctest.exe (5056). Unable to load client
library: import MoveFileExW not found in KERNELBASE.dll.

To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/bc590678-7abe-6834-6f6b-304e6a91816d%40gmail.com.
Reply all
Reply to author
Forward
0 new messages