Issue #728 has been updated by Martin Krauskopf.


Hi Matz,

I still can with the latest 1.8.7 and ruby-debug-ide-0.4.2 (latest).

First terminal:

    emdot@ubuntbook:~/tmp/segfault$ cat tester.rb 
    class IterativeFibonacci
      def value(n)
        iterative_fib(n, 0, 1)
      end
      def iterative_fib(n, f1, f2)
        return f2 if n < 2
        iterative_fib(n - 1, f2, (f1 + f2))
      end
    end

    p IterativeFibonacci.new.value(24)

    emdot@ubuntbook:~/tmp/segfault$ ruby `which rdebug-ide` -p 12345 -- tester.rb 
    Fast Debugger (ruby-debug-ide 0.4.2) listens on localhost:12345
    /space/ruby/gem-repo/gems/ruby-debug-ide-0.4.2/lib/ruby-debug/xml_printer.rb:106: [BUG] Segmentation fault
    ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]

    Aborted

Second terminal:

    emdot@ubuntbook:~$ telnet localhost 12345
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    b tester.rb:7
    <breakpointAdded no="1" location="tester.rb:7"/>start
    <breakpoint file="tester.rb" line="7" threadId="1"/>c
    <breakpoint file="tester.rb" line="7" threadId="1"/>c
    <breakpoint file="tester.rb" line="7" threadId="1"/>c
    <breakpoint file="tester.rb" line="7" threadId="1"/>frame 5; v l
    <variables><variable name="self" kind="local" value="#&lt;IterativeFibonacci:0xb7b09598&gt;" type="IterativeFibonacci" hasChildren="false" objectId="-0x2427b534"/>Connection closed by foreign host.

As soon as I do 'frame 5; v l' the debugger backend in the first terminal segfaults. Let me know if I can provide more information.
  (sorry for late response, I was not notified abou the update of the issue, will try to fix my account)

----------------------------------------
http://redmine.ruby-lang.org/issues/show/728

----------------------------------------
http://redmine.ruby-lang.org