-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Dynamic analysis: "Tracing system call error: ESRCH: No such process
"
#43
Comments
Yeah, not sure why it happens yet. Also reported here: JakWai01/lurk#48 Maybe try without leading slash 👀 |
Unfortunately it dont help for me |
This will be fixed in #48 :) |
@godzie44 ! did it fix for you? I have the same issue with a simple hello world program in C. I simply ran |
I was too confident about the fix 😅 The issue seems to be still there and I'm even more puzzled by it now. It apparently works for some files and not for others. Can you share the file you are trying this with? |
Btw it fails for this function: pub fn ptrace_init_options(pid: Pid) -> nix::Result<()> {
ptrace::setoptions(
pid,
Options::PTRACE_O_TRACESYSGOOD | Options::PTRACE_O_TRACEEXIT | Options::PTRACE_O_TRACEEXEC,
)
} I guess either the |
@orhun I am on phone right now, but this was the source code. #include <stdio.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
} I then compiled it with Thank you for looking into it! |
Looks like this dont fix for me too :( |
I'm quite puzzled by this, @JakWai01 any ideas? 👀 |
@orhun I just tried to replicate in in
|
Yeah, it works fine in Most notably, I'm spawning a new thread for executing the binary and I wait for the execution to complete via |
I realized something weird, it works when I move the local binary to |
I think |
@JakWai01 to replicate this, you can try moving the binary outside of
|
So - when I got this I ran it with a few small test binaries written in C....seems to happen when using small bins that exit quickly for me? might be barking up the wrong tree, but I can get it working when I use something a bit more substantial... EDIT - actually seems to be a bit hit and miss even with larger files...weird. |
I think I have reproducible recreation steps because this also occurs when running a tiny 32-bit program on my 64-bit machine that guarantees a segfault after printing "Hello world!".
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
section .data
msg db "Hello world!"
len equ $ -msg Then prepared with: nasm -f elf32 -o hello.o hello.asm && ld -m elf_i386 -o hello hello.o Invoking
and then |
Thanks for looking into it. I'm not sure how that reproduce steps help here though. At this point it is failing for any local executable. |
Describe the bug
For some of binaries, after press enter at "Dynamic" tab, i see a "ESRCH: No such process" error.
To reproduce
cargo new hello cd hello cargo build binsider ./target/debug/hello
Screenshots / Logs
Software information
The text was updated successfully, but these errors were encountered: