Tips for debugging statically linked DynamoRIO & drmemtrace

7 views
Skip to first unread message

Suyash Mahar

unread,
Feb 6, 2026, 2:51:53 PM (2 days ago) Feb 6
to DynamoRIO Users

Hi folks,

I am running into an internal error while attaching to an internal workload with statically linked DynamoRIO & drmemtrace:

<Application /data/users/appname (3186634).  Internal Error: DynamoRIO debug check failure: /mnt/srcs/dynamorio/core/unix/os.c:10307 iter->vm_start == executable_start
(Error occurred @0 frags in tid 3200078)

Unfortunately, debugging is a little bit challenges as DYNAMORIO_OPTIONS does not seem support -debug:

Option parsing error : unknown option -debug. Terminating

I already have these options enabled and am linking statically with dynamorio_static and drmemtrace_static:

    int set_env_result = setenv(
        "DYNAMORIO_OPTIONS",
        "-debug -loglevel 4 -rstats_to_stderr -client_lib ';;-offline -verbose 3'",
        1);

Are there any other recommendations on how to debug this further?

-Suyash


Derek Bruening

unread,
Feb 6, 2026, 6:10:11 PM (2 days ago) Feb 6
to Suyash Mahar, DynamoRIO Users
-debug is a parameter to the launcher drrun and does not mean anything to a build of the DR library: that DR library build is inherently and statically either a debug or a release build; -debug tells drrun for dynamic launches which library to pick. It looks like your statically linked DR library is a debug build as you're seeing an assert fire which only happens in debug. Does this fail in release? In some cases an assert can be more of a curiosity and is not fatal; here it couldn't find the executable, but I'm not sure it really needs it other than for some client APIs to tell a client, and maybe drmemtrace doesn't invoke those. For debugging, check how the code identifies the executable: it might be looking at maps file paths or sthg, which may not be 100% reliable with remappings: so probably your environment has remappings. If regular logging is too verbose, custom logging there may help.

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dynamorio-users/b5a1105a-5029-4565-89af-be2c502dd989n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages