{"action":"opened","issue":{"url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/241","repository_url":"https://api.github.com/repos/deivid-rodriguez/byebug","labels_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/241/comments","events_url":"https://api.github.com/repos/deivid-rodriguez/byebug/issues/241/events","html_url":"https://github.com/deivid-rodriguez/byebug/issues/241","id":150992009,"number":241,"title":"invalid index (IndexError) on FreeBSD when stepping into function","user":{"login":"robertgrimm","id":969670,"avatar_url":"https://avatars.githubusercontent.com/u/969670?v=3","gravatar_id":"","url":"https://api.github.com/users/robertgrimm","html_url":"https://github.com/robertgrimm","followers_url":"https://api.github.com/users/robertgrimm/followers","following_url":"https://api.github.com/users/robertgrimm/following{/other_user}","gists_url":"https://api.github.com/users/robertgrimm/gists{/gist_id}","starred_url":"https://api.github.com/users/robertgrimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertgrimm/subscriptions","organizations_url":"https://api.github.com/users/robertgrimm/orgs","repos_url":"https://api.github.com/users/robertgrimm/repos","events_url":"https://api.github.com/users/robertgrimm/events{/privacy}","received_events_url":"https://api.github.com/users/robertgrimm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T21:56:50Z","updated_at":"2016-04-25T21:56:50Z","closed_at":null,"body":"I'm getting \"invalid index\" errors when stepping into functions on FreeBSD.\r\n\r\nMy trivial test program:\r\n```ruby\r\ndef foo\r\n  \"foo\"\r\nend\r\n\r\nrequire \"byebug\"\r\ndebugger\r\nfoo\r\n```\r\n\r\nOn a clean FreeBSD 10.3 install with just Ruby 2.1.8p440 (the version that ships with FreeBSD) and byebug 8.2.4 installed, I get the following results:\r\n\r\n```\r\n[1, 7] in /usr/home/robg/debugger_test.rb\r\n   1: def foo\r\n   2:   \"foo\"\r\n   3: end\r\n   4: \r\n   5: require \"byebug\"\r\n   6: debugger\r\n=> 7: foo\r\n(byebug) s\r\n\r\n[1, 7] in /usr/home/robg/debugger_test.rb\r\n   1: def foo\r\n=> 2:   \"foo\"\r\n   3: end\r\n   4: \r\n   5: require \"byebug\"\r\n   6: debugger\r\n   7: foo\r\n/usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:118:in `[]': invalid index (IndexError)\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:118:in `ignore?'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:57:in `push'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:30:in `block in restore'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:30:in `reverse_each'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/history.rb:30:in `restore'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/interface.rb:114:in `autorestore'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/processors/command_processor.rb:132:in `before_repl'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/processors/command_processor.rb:96:in `process_commands'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/processors/command_processor.rb:56:in `at_line'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/byebug-8.2.4/lib/byebug/context.rb:96:in `at_line'\r\n\tfrom ./debugger_test.rb:2:in `foo'\r\n\tfrom ./debugger_test.rb:7:in `<main>'\r\n```\r\n\r\nThis only appears to happen when stepping into (s) the function.  Continuing (c) and stepping over (n) the function both appear to work."}}