eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
687 stars 68 forks source link

[BUG] bpftrace with bashreadline leads to segmentation fault on subprocess of bash #277

Closed Officeyutong closed 2 months ago

Officeyutong commented 2 months ago
yuanrui77 commented 2 months ago

In order to solve the error reported by Terminal 1, I added print statements to the run_example.py file in bpftime/.github/script and used gdb debugging, which produced the results. The following screenshots are: three comparative screenshots of run_example.py with the print statement position added, and a screenshot of an error reported after setting a breakpoint in gdb debugging. Code comparison screenshots_01 Code comparison screenshots_02 Code comparison screenshots_03 gdb debugging results

Officeyutong commented 2 months ago

Reference

This issue is totally unrelated to the example runner script

yuanrui77 commented 2 months ago

I'm trying to solve the error in Terminal1. Where do you think I can start to solve it?

Officeyutong commented 2 months ago

I'm trying to solve the error in Terminal1. Where do you think I can start to solve it?

This issue is already assigned to me. If you are interested in bpftime, you may refer to other un-assigned or good first issues. Thank you!

Officeyutong commented 2 months ago

Some investigations: