Mastodon (sidekick) crashing under Ruby 2.5.1 on Alpine 3.7
Closed this issue · 3 comments
I'm raising this ticket to raise concerns with the sigfaulting of sidekick on mastodon. This is easily replicated.
This was originally documented here mastodon/mastodon#6734
but I don't believe it was followed up with the sidekick or Ruby docker/alpine teams.
mastodon/mastodon#8712 is my revert due to sigfaults. This pull includes my crash report logs in full.
mastodon@ip-10-0-0-140:~$ docker container logs dd6cc8b27859 > crash
/mastodon/vendor/bundle/ruby/2.5.0/gems/rdf-3.0.2/lib/rdf/model/statement.rb:332: [BUG] Segmentation fault at 0x00007efcb3517bc0
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-musl]
/mastodon/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.8.4/lib/nokogiri/html/document.rb:150: [BUG] Segmentation fault at 0x00007f8200e79bc0
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-musl]
Does it also reproduce on 2.4 and/or 2.6? If so, does it also reproduce with Alpine's Ruby package in place of our compiled Ruby? (https://pkgs.alpinelinux.org/package/v3.7/main/x86_64/ruby)
I'm still not sure there's much/anything we can really do here, and think this probably needs to be escalated to either the Alpine maintainers (if it can be reproduced with Alpine packages) or to the Ruby maintainers (unless it does not reproduce on Ruby 2.6 or Alpine 3.8, in which case it's very likely already fixed in Ruby upstream or Alpine upstream respectively).
(Closing, since I don't think there's anything we can do here -- we build a pretty stock Ruby from upstream's sources, so this is something that really needs to be fixed in Ruby itself.)