khamidou / lptrace

Trace any Python program, anywhere!
http://khamidou.com/lptrace/
GNU General Public License v3.0
699 stars 43 forks source link

Failed to run on macOS #7

Closed reorx closed 7 years ago

reorx commented 7 years ago

First of all, thanks for providing this little cool script to help debugging Python programs.

I've been using it successfully on ubuntu server, but when I tried this on my Mac, sudo python lptrace -p 96365 hanged there and the target program was failed by segmentation fault:

$ python -m SimpleHTTPServer 10000
Serving HTTP on 0.0.0.0 port 10000 ...
[1]    96365 segmentation fault  python -m SimpleHTTPServer 10000

I was using Python 2.7.12 installed by homebrew. My system is OS X 10.11.6.

khamidou commented 7 years ago

Hey, thanks for opening this bug! Are you using the stock gdb version? IIRC you have to jump through some hoops to get it working on MacOS.

khamidou commented 7 years ago

Closing because of no replies.