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

fork() does not work properly... #252

Open
JustinCappos opened this issue May 25, 2024 · 2 comments
Open

fork() does not work properly... #252

JustinCappos opened this issue May 25, 2024 · 2 comments
Assignees

Comments

@JustinCappos
Copy link
Member

When I compile this simple program in lind following the basic directions, it does not work properly:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int main(void) {
  printf("Start!\n");
  const pid_t other = fork();
  printf("2!\n");
  return 0;
}

The output from running this code in lind is:

@[/home/lind/lind_project] lind> run /simple.nexe

executing: [sel_ldr -a -- "runnable-ld.so" --library-path "/lib/glibc" /simple.nexe]
[2261,4232416384:15:19:44.122287] BYPASSING ALL ACL CHECKS
Start!
2!
Start!
2!

It should instead produce output like:

@[/home/lind/lind_project] lind> run /simple.nexe
Start!
2!
2!
@rennergade
Copy link
Contributor

I believe this has to do with this issue: Lind-Project/native_client#12

@yashaswi2000
Copy link
Contributor

pushed a fix here: Lind-Project/Lind-GlibC#86

@yashaswi2000 yashaswi2000 self-assigned this May 29, 2024
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

3 participants