{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/26609","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/26609/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/26609/comments","events_url":"https://api.github.com/repos/rails/rails/issues/26609/events","html_url":"https://github.com/rails/rails/issues/26609","id":179041332,"number":26609,"title":"Running `rails console --sandbox` on macOS Sierra results in a Segfault","user":{"login":"rr1000","id":1596785,"avatar_url":"https://avatars.githubusercontent.com/u/1596785?v=3","gravatar_id":"","url":"https://api.github.com/users/rr1000","html_url":"https://github.com/rr1000","followers_url":"https://api.github.com/users/rr1000/followers","following_url":"https://api.github.com/users/rr1000/following{/other_user}","gists_url":"https://api.github.com/users/rr1000/gists{/gist_id}","starred_url":"https://api.github.com/users/rr1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr1000/subscriptions","organizations_url":"https://api.github.com/users/rr1000/orgs","repos_url":"https://api.github.com/users/rr1000/repos","events_url":"https://api.github.com/users/rr1000/events{/privacy}","received_events_url":"https://api.github.com/users/rr1000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-24T17:23:23Z","updated_at":"2016-10-08T20:06:06Z","closed_at":"2016-09-24T20:10:03Z","body":"### Steps to reproduce\r\n1. Have a running copy of macOS 10.12\r\n2. Create a new rails 5.0.0.1 app\r\n3. Run `$ rails console --sandbox`\r\n\r\nOther than that I'm not sure what else to report. It's a brand new app that I created this morning. I wasn't having any other issues until I upgraded to Sierra. You can see the full output at the bottom of this message.\r\n\r\n### Expected behavior\r\nThe sandbox console should load as expected\r\n\r\n### Actual behavior\r\nSegfault\r\n\r\n### System configuration\r\n**5.0.0.1**:\r\n\r\n**Ruby version**:\r\nruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]\r\n\r\n```\r\n$ rails console --sandbox\r\nRunning via Spring preloader in process 79660\r\n/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110\r\nruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]\r\n```\r\n\r\nNot sure if the control frame or backtrace info is needed, but I can post that if so. Any help or insight into fixing this issue is greatly appreciated.\r\n\r\n### Update:\r\nI'm seeing the same Segfault when running anything in the production console:\r\n\r\n```\r\nirb(main):002:0> User.all\r\n/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110\r\nruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/252445527","html_url":"https://github.com/rails/rails/issues/26609#issuecomment-252445527","issue_url":"https://api.github.com/repos/rails/rails/issues/26609","id":252445527,"user":{"login":"ccasabona","id":6371874,"avatar_url":"https://avatars.githubusercontent.com/u/6371874?v=3","gravatar_id":"","url":"https://api.github.com/users/ccasabona","html_url":"https://github.com/ccasabona","followers_url":"https://api.github.com/users/ccasabona/followers","following_url":"https://api.github.com/users/ccasabona/following{/other_user}","gists_url":"https://api.github.com/users/ccasabona/gists{/gist_id}","starred_url":"https://api.github.com/users/ccasabona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccasabona/subscriptions","organizations_url":"https://api.github.com/users/ccasabona/orgs","repos_url":"https://api.github.com/users/ccasabona/repos","events_url":"https://api.github.com/users/ccasabona/events{/privacy}","received_events_url":"https://api.github.com/users/ccasabona/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T20:06:06Z","updated_at":"2016-10-08T20:06:06Z","body":"Getting error:\r\n\r\n`activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110`\r\n`ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]`\r\n\r\nwhen making changes to the source code between running tests.  The error does not occur in development mode.  The command:\r\n\r\n`rails console --sandbox`\r\n\r\nworks fine.  \r\n\r\nSolution is to close the terminal and reopen.  Problem reoccurs when change is made to source code and a test is run, whether it is a single test, as in `rails test test/models/user_test`, or running all the tests with `rails test`.  It does not occur when running a group of tests, as in `rails test:models`\r\n\r\nNew rails app using Rails 5.0.0.1, Ruby 2.3.1, Mac OS Sierra 10.12."}}
{"actor":{"display_login":"ccasabona"}}