Open sreenak opened 8 months ago
Segmentation fault error,MySql version 8.0,34, using Ubuntu 22.04, ruby 2.5.3, rails, 5.1.7 Here is my error output when I run any query in console,
/home/user/.rvm/gems/ruby-2.5.3/gems/mysql2-0.5.6/lib/mysql2/client.rb:97: [BUG] Segmentation fault at 0x0000000000000000 ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] -- Control frame information ----------------------------------------------- c:0052 p:---- s:0319 e:000318 CFUNC :connect c:0051 p:0672 s:0307 e:000306 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/mysql2-0.5.6/lib/mysql2/client.rb:97 [FINISH] c:0050 p:---- s:0292 e:000291 CFUNC :new c:0049 p:0104 s:0287 e:000286 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/mysql2_adapter.rb:21 c:0048 p:0024 s:0280 e:000279 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0047 p:0021 s:0276 e:000275 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0046 p:0015 s:0272 e:000271 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0045 p:0014 s:0266 e:000265 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0044 p:0012 s:0260 e:000258 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0043 p:0038 s:0254 e:000250 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0042 p:0046 s:0247 e:000246 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo c:0041 p:0011 s:0240 e:000239 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_handling.rb:116 c:0040 p:0004 s:0236 e:000235 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_handling.rb:88 c:0039 p:0018 s:0232 e:000231 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation/delegation.rb:44 c:0038 p:0019 s:0224 e:000221 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:81 c:0037 p:0025 s:0216 e:000213 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation.rb:678 c:0036 p:0013 s:0207 e:000206 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation.rb:546 c:0035 p:0004 s:0202 e:000201 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation.rb:255 c:0034 p:0004 s:0198 e:000197 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation.rb:251 c:0033 p:0112 s:0194 e:000193 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation/finder_methods.rb:536 c:0032 p:0029 s:0187 e:000183 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation/finder_methods.rb:521 c:0031 p:0020 s:0179 e:000178 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/relation/finder_methods.rb:122 c:0030 p:0018 s:0174 e:000173 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/querying.rb:3 c:0029 p:0010 s:0166 e:000165 EVAL (irb):1 [FINISH] c:0028 p:---- s:0163 e:000162 CFUNC :eval c:0027 p:0021 s:0155 e:000154 METHOD /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb/workspace.rb:85 c:0026 p:0021 s:0147 e:000145 METHOD /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb/context.rb:380 c:0025 p:0017 s:0140 e:000139 BLOCK /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb.rb:491 c:0024 p:0025 s:0130 e:000129 METHOD /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb.rb:623 c:0023 p:0008 s:0124 e:000123 BLOCK /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb.rb:488 c:0022 p:0100 s:0119 e:000118 BLOCK /home/user/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/irb/ruby-lex.rb:246 [FINISH] c:0021 p:---- s:0115 e:000114 CFUNC :loop ruby/concurrent/collection/map/mri_map_backend.rb 155 /home/user/.rvm/gems/ruby-2.5.3/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/map.rb 156 /home/user/.rvm/gems/ruby-2.5.3/gems/activesupport-5.1.7/lib/active_support/core_ext/array/prepend_and_append.rb 157 /home/user/.rvm/gems/ruby-2.5.3/gems/activesupport-5.1.7/lib/active_support/core_ext/regexp.rb 158 /home/user/.rvm/gems/ruby-2.5.3/gems/activesupport-5.1.7/lib/active_support/core_ext/hash/deep_merge.rb 159 /home/user/.rvm/gems/ruby-2.5.3/gems/activesupport-5.1.7/lib/active_support/core_ext/hash/except.rb 160 /home/user/.rvm/gems/ruby-2.5.3/gems/activesupport-5.1.7/lib/active_support/core_ext/hash/slice.rb 161 /home/user/.rvm/gems/ruby-2.5.3/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/thread_safe/util.rb [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Aborted (core dumped) loyer/.rvm/gems/ruby-2.5.3/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing.rb 3004 /home/user/.rvm/gems/ruby-2.5.3/gems/rails-dom-testing-2.2.0/lib/rails/dom/testing/railtie.rb 3005 /home/user/.rvm/gems/ruby-2.5.3/gems/rails-dom-testing-2.2.0/lib/rails-dom-testing.rb 3006 /home/user/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_dispatch/testing/assertions/response.rb 3007 /home/user/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_dispatch/testing/assertions/routing.rb 3008 /home/user/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_dispatch/testing/assertions.rb 3009 /home/user/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_controller/api.rb
I tried these steps to resolve the issue, 1)Reinstalled mysql 2)Also tried executing these steps
`sudo apt remove libmariadbd-dev sudo apt install libmariadbd-dev gem install mysql2 -v '0.5.6' `
but still issue persists
Any help is appreciatable
Segmentation fault error,MySql version 8.0,34, using Ubuntu 22.04, ruby 2.5.3, rails, 5.1.7 Here is my error output when I run any query in console,
I tried these steps to resolve the issue, 1)Reinstalled mysql 2)Also tried executing these steps
but still issue persists
Any help is appreciatable