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

Perhaps the worst bug for a ruby debugger is that it cannot recognize ruby program. #17

Open
igenyar opened this issue Sep 25, 2015 · 3 comments

Comments

@igenyar
Copy link

igenyar commented Sep 25, 2015

~/hijack/test$ ruby test.rb
33890
...

~/hijack/test$ ps aux | grep test.rb
1000 33890 97.0 4.1 531808 506212 pts/3 Rl+ 14:45 0:11 ruby test.rb

~/hijack/test$ ../bin/hijack 33890
=> Hijacking...
=> 33890 doesn't appear to be a Ruby process!

Joker ?

@igenyar
Copy link
Author

igenyar commented Sep 28, 2015

just know that it needs "sudo"

@igenyar
Copy link
Author

igenyar commented Sep 28, 2015

still using "test.rb"

=> Hijacking...=> WARNING: Did not detect a safe frame on which to set a breakpoint, hijack may fail.
=> Hijacked 2770 (./test.rb) (ruby 1.8.7 [x86_64-linux])
irb(main):001:0> hijack_debug_mode
DRb::DRbConnError: drbunix://tmp/hijack.2770.sock - #<Errno::ENOENT: No such file or directory - //tmp/hijack.2770.sock>

too many craps

@ileitch
Copy link
Owner

ileitch commented Sep 28, 2015

Hijack is has not worked reliably since Ruby 1.8. 1.8 contained a function for debugging purposes that Hijack used to inject code at a safe point. 1.9 removed this function, and it became much, much harder for Hijack to find a safe point at which to halt the program.

I haven't even looked into supporting current Ruby versions. It's probably even harder due to all the GC changes.

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

2 participants