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

lighthouese doesn't track new thread #138

Open
yooo1999 opened this issue Feb 2, 2024 · 0 comments
Open

lighthouese doesn't track new thread #138

yooo1999 opened this issue Feb 2, 2024 · 0 comments

Comments

@yooo1999
Copy link

yooo1999 commented Feb 2, 2024

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant