sprockets
sprockets copied to clipboard
Crash during asset precompilation with administrate and bootstrap-sass
Expected behavior
No crash.
Actual behavior
When running bundle exec assets:precompile, the process crashes with a core dump
System configuration
- Sprockets version: 4.0.2
- Ruby version: 2.7.2, and 3.0.0
Example App (Reproduction)
https://github.com/mvz/example-app-sprockets-crash
Some notes:
- The crash does not happen with sprockets 3
- Related ticket for sassc-ruby, which lacks a reproduction method: https://github.com/sass/sassc-ruby/issues/207
- Disabling concurrency stops the crash from occurring.
This occurs in my app even with Sprockets 3:
/Users/kyrylosilin/.gem/ruby/2.7.4/gems/sassc-2.4.0/lib/sassc/engine.rb:43: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-darwin20]
-- 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.
-- Control frame information -----------------------------------------------
c:0214 p:---- s:1419 e:001418 CFUNC :compile_data_context
c:0213 p:0314 s:1414 e:001413 METHOD /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sassc-2.4.0/lib/sassc/engine.rb:43
c:0212 p:0005 s:1402 e:001401 BLOCK /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sassc-rails-2.1.2/lib/sassc/rails/template.rb:40
c:0211 p:0052 s:1399 e:001398 METHOD /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sprockets-3.7.2/lib/sprockets/utils.rb:171
c:0210 p:0167 s:1392 e:001391 METHOD /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sassc-rails-2.1.2/lib/sassc/rails/template.rb:39
c:0209 p:0007 s:1383 e:001382 METHOD /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:30
c:0208 p:0047 s:1378 e:001377 METHOD /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75
c:0207 p:0014 s:1370 e:001369 BLOCK /Users/kyrylosilin/.gem/ruby/2.7.4/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57 [FINISH]
c:0206 p:---- s:1365 e:001364 CFUNC :reverse_each
See https://github.com/sass/sassc-ruby/issues/207#issuecomment-1790088588.