New build agent is causing ruby errors: 1.0.108731

Yesterday, a workflow of ours ran successfully. It involves executing a rake task in a rails app. The “Spin up environment” step reported:

Build-agent version 1.0.108423-d73bb89b (2022-02-14T14:44:52+0000)
System information:
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: xfs
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Kernel Version: 5.11.0-1027-aws
 Operating System: Ubuntu 20.04.3 LTS
 OSType: linux
 Architecture: x86_64

Starting container cimg/ruby:2.6.9-browsers
# etc.

Today, rerunning the same workflow produces an error when executing the rake task. The “Spin up environment” is identical apart from a different build agent: Build-agent version 1.0.108731-e91de371 (2022-02-18T10:09:24+0000)

As far as I can tell, cimg/ruby:2.6.9-browsers hasn’t changed since yesterday, but the build agent has.

Is it possible to revert the build agent change please, just so we can finish our workflows? We’re currently blocked from deploying at the moment.

Thanks, Henry

Here is the error:

/usr/local/rvm/gems/ruby-2.6.9/gems/ffi-1.15.3/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x00007f77373f2f49
ruby 2.6.9p207 (2021-11-24 revision 67954) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0080 p:---- s:0552 e:000551 CFUNC  :open
c:0079 p:0022 s:0546 e:000545 BLOCK  /usr/local/rvm/gems/ruby-2.6.9/gems/ffi-1.15.3/lib/ffi/library.rb:112 [FINISH]
c:0078 p:---- s:0537 e:000536 CFUNC  :each
c:0077 p:0113 s:0533 e:000532 BLOCK  /usr/local/rvm/gems/ruby-2.6.9/gems/ffi-1.15.3/lib/ffi/library.rb:109 [FINISH]
c:0076 p:---- s:0526 e:000525 CFUNC  :map
c:0075 p:0069 s:0522 e:000521 METHOD /usr/local/rvm/gems/ruby-2.6.9/gems/ffi-1.15.3/lib/ffi/library.rb:99
c:0074 p:0079 s:0515 e:000514 CLASS  /usr/local/rvm/gems/ruby-2.6.9/gems/sassc-2.2.1/lib/sassc/native.rb:11
c:0073 p:0007 s:0511 e:000510 CLASS  /usr/local/rvm/gems/ruby-2.6.9/gems/sassc-2.2.1/lib/sassc/native.rb:6
c:0072 p:0014 s:0508 e:000507 TOP    /usr/local/rvm/gems/ruby-2.6.9/gems/sassc-2.2.1/lib/sassc/native.rb:5 [FINISH]
c:0071 p:---- s:0505 e:000504 CFUNC  :require_relative
c:0070 p:0021 s:0500 e:000499 TOP    /usr/local/rvm/gems/ruby-2.6.9/gems/sassc-2.2.1/lib/sassc.rb:31 [FINISH]
c:0069 p:---- s:0497 e:000496 CFUNC  :require
# etc.

and thousands more lines of memory dump information, ending with:

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

Aborted (core dumped)
The command '/bin/sh -c bundle exec rake assets:precompile assets:clean[0]' returned a non-zero code: 134

Exited with code exit status 134
CircleCI received exit code 134

Hi,

Did this get resolved? If it hasn’t, I would open a Support ticket for an issue like this. If it has, did it end of building build agent?

Sorry I never replied Feliciano, we got a response that said there were similar reports, and linked to Issue 146 on sass/sassc-ruby on GitHub, but we didn’t change anything about our css compression.

Eventually we removed the --cache-from docker build arg and it worked, then we put it back and it continued to work. So, no idea what actually fixed it, but it was weird that it caused previously-successful builds to fail =)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.