Control: severity -1 important
Control: reassign -1 ruby-bootsnap

On Tue, 23 Apr 2019 14:11:09 +0200 Gianfranco Costamagna
<locutusofb...@debian.org> wrote:
> Source: rails
> Version: 2:5.2.2+dfsg-6
> Severity: important
> tags: patch
> 
> Hello, as said, ruby+bootsnap is completely broken on at least armhf platform.
> 
> I discovered this because in Ubuntu we run testsuites on every architecture, 
> not only amd64.
> I found that people reported a lot of the "bus errors" on github in various 
> projects (with Debian OS in many cases), and all of
> them seems to be reconducible to bootsnap issues.
> e.g. see the logs below.
> http://autopkgtest.ubuntu.com/packages/r/ruby-jquery-ui-rails/disco/armhf
> http://autopkgtest.ubuntu.com/packages/r/ruby-jquery-ui-rails/eoan/armhf
> http://autopkgtest.ubuntu.com/packages/r/ruby-devise/disco/armhf
> http://autopkgtest.ubuntu.com/packages/r/ruby-devise/eoan/armhf
> 
> If I remember correctly I tried on Debian porterboxes and the bug was fully 
> reproducible on armhf (even on a raspbian OS IIRC)
> 
> I'm tagging this bug with "patch", even if the proper issue would be to fix 
> the unaligned access on armhf, but I have zero knowledge on that...
> 
> For now I disabled bootsnap on ubuntu, on every architecture.
> 
> Possible fixes I see in order of sanity:
> 1) fix the bootsnap unaligned access (not sure if the fault is in ruby/rails 
> or bootsnap)
> 2) disable bootsnap only on armhf
> 3) disable bootsnap everywhere.
> 
> I'm providing the patch for 3)
> 
> http://launchpadlibrarian.net/417386218/rails_2%3A5.2.2+dfsg-6_2%3A5.2.2+dfsg-6ubuntu1.diff.gz
> with references to all the similar upstream issues I found
> +Description: Bootsnap is making ruby fail with BUS error on armhf platform
> + Disable it for now
> + See: 
> https://ballardhack.wordpress.com/2018/10/05/disable-rails-bootsnap-in-production/
> +      
> https://romkey.com/2018/05/14/fixing-rails-5-2-bus-error-on-armv7-raspberry-pi/
> +      https://bugs.ruby-lang.org/issues/13670
> +      https://github.com/Shopify/bootsnap/issues/67
> + This should make ruby-jquery-ui-rails tests succeed on armhf
> +Author: Gianfranco Costamagna <locutusofb...@debian.org>
> +Last-Update: 2019-04-02
> +
> +--- rails-5.2.2+dfsg.orig/railties/lib/rails/generators/app_base.rb
> ++++ rails-5.2.2+dfsg/railties/lib/rails/generators/app_base.rb
> +@@ -84,7 +84,7 @@ module Rails
> +         class_option :skip_system_test,    type: :boolean, default: false,
> +                                            desc: "Skip system test files"
> + 
> +-        class_option :skip_bootsnap,       type: :boolean, default: false,
> ++        class_option :skip_bootsnap,       type: :boolean, default: true,
> +                                            desc: "Skip bootsnap gem"
> + 
> +         class_option :dev,                 type: :boolean, default: false,
> 
> I think this bug is worth a fix for buster, this is why I'm opening it with a 
> serious severity, but I'm not too confident
> about its severity, so I'll leave to you downgrading in case you disagree 
> with my analysis.
> 
> thanks for having a look, I hope you can solve in a better way than mine
> 

ruby-bootsnap is optional and rails only recommends it. On production
systems ruby-rails (which does not recommend any libraries required for
a dummy rails app) should be used instead of rails.

> Bundle complete! 19 Gemfile dependencies, 81 gems now installed.
> Use `bundle info [gemname]` to see where a bundled gem is installed.

Reply via email to