I've been working on a dynamorio client and i'm using drwrap to insert some code on a function call. Now, I'd like to create a thread inside application (especifically, I want to create a thread when a function is called to make some computation). I tried to include pthread lib and call it on a wrap but I get the process killed with a "ERROR: master_signal_handler with no siginfo (i#26?): tid=21930, sig=11"
I'd like to know if anybody ever tried doing something like this, can help me achieve it or even if could explain to me why this will not work and led me to a "probably will work" path.
Also, I've been studyng the implementation of Dynamorio and the documentation to understand how Dynamorio really works: does it create a thread inside the process to run the the application and one to run the dynamorio? Or does the dynamorio do the computation ant the beginning and insert something on application process or what? Can someone point where can i find this information and more about the it?
Hi!,
I've been working on a dynamorio client and i'm using drwrap to insert some code on a function call. Now, I'd like to create a thread inside application (especifically, I want to create a thread when a function is called to make some computation). I tried to include pthread lib
and call it on a wrap but I get the process killed with a "ERROR: master_signal_handler with no siginfo (i#26?): tid=21930, sig=11"
I'd like to know if anybody ever tried doing something like this, can help me achieve it or even if could explain to me why this will not work and led me to a "probably will work" path.
Also, I've been studyng the implementation of Dynamorio and the documentation to understand how Dynamorio really works: does it create a thread inside the process to run the the application and one to run the dynamorio?
Or does the dynamorio do the computation ant the beginning and insert something on application process or what? Can someone point where can i find this information and more about the it?
--
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 post to this group, send email to dynamor...@googlegroups.com.
Visit this group at https://groups.google.com/group/dynamorio-users.
For more options, visit https://groups.google.com/d/optout.
...
drwrap_wrap(towrap, wrap_pre, NULL);
...
static void wrap_pre (void *wrapcxt, OUT void **user_data) {
... pthread_create(...);
...}
Hi Derek,Henrique is trying to create application threads using drwrap. For example:...
drwrap_wrap(towrap, wrap_pre, NULL);
...static void wrap_pre (void *wrapcxt, OUT void **user_data) {
...pthread_create(...);
...}
Is it possible using drwrap? or should we follow another approach (like this https://groups.google.com/forum/#!searchin/dynamorio-users/%22application$20thread%22%7Csort:date/dynamorio-users/yr8NM1295s0/QNYmGQWn4VgJ) ?
On Thursday, March 22, 2018 at 6:34:26 AM UTC-3, Henrique Noronha Facioli wrote:Hi!,I've been working on a dynamorio client and i'm using drwrap to insert some code on a function call. Now, I'd like to create a thread inside application (especifically, I want to create a thread when a function is called to make some computation). I tried to include pthread lib and call it on a wrap but I get the process killed with a "ERROR: master_signal_handler with no siginfo (i#26?): tid=21930, sig=11"
I'd like to know if anybody ever tried doing something like this, can help me achieve it or even if could explain to me why this will not work and led me to a "probably will work" path.
Also, I've been studyng the implementation of Dynamorio and the documentation to understand how Dynamorio really works: does it create a thread inside the process to run the the application and one to run the dynamorio? Or does the dynamorio do the computation ant the beginning and insert something on application process or what? Can someone point where can i find this information and more about the it?
--
Thanks Derek!Another question: Is dr_create_client_thread() implemented for ARM?