-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
handling /proc/self/exe in execv function #203
Comments
Thank you for changing the code for me. |
Can you handle execve? |
thank you! |
3041|SIGSEGV @0x28bc968 (my_execve (./box86/box86)) (x86pc=0x45ec380/"???"), for accessing (nil) (code=1), db=(nil)((nil)/???) |
Oh, now execve cannot run. |
execlp is also. |
And, execvp executes /proc/self/exe output |
do you have a sample that you can share? |
#include<unistd.h> |
execv and execl are running normally. |
That progam always start itself... => It never end. That's intended? |
Also, are you sure |
Oh, argv and envp really cannot be null. |
But execve still has problems. |
#include<unistd.h> |
Oh, I was wrong again, I let it execute /bin/ls, I didn't notice that this is an arm elf. |
execve can execute /proc/self/exe normally. |
Sorry. |
Now, when execvp executes /proc/self/exe, it will be box86 itself, |
Debug level is 2 This is Box86, the Linux x86 emulator with a twist |
I haven't handled execvp like the other for now. It's on my todo, but I have to think a bit more for this one. It'll come later. |
I cannot use the execve syscall now. |
You should let the system call execve be implemented by the my_execve function. |
Now, I use the int $80 instruction to call execve to execute /proc/self/exe, will execute box86. |
Can I use box86 to run busybox and gcc? |
I don't know. Try. |
Error: Global Symbol lutimes not found, cannot apply R_386_GLOB_DAT @0xec111fb4 ((nil)) in /busybox |
Some functions are missing. |
Ok, create a new ticket please. I think this one on execve can be closed now. |
@ptitSeb |
already anwsered. Don't post the same thing in multiple tickets. |
Sorry. |
I cannot use execv... to execute /proc/self/exe.
I think you should handle some functions.
The text was updated successfully, but these errors were encountered: