You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a very simple code, and attach with frida immediately .
When I parse the frida-cov.log I saw that lighthouese color the main function but doesn't color the foo function.
looks like lighthouese doesn't track new thread
python frida-drcov.py test_threads
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
int i = 2;
void* foo(void* p){
int counter = 0;
while (counter<10){
counter++;
sleep(1);
printf("counter= %d \n ",counter);
}
pthread_exit(&i);
}
int main(void){
pthread_t id;
sleep(5);
int j = 1;
pthread_create(&id, NULL, foo, &j);
int* ptr;
pthread_join(id, (void**)&ptr);
}
The text was updated successfully, but these errors were encountered:
I wrote a very simple code, and attach with frida immediately .
When I parse the frida-cov.log I saw that lighthouese color the main function but doesn't color the foo function.
looks like lighthouese doesn't track new thread
python frida-drcov.py test_threads
The text was updated successfully, but these errors were encountered: