From: "mame (Yusuke Endoh)" Date: 2022-01-28T19:51:07+00:00 Subject: [ruby-core:107327] [Ruby master Bug#18555] Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000 Issue #18555 has been updated by mame (Yusuke Endoh). If you are using bundler, try the second one. ``` bundle config build.ffi --enable-libffi-alloc bundle install ``` I'm not familiar with bundler. I think you need to recompile ffi gem, but I am unsure if the command above does so. It would be good to remove the previously installed ffi gem but I have no idea how to do it. @deivid Could you give an advice? ---------------------------------------- Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000 https://bugs.ruby-lang.org/issues/18555#change-96225 * Author: anthonyaykut (Anthony Aykut) * Status: Open * Priority: Normal * ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Hi All, First of all, I am not a programmer or coder so I am having great difficulty solving this puzzle. Since moving to a M1 Mac, I cannot get Slate API Docs (https://github.com/slatedocs/slate) to work, specifically the middleman component. I'm getting a huge error message while trying to run "bundle exec middleman server" and it is telling me to log a ticket and attach logs. So here I am. I hope someone can help. Crash report is attached, together with the lengthy terminal output. Summary is, when I run "bundle exec middleman server" I get the following; full text is in "terminal_output.txt". ``` /Users/aaykut/Documents/apidocs/slate/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000100594000 ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports for more details. Don't forget to include the above Crash Report log file in bug reports. ``` Thanks, Anthony ---Files-------------------------------- terminal_output.txt (89.1 KB) ruby-2022-01-27-202050.ips (13.9 KB) gem_env.txt (1.59 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: