Skip to content
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

Intermittent segmentation faults on Circle CI #87

Closed
bslobodin opened this issue Sep 27, 2017 · 5 comments
Closed

Intermittent segmentation faults on Circle CI #87

bslobodin opened this issue Sep 27, 2017 · 5 comments

Comments

@bslobodin
Copy link

Yesterday we saw a number of builds fail with a seg fault, that is seemingly related to bootsnap. It was inconsistent at best, but happened on a number of unrelated builds. I'd be happy to share more logs, if you think those would help?

/home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/store.rb:72: [BUG] Segmentation fault at 0x00000000000033
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0045 p:---- s:0201 e:000200 CFUNC  :dump
c:0044 p:0078 s:0197 e:000194 METHOD /home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/store.rb:72
c:0043 p:0015 s:0191 e:000190 METHOD /home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/store.rb:53
c:0042 p:0038 s:0188 e:000186 METHOD /home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/store.rb:45
c:0041 p:0011 s:0184 e:000183 METHOD /home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/cache.rb:140
c:0040 p:0070 s:0180 e:000179 BLOCK  /home/circleci/project/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.2/lib/bootsnap/load_path_cache/cache.rb:123 [FINISH]
c:0039 p:---- s:0178 e:000177 CFUNC  :synchronize

💾 build12502.log

@casperisfine
Copy link
Contributor

So the backtrace indicates the issue is likely inside MessagePack.dump

File.binwrite(tmp, MessagePack.dump(@data))

What version of message pack are you using? Because bootsnap requires ~> 1.0, so there is many compatible versions.

@casperisfine
Copy link
Contributor

Nvm, I found it in the dump: msgpack-1.1.0

@bslobodin
Copy link
Author

bslobodin commented Oct 20, 2017

We've since disabled Bootsnap in CI for our project, keeping it only to local environments. It was still segfaulting once in a while.

@ahuth
Copy link

ahuth commented Apr 2, 2018

Looks like msgpack fixed a segfault in January of 2018 (after this issue was logged). Not sure if its the same one referenced here or not, but note the changelog notes for v1.2.2.

@burke
Copy link
Member

burke commented Feb 19, 2019

Haven't heard about this in ages, probably that was the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants