hijack icon indicating copy to clipboard operation
hijack copied to clipboard

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

Open igenyar opened this issue 9 years ago • 3 comments

~/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 avatar Sep 25 '15 21:09 igenyar

just know that it needs "sudo"

igenyar avatar Sep 28 '15 16:09 igenyar

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

igenyar avatar Sep 28 '15 16:09 igenyar

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.

ileitch avatar Sep 28 '15 16:09 ileitch