New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Builds err with segfault in csv.rb
, called by read_data_file
#9537
Comments
@dmalan Did you ever get anywhere with this? We're also experiencing a segfault in the CSV library on Ruby 3.3 when running Docker Desktop (despite not using jekyll), and this is the closest bug report I could find. |
Afraid we've fixated on 3.2.x for now, @oehlschl! |
Thanks! For what it's worth we're making an educated guess that this is related to https://bugs.ruby-lang.org/issues/20085, which despite being closed is still happening on ruby:3.3-bookworm (the default) per the comments. It seems to be a segfault with Ruby Fibers on aarch64, and per at least one issue, it looks like Fibers are used for enumeration on at least the CSV gem. Seemingly you should try upgrading to Ruby 3.3 again once the comments in that Ruby bug report indicate that it's resolved. |
Ah, thanks for the pointers, @oehlschl. Looks like building Ruby 3.3.0 with |
Operating System
Ubuntu 22.04
Ruby Version
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux]
Jekyll Version
jekyll 4.3.3
GitHub Pages Version
No response
Expected Behavior
Build should succeed without segfault.
Current Behavior
This might actually be an underlying issue in Ruby 3.3.0, but each time we try to build a site with Ruby 3.3.0 and Jekyll 4.3.3 that includes a CSV file within
_data
, the build fails with a segfault in/usr/local/lib/ruby/3.3.0/csv.rb:2558
, which is invoked (a few frames earlier) by/usr/local/lib/ruby/gems/3.3.0/gems/jekyll-4.3.3/lib/jekyll/readers/data_reader.rb:62:in
read_data_file'`.Removing
_data/
or all CSV files within eliminates the error. Downgrading to Ruby 3.2.3 also avoids it altogether.The warnings atop the output aren't worrisome in and of themselves, per #9534, but worth noting the first pertains to
csv
too.Minimal demo at https://github.com/dmalan/jekyll-demo.git.
CC @rongxin-liu
Relevant log output
Code Sample
Steps to reproduce issue
git clone https://github.com/dmalan/jekyll-demo.git
bundle install
bundle exec jekyll build
The text was updated successfully, but these errors were encountered: